StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdDaqMaker.h
1 // $Id: StSsdDaqMaker.h,v 1.9 2014/08/06 11:43:42 jeromel Exp $
2 //
3 // $Log: StSsdDaqMaker.h,v $
4 // Revision 1.9 2014/08/06 11:43:42 jeromel
5 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
6 //
7 // Revision 1.8 2008/04/16 20:06:30 fisyak
8 // rename maker to be compline with StSsdPointMaker expectations
9 //
10 // Revision 1.7 2007/04/04 01:20:33 bouchet
11 // Cosmetic changes to print the active ladders according to the ssdConfiguration Table
12 //
13 // Revision 1.6 2007/03/22 01:58:17 bouchet
14 // add a method to fill pedestal and noise of the strips in a tuple
15 //
16 // Revision 1.5 2007/02/25 18:10:58 bouchet
17 // Remove a histogram and add more precise histograms for the particular status of strips : count the number of strips per wafer where pedestal = 0 or 255 (adc) and rms = 0 or 255 (adc)
18 //
19 // Revision 1.4 2007/02/18 15:57:33 bouchet
20 // New Logger update and addition of Finish() function
21 //
22 // Revision 1.3 2005/06/16 14:27:00 bouchet
23 // Pedestal Histos are filled in this Maker
24 //
25 // Revision 1.2 2005/05/11 13:47:30 reinnart
26 // No connection between StSsdDaqMaker and StSsdDbMaker any more
27 //
28 // Revision 1.1 2005/04/15 15:11:21 lmartin
29 // StSsdDaqMaker
30 //
31 #ifndef STAR_StSsdDaqMaker
32 #define STAR_StSsdDaqMaker
33 
50 #ifndef StMaker_H
51 #include "StMaker.h"
52 #endif
53 
54 
55 // You may forward declare other classes if you have data-members
56 // used in pointer-only context by using declaration like
57 // class St_SomeExternClass;
58 //
59 // You do need in such simple case to add the include file
60 // (and compilation is much faster).
61 class StDAQReader;
62 class StSsdConfig;
63 class St_ssdConfiguration;
64 class ssdConfiguration_st;
65 class St_spa_strip;
66 class St_ssdPedStrip;
67 class TH1F;
68 class TH1S;
69 class TH2S;
70 class TFile;
71 class TNtuple;
72 class StSsdDaqMaker : public StMaker {
73  private:
74  // Private method declaration if any
75  // St_spa_strip *spa_strip;
76  // St_ssdPedStrip *ssdPedStrip;
77  Float_t PedestalNTuple[10];
78  TFile *pFile;
79  TNtuple *pTuple;
80  void DeclareNTuple();
81  void PrintConfiguration(Int_t runumber,ssdConfiguration_st *config);
82  protected:
83  // Protected method if any
84  StSsdConfig* mConfig;
85  TH2S *occupancy_wafer; //occupancy per wafer for the ladders
86  TH2S *occupancy_chip; //occupancy per chip for the ladders
87  TH2S *noise_chip; //mean noise per chip
88  TH2S *noise_wafer; //mean noise per wafer
89  TH2S *noise_chip_P; //mean noise per chip of the P Side
90  TH2S *noise_chip_N; //mean noise per chip of the N Side
91  TH2S *pedestal_chip; //pedestal per chip for the ladders
92  TH1F *occupancy; //number of inactives strips per ladder
93  TH2S *ped_zero_ladP; //number of strips of p-side wafers for which pedestal = 0
94  TH2S *ped_zero_ladN; //number of strips of n-side wafers for which pedestal = 0
95  TH2S *ped_high_ladP; //number of strips of p-side wafers for which pedestal = 255
96  TH2S *ped_high_ladN; //number of strips of n-side wafers for which pedestal = 255
97  TH2S *noise_zero_ladP; //number of strips of p-side wafers for which noise = 0
98  TH2S *noise_zero_ladN; //number of strips of n-side wafers for which noise = 0
99  TH2S *noise_high_ladP; //number of strips of p-side wafers for which noise = 255
100  TH2S *noise_high_ladN; //number of strips of n-side wafers for which noise = 255
101  int mPedOut; //to turn the fill of TNtuple on and off
102  public:
103  StSsdDaqMaker(const char *name="SpaStrip");
104  virtual ~StSsdDaqMaker();
105  virtual Int_t Init();
106  virtual Int_t InitRun(int runumber);
107  virtual Int_t Make();
108  virtual Int_t Finish();
109  // virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun
110  // virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun
111 
113  virtual const char *GetCVS() const {
114  static const char cvs[]="Tag $Name: $ $Id: StSsdDaqMaker.h,v 1.9 2014/08/06 11:43:42 jeromel Exp $ built " __DATE__ " " __TIME__;
115  return cvs;
116  }
117 
118  ClassDef(StSsdDaqMaker,0) //StAF chain virtual base class for Makers
119 };
120 
121 #endif
122 
123 
virtual Int_t Init()
Init - is a first method the top level StChain calls to initialize all its makers.
virtual Int_t Finish()
virtual const char * GetCVS() const
Displayed on session exit, leave it as-is please ...
virtual ~StSsdDaqMaker()
This is StSsdDaqMaker destructor.
virtual Int_t Make()
StSsdDaqMaker(const char *name="SpaStrip")
StSsdDaqMaker constructor.
Class to read SSD data from DAQ files.
Definition: StSsdDaqMaker.h:72