00001 // $Id: StSsdDaqMaker.h,v 1.8 2008/04/16 20:06:30 fisyak Exp $ 00002 // 00003 // $Log: StSsdDaqMaker.h,v $ 00004 // Revision 1.8 2008/04/16 20:06:30 fisyak 00005 // rename maker to be compline with StSsdPointMaker expectations 00006 // 00007 // Revision 1.7 2007/04/04 01:20:33 bouchet 00008 // Cosmetic changes to print the active ladders according to the ssdConfiguration Table 00009 // 00010 // Revision 1.6 2007/03/22 01:58:17 bouchet 00011 // add a method to fill pedestal and noise of the strips in a tuple 00012 // 00013 // Revision 1.5 2007/02/25 18:10:58 bouchet 00014 // 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) 00015 // 00016 // Revision 1.4 2007/02/18 15:57:33 bouchet 00017 // New Logger update and addition of Finish() function 00018 // 00019 // Revision 1.3 2005/06/16 14:27:00 bouchet 00020 // Pedestal Histos are filled in this Maker 00021 // 00022 // Revision 1.2 2005/05/11 13:47:30 reinnart 00023 // No connection between StSsdDaqMaker and StSsdDbMaker any more 00024 // 00025 // Revision 1.1 2005/04/15 15:11:21 lmartin 00026 // StSsdDaqMaker 00027 // 00028 #ifndef STAR_StSsdDaqMaker 00029 #define STAR_StSsdDaqMaker 00030 00047 #ifndef StMaker_H 00048 #include "StMaker.h" 00049 #endif 00050 00051 00052 // You may forward declare other classes if you have data-members 00053 // used in pointer-only context by using declaration like 00054 // class St_SomeExternClass; 00055 // 00056 // You do need in such simple case to add the include file 00057 // (and compilation is much faster). 00058 class StDAQReader; 00059 class StSsdConfig; 00060 class St_ssdConfiguration; 00061 class ssdConfiguration_st; 00062 class St_spa_strip; 00063 class St_ssdPedStrip; 00064 class TH1F; 00065 class TH1S; 00066 class TH2S; 00067 class TFile; 00068 class TNtuple; 00069 class StSsdDaqMaker : public StMaker { 00070 private: 00071 // Private method declaration if any 00072 // St_spa_strip *spa_strip; 00073 // St_ssdPedStrip *ssdPedStrip; 00074 Float_t PedestalNTuple[10]; 00075 TFile *pFile; 00076 TNtuple *pTuple; 00077 void DeclareNTuple(); 00078 void PrintConfiguration(Int_t runumber,ssdConfiguration_st *config); 00079 protected: 00080 // Protected method if any 00081 StSsdConfig* mConfig; 00082 TH2S *occupancy_wafer; //occupancy per wafer for the ladders 00083 TH2S *occupancy_chip; //occupancy per chip for the ladders 00084 TH2S *noise_chip; //mean noise per chip 00085 TH2S *noise_wafer; //mean noise per wafer 00086 TH2S *noise_chip_P; //mean noise per chip of the P Side 00087 TH2S *noise_chip_N; //mean noise per chip of the N Side 00088 TH2S *pedestal_chip; //pedestal per chip for the ladders 00089 TH1F *occupancy; //number of inactives strips per ladder 00090 TH2S *ped_zero_ladP; //number of strips of p-side wafers for which pedestal = 0 00091 TH2S *ped_zero_ladN; //number of strips of n-side wafers for which pedestal = 0 00092 TH2S *ped_high_ladP; //number of strips of p-side wafers for which pedestal = 255 00093 TH2S *ped_high_ladN; //number of strips of n-side wafers for which pedestal = 255 00094 TH2S *noise_zero_ladP; //number of strips of p-side wafers for which noise = 0 00095 TH2S *noise_zero_ladN; //number of strips of n-side wafers for which noise = 0 00096 TH2S *noise_high_ladP; //number of strips of p-side wafers for which noise = 255 00097 TH2S *noise_high_ladN; //number of strips of n-side wafers for which noise = 255 00098 int mPedOut; //to turn the fill of TNtuple on and off 00099 public: 00100 StSsdDaqMaker(const char *name="SpaStrip"); 00101 virtual ~StSsdDaqMaker(); 00102 virtual Int_t Init(); 00103 virtual Int_t InitRun(int runumber); 00104 virtual Int_t Make(); 00105 virtual Int_t Finish(); 00106 // virtual Int_t InitRun (int runumber){return 0;}; // Overload empty StMaker::InitRun 00107 // virtual Int_t FinishRun(int runumber){return 0;}; // Overload empty StMaker::FinishRun 00108 00110 virtual const char *GetCVS() const { 00111 static const char cvs[]="Tag $Name: $ $Id: StSsdDaqMaker.h,v 1.8 2008/04/16 20:06:30 fisyak Exp $ built "__DATE__" "__TIME__; 00112 return cvs; 00113 } 00114 00115 ClassDef(StSsdDaqMaker,0) //StAF chain virtual base class for Makers 00116 }; 00117 00118 #endif 00119 00120
1.5.9