star-travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StMcAnalysisMaker.h
Go to the documentation of this file.
1 #ifndef ST_MCANALYSISMAKER_H
2 #define ST_MCANALYSISMAKER_H
3 
4 #include "TString.h"
5 
6 class TFile;
7 class TH3F;
8 class TNtuple;
9 
10 class StMcTrack;
11 class StTrack;
12 class StGlobalTrack;
13 class StAssociationMaker;
14 class StMcEvent;
15 class StEvent;
16 
17 #include "StChain/StMaker.h"
18 
19 
20 class StMcAnalysisMaker : public StMaker
21 {
22  private:
23  TFile* mFile;
24  bool mIsNtuple;
25  TNtuple* mNtuple;
26  TNtuple* mTpcNtuple;
27 
31 
32  StAssociationMaker* mAssoc;
33  const StTrack* findPartner(StMcTrack*, int&);
34  const StMcTrack* findPartner(StGlobalTrack*, int&);
35 
36  int fillTracks(StMcEvent*,StEvent*);
37 
38  TString mOutFileName;
39  public:
40  StMcAnalysisMaker (const char *name="StMcAnalysisMaker", const char *title="event/StMcAnalysisMaker");
41 
42  int Init();
43  int Make();
44  int Finish();
45 
46  void produceNtuple(bool f);
47  virtual void setOutFileName(TString in);
48 
49  ClassDef(StMcAnalysisMaker, 1)
50 };
51 
52 inline void StMcAnalysisMaker::setOutFileName(TString in) { mOutFileName = in;}
53 inline void StMcAnalysisMaker::produceNtuple(bool f){ mIsNtuple = f;}
54 #endif
void produceNtuple(bool f)
const StTrack * findPartner(StMcTrack *, int &)
StAssociationMaker * mAssoc
int fillTracks(StMcEvent *, StEvent *)
TH3F * hTpcHitsDiffZVsPadrowVsSector
virtual void setOutFileName(TString in)
TH3F * hTpcHitsDiffXVsPadrowVsSector
TH3F * hTpcHitsDiffYVsPadrowVsSector
StMcAnalysisMaker(const char *name="StMcAnalysisMaker", const char *title="event/StMcAnalysisMaker")