StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcOutputMaker.h
1 // $Id: StMcOutputMaker.h,v 1.2 2014/08/06 11:43:00 jeromel Exp $
2 
3 #ifndef STAR_StMcOutputMaker
4 #define STAR_StMcOutputMaker
5 
6 
7 #ifndef StMaker_H
8 #include "StMaker.h"
9 #endif
10 
11 class TH1;
12 class TObjArray ;
13 class EEmcGeomSimple;
14 #include "StLorentzVectorF.hh"
15 #include "StMcEvent/StMcTrack.hh"
16 
17 class StMcOutputMaker : public StMaker {
18  private:
19  enum {mxHa=16};
20  TH1 *hA[mxHa];
21  EEmcGeomSimple *geomE;
22 
23  public:
24  StLorentzVectorF probTr;
25  TObjArray *HList;
26  void SetHList(TObjArray * x){HList=x;}
27 
28  StMcOutputMaker(const char *name="mcRead");
29 
30  virtual ~StMcOutputMaker();
31  virtual Int_t Init();
32  virtual Int_t Make();
33  float TgenEoftower();
34  float TgenEta();
35  float TgenPhi();
36  float genZgg();
37  float genE;
38  float genEta;
39  float genPhi;
40  float zgg;
41  void Clear(const Option_t*);
42  // virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun
43  // virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun
44 
46  virtual const char *GetCVS() const {
47  static const char cvs[]="Tag $Name: $ $Id: StMcOutputMaker.h,v 1.2 2014/08/06 11:43:00 jeromel Exp $ built " __DATE__ " " __TIME__ ;
48  return cvs;
49  }
50  vector <StMcTrack *> gTr;
51  std::vector<Float_t> geemcEta;
52  std::vector<Float_t> genZZ;
53  std::vector<Float_t> genXX;
54  std::vector<Float_t> genYY;
55  ClassDef(StMcOutputMaker,0) //StAF chain virtual base class for Makers
56 };
57 
58 inline float StMcOutputMaker::TgenEoftower() { return (float) genE; }
59 inline float StMcOutputMaker::TgenEta() { return (float) genEta; }
60 inline float StMcOutputMaker::TgenPhi() { return (float) genPhi; }
61 inline Float_t StMcOutputMaker::genZgg(){ return (float)zgg; }
62 #endif
63 
64 
65 // $Log: StMcOutputMaker.h,v $
66 // Revision 1.2 2014/08/06 11:43:00 jeromel
67 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
68 //
69 // Revision 1.1 2008/10/30 15:52:15 balewski
70 // oryginal version prepared by Weihong, IUCF, results shown on SPIN08
71 //
void SetHList(TObjArray *x)
output histo access point
virtual Int_t Make()
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
EEMC simple geometry.