StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdEmbeddingMaker.h
1 /***************************************************************************
2  *
3  * Author:
4  ***************************************************************************
5  *
6  * Description: Ssd Add Maker class
7  *
8  ***************************************************************************
9  */
10 #ifndef STAR_StSsdEmbeddingMaker
11 #define STAR_StSsdEmbeddingMaker
12 
13 #ifndef StMaker_H
14 #include "StMaker.h"
15 #endif
16 #include "StSsdUtil/StSsdBarrel.hh"
17 #include "StSsdUtil/StSsdWafer.hh"
18 
19 class TNtuple;
20 class TFile;
21 class StSsdBarrel;
22 class St_ssdDimensions;
23 class StDAQReader;
24 class St_spa_strip;
25 class StEvent;
27 {
28  private :
29  St_ssdDimensions *m_dimensions;
30  Int_t MODE;
31  public:
32  StSsdEmbeddingMaker(const char* name = "SsdEmbed");
33  virtual ~StSsdEmbeddingMaker();
34 
35  virtual Int_t Init();
36  virtual Int_t Make();
37  virtual Int_t Finish();
38  virtual Int_t InitRun(int);
39  void setDoEmbedding(Bool_t doIt);
40  void setPlainSimEvenIfNoSSD(Bool_t doIt);
41  Int_t GetSsdData();
42  Int_t AddRawData();
43  Int_t NoSsd();
44  void CheckTables();
45  Int_t idWaferToWafer(Int_t idWafer) {return (idWafer-7000)/100-1;}
46  void setSsdParameters(ssdDimensions_st *geom_par);
47 
48  private:
49  Bool_t mDoEmbedding; //shell I try to run embedding if posssible
50  Bool_t mPlainSimIfNoSSD; // if true it will run plain simulation insted of embedding if there's no SSD in real data
51  Bool_t mRunningEmbedding;// can I realy run embedding - ie. missing DAQ maker?
52  Int_t mSsdLayer;
53  Int_t mNLadder;
54  Int_t mNWaferPerLadder;
55  Int_t mNStripPerSide;
56  Float_t mDetectorLargeEdge;
57  Float_t mDetectorSmallEdge;
58  Float_t mStripPitch;
59  Float_t mTheta;
60  St_spa_strip *mSsdSimuData;
61  St_spa_strip *mSsdrealData;
62  St_spa_strip *mSsdSimuReal;
63  ssdDimensions_st *mDimensions;
64  protected :
65 
66  StEvent *mCurrentEvent;
67  TH1F *hStripsSimu;
68  TH1F *hStripsReal;
69  TH1F *hStripsCommon;
70  TFile *myfile;
71 
72  virtual const char *GetCVS() const
73  {static const char cvs[]="Tag $Name: $ $Id: StSsdEmbeddingMaker.h,v 1.2 2014/08/06 11:43:43 jeromel Exp $ built " __DATE__ " " __TIME__ ; return cvs;}
74 
75  ClassDef(StSsdEmbeddingMaker,1)
76 };
77 #endif
78 
StSsdEmbeddingMaker(const char *name="SsdEmbed")
virtual Int_t InitRun(int)
All database dependent data are read here.