StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBbcSimulationMaker.h
1 
2 #ifndef STAR_StBbcSimulationMaker
3 #define STAR_StBbcSimulationMaker
4 
19 #ifndef StMaker_H
20 #include "StMaker.h"
21 #endif
22 #include<map>
23 #include<list>
24 #ifdef BbcSimQa
25 #include "TFile.h"
26 #include "TH1.h"
27 #endif
28 
29 class StBbcSimulationMaker : public StMaker {
30  private:
31  map<short,short> Geant2PMT; /* maps PMT # onto g2t volume ID (set up for BBC
32  in g2t_volume_id.g)
33  */
34  list<short> DeadTiles; /* g2t volume IDs of tiles to ignore */
35 
36 #ifdef BbcSimQa
37  map<short,short>PMT2Geant; /* maps g2t volume ID onto PMT# for QA purp.*/
38  TFile* QaFile;
39  TH1F* QaBbcPmtdE;
40  TH1F* QaBbcPmtTime;
41  TH1F* QaBbcEastVid;
42  TH1F* QaBbcWestVid;
43  TH1F* QaBbcEastPmt;
44  TH1F* QaBbcWestPmt;
45 #endif
46  protected:
47  public:
48  StBbcSimulationMaker(const char *name="BbcSimulation");
49  virtual ~StBbcSimulationMaker();
50  virtual Int_t Init();
51  virtual Int_t Make();
52  virtual Int_t Finish();
53 // virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun
54 // virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun
55 
56  virtual const char *GetCVS() const {
57  static const char cvs[]="Tag $Name: $ $Id: StBbcSimulationMaker.h,v 1.3 2014/08/06 11:42:54 jeromel Exp $ built " __DATE__ " " __TIME__ ;
58  return cvs;
59  }
60 
61  ClassDef(StBbcSimulationMaker,0)
62 };
63 
64 #endif
65 
66 
67 
virtual Int_t Init()
Init - is a first method the top level StChain calls to initialize all its makers.
virtual ~StBbcSimulationMaker()
This is BbcSimulation destructor.
StBbcSimulationMaker(const char *name="BbcSimulation")
BbcSimulation constructor.