StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StJetMaker
StjTPCTrackMaker.cxx
1
// $Id: StjTPCTrackMaker.cxx,v 1.4 2010/05/30 07:10:00 pibero Exp $
2
#include "StjTPCTrackMaker.h"
3
4
#include "StjTPCMuDst.h"
5
6
#include "StjTrackListWriter.h"
7
8
#include <TDirectory.h>
9
10
#include <iostream>
11
12
using namespace
std;
13
14
ClassImp(
StjTPCTrackMaker
)
15
16
StjTPCTrackMaker
::
StjTPCTrackMaker
(const Char_t *name, TDirectory* file,
StMuDstMaker
* uDstMaker)
17
:
StMaker
(name)
18
, _file(file)
19
, _uDstMaker(uDstMaker)
20
{ }
21
22
Int_t StjTPCTrackMaker::Init()
23
{
24
_tpc =
new
StjTPCMuDst
;
25
26
_writer =
new
StjTrackListWriter
(
"tpcTracks"
, _file);
27
28
return
kStOk
;
29
}
30
31
Int_t
StjTPCTrackMaker::Make
()
32
{
33
StjTrackList trackList = _tpc->getTrackList();
34
35
_writer->Fill(trackList);
36
37
return
kStOk
;
38
}
39
40
Int_t
StjTPCTrackMaker::Finish
()
41
{
42
_writer->Finish();
43
44
return
kStOk
;
45
}
StMuDstMaker
Definition:
StMuDstMaker.h:131
StjTPCMuDst
Definition:
StjTPCMuDst.h:10
StjTrackListWriter
Definition:
StjTrackListWriter.h:14
StjTPCTrackMaker::Finish
Int_t Finish()
Definition:
StjTPCTrackMaker.cxx:40
StMaker
Definition:
StMaker.h:57
StjTPCTrackMaker::Make
Int_t Make()
Definition:
StjTPCTrackMaker.cxx:31
StjTPCTrackMaker
Definition:
StjTPCTrackMaker.h:18
kStOk
Definition:
Stypes.h:41
Generated by
1.8.5