StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StGeant2LcpTreeMaker.h
1 // $Id: StGeant2LcpTreeMaker.h,v 1.2 2014/08/06 11:42:58 jeromel Exp $
2 
3 #ifndef STAR_StGeant2LcpTreeMaker
4 #define STAR_StGeant2LcpTreeMaker
5 
16 #ifndef StMaker_H
17 #include "StMaker.h"
18 #endif
19 
20 class StMuDstMaker;
21 class TFile;
22 class TH1F;
23 class TH2F;
24 //class TClonesArray;
25 class TTree;
26 class particle_st;
27 class St_particle ;
28 
29 class StGeant2LcpTreeMaker : public StMaker {
30  private:
31  StMuDstMaker* mMuDstMaker;
32  TFile *hfile;
33  TH1F *h[16];
34  TH1F *hc[8];
35  TTree *tree ;
36  int runID;
37  TString treeName;
38 
39  // tree content
40  Int_t eve_id; // event ID
41  Int_t eve_sub; // geant subprocess ID
42  Int_t eve_nPKPi; // # of p,pbar,K+/-, pi+/- after
43  Float_t lcp_eta,lcp_phi,lcp_pt; // momentum
44  Int_t lcp_idhep; // geant particle ID
45  Float_t lcp_e; // energy (GeV)
46 
47  void clearLCP();
48 
49  // cuts on prim tracks
50  float C_maxEta;
51  float C_minPt; // (GeV/c)
52 
53  void printTrack( particle_st* part);
54  particle_st* findGeantLcp( St_particle *tab);
55 
56  public:
57  StGeant2LcpTreeMaker(const char *self="jasLcp2Tree", const char* muDstMakerName="muDstMaker");
58  virtual ~StGeant2LcpTreeMaker();
59  virtual Int_t Init();
60  virtual Int_t Make();
61  void SetOutDir(const char * path) {treeName=path;}
62  void SetMaxEta(float x){C_maxEta=x;}
63  void SetMinPt(float x){C_minPt=x;}
64  void InitRunFromMake(int run_id);
65 
67  virtual const char *GetCVS() const {
68  static const char cvs[]="Tag $Name: $ $Id: StGeant2LcpTreeMaker.h,v 1.2 2014/08/06 11:42:58 jeromel Exp $ built " __DATE__ " " __TIME__ ;
69  return cvs;
70  }
71 
72  ClassDef(StGeant2LcpTreeMaker, 1) //StAF chain virtual base class for Makers
73 };
74 
75 #endif
76 
77 
78 // $Log: StGeant2LcpTreeMaker.h,v $
79 // Revision 1.2 2014/08/06 11:42:58 jeromel
80 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
81 //
82 // Revision 1.1 2004/01/06 17:25:26 balewski
83 // get LCP from Geant info
84 //
85 // Revision 1.3 2003/11/12 18:43:41 balewski
86 // final for LCP paper
87 //
88 // Revision 1.2 2003/10/20 17:04:39 balewski
89 // LCP analysis code
90 //
91 // Revision 1.1 2003/09/16 19:18:36 balewski
92 // extraction of LCP from muDst
93 //
This commented block at the top ...
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...