StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuLcp2TreeMaker.h
1 // $Id: StMuLcp2TreeMaker.h,v 1.6 2014/08/06 11:42:58 jeromel Exp $
2 
3 #ifndef STAR_StMuLcp2TreeMaker
4 #define STAR_StMuLcp2TreeMaker
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 StMuTrack;
27 //class ExampleUsage;
28 class StMuEvent;
29 class CtbMatching;
30 
31 class StMuLcp2TreeMaker : public StMaker {
32  private:
33  StMuDstMaker* mMuDstMaker;
34  TObjArray* primTrA;
35  //ExampleUsage *rejector;
36  TFile *hfile;
37  TH1F *h[16];
38  TH1F *hc[8];
39  TTree *tree ;
40  int runID;
41  int off48;
42  TString treeName;
43 
44  // tree content
45  Float_t eve_vz; // vertex in Z
46  Int_t eve_bx48,eve_bx120;// bXing raw,corrected
47  Int_t eve_id; // event ID
48  Int_t eve_sb; // spin bits
49  Int_t eve_nPrim; // # of good primary tracks
50  Int_t eve_nGlob; // # of good global tracks
51  Int_t eve_cosm; //Mike's Cosmics Rejector & other tests value
52  Float_t lcp_eta,lcp_phi,lcp_pt; // momentum
53  Int_t lcp_q,lcp_nFit;// charge, # of hits on track
54 
55  void clearLCP();
56  const StMuTrack* findLCP( float minPt,int minNFitP, float maxDCAxy, float maxEta, float minFitPfrac) ;
57  void examinCut(const StMuTrack* lcp0);
58  // cuts on prim tracks
59  int C_minNFitPoint;
60  float C_minFitPfrac; // fraction of fitPoints/possiblePoints
61  float C_maxDCAxy; // (cm)
62  float C_maxEta;
63  float C_minPt; // (GeV/c)
64  float C_maxZvertex; // (cm)
65 
66  CtbMatching *ctb;
67 
68  public:
69  StMuLcp2TreeMaker(const char *self="jasLcp2Tree", const char* muDstMakerName="muDstMaker");
70  virtual ~StMuLcp2TreeMaker();
71  virtual Int_t Init();
72  Int_t InitRunFromMake (int runumber);
73  virtual Int_t Make();
74  void SetOutDir(const char * path) {treeName=path;}
75  void SetOff48(int off) {off48=off;}
76  void SetMinNFitPoint(int n){C_minNFitPoint=n;}
77  void SetMaxDCAxy(float x){C_maxDCAxy=x;}
78  void SetMaxEta(float x){C_maxEta=x;}
79  void SetMinPt(float x){C_minPt=x;}
80  void SetMaxZvert(float x){C_maxZvertex=x;}
81  void SetMinFitPfrac(float x){C_minFitPfrac=x;}
82 
83 
85  virtual const char *GetCVS() const {
86  static const char cvs[]="Tag $Name: $ $Id: StMuLcp2TreeMaker.h,v 1.6 2014/08/06 11:42:58 jeromel Exp $ built " __DATE__ " " __TIME__ ;
87  return cvs;
88  }
89 
90  ClassDef(StMuLcp2TreeMaker, 1) //StAF chain virtual base class for Makers
91 };
92 
93 #endif
94 
95 
96 // $Log: StMuLcp2TreeMaker.h,v $
97 // Revision 1.6 2014/08/06 11:42:58 jeromel
98 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
99 //
100 // Revision 1.5 2009/12/02 16:35:58 fine
101 // Fix StMuTrack interface
102 //
103 // Revision 1.4 2005/08/23 21:09:23 balewski
104 // fix to follow muDst evolution
105 //
106 // Revision 1.3 2003/11/12 18:43:41 balewski
107 // final for LCP paper
108 //
109 // Revision 1.2 2003/10/20 17:04:39 balewski
110 // LCP analysis code
111 //
112 // Revision 1.1 2003/09/16 19:18:36 balewski
113 // extraction of LCP from muDst
114 //
virtual Int_t Make()
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
This commented block at the top ...