/[PAMELA software]/DarthVader/CalorimeterLevel2/inc/CaloProcessing.h
ViewVC logotype

Diff of /DarthVader/CalorimeterLevel2/inc/CaloProcessing.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mocchiut, Fri Aug 4 10:31:25 2006 UTC revision 1.4 by mocchiut, Tue Nov 14 14:08:49 2006 UTC
# Line 10  Line 10 
10  // YODA headers  // YODA headers
11  //  //
12  #include <PamelaRun.h>  #include <PamelaRun.h>
 #include <RegistryEvent.h>  
13  #include <physics/calorimeter/CalorimeterEvent.h>  #include <physics/calorimeter/CalorimeterEvent.h>
14  #include <CalibCalPedEvent.h>  #include <CalibCalPedEvent.h>
15  //  //
# Line 31  class CaloProcessing : public TObject { Line 30  class CaloProcessing : public TObject {
30      //      //
31      // variables in which it is stored the calibration information for the four sections      // variables in which it is stored the calibration information for the four sections
32      //      //
33      ULong64_t idcalib[4]; ///< ID of root file containing calibrations (one per section)      UInt_t idcalib[4]; ///< ID of root file containing calibrations (one per section)
34      ULong64_t fromtime[4]; ///< lower validity time limit      UInt_t fromtime[4]; ///< lower validity time limit
35      ULong64_t totime[4]; ///< upper validity time limit      UInt_t totime[4]; ///< upper validity time limit
36      Int_t calibno[4]; ///< entry of the file      Int_t calibno[4]; ///< entry of the file
37      TString fcalname[4]; ///< filename of calibrations      TString fcalname[4]; ///< filename of calibrations
38      //      //
# Line 65  class CaloProcessing : public TObject { Line 64  class CaloProcessing : public TObject {
64      // Energy vector      // Energy vector
65      //      //
66      Int_t istrip; ///< number of strip above threshold      Int_t istrip; ///< number of strip above threshold
67      Float_t svstrip[4224]; ///< saved calibrated energy      Int_t svstrip[4224]; ///< saved calibrated energy
68      //      //
69      // Variables needed to handle parameters files      // Variables needed to handle parameters files
70      //      //
71      Bool_t calopar1; ///< boolean, is true if parameter set number 1 has already been loaded      Bool_t calopar1; ///< boolean, is true if parameter set number 101 has already been loaded
72      Bool_t calopar2; ///< boolean, is true if parameter set number 2 has already been loaded      Bool_t calopar2; ///< boolean, is true if parameter set number 102 has already been loaded
73      ULong64_t ftcalopar1; ///< parameter set 1 lower limit validity      Bool_t calopar3; ///< boolean, is true if parameter set number 103 has already been loaded
74      ULong64_t ttcalopar1; ///< parameter set 1 upper limit validity      UInt_t ftcalopar1; ///< parameter set 101 lower limit validity
75      ULong64_t ftcalopar2; ///< parameter set 2 lower limit validity      UInt_t ttcalopar1; ///< parameter set 101 upper limit validity
76      ULong64_t ttcalopar2; ///< parameter set 2 upper limit validity      UInt_t ftcalopar2; ///< parameter set 102 lower limit validity
77        UInt_t ttcalopar2; ///< parameter set 102 upper limit validity
78        UInt_t ftcalopar3; ///< parameter set 103 lower limit validity
79        UInt_t ttcalopar3; ///< parameter set 103 upper limit validity
80      //      //
81      // private methods      // private methods
82      //      //
# Line 85  class CaloProcessing : public TObject { Line 87  class CaloProcessing : public TObject {
87      void ClearCommonVar(); ///< clear common variables      void ClearCommonVar(); ///< clear common variables
88      void ClearTrkVar();  ///< clear track-related variables      void ClearTrkVar();  ///< clear track-related variables
89      void FindBaseRaw(Int_t l, Int_t m, Int_t pre); ///< calculate baselines starting from RAW data      void FindBaseRaw(Int_t l, Int_t m, Int_t pre); ///< calculate baselines starting from RAW data
90      Int_t Update(TSQLServer *dbc, ULong64_t atime, Int_t s); ///< update calibration for this event      Int_t Update(TSQLServer *dbc, UInt_t atime, Int_t s); ///< update calibration for this event
91      Int_t LoadCalib(Int_t s); ///< load calibrations      Int_t LoadCalib(Int_t s); ///< load calibrations
92    
93   public:   public:
# Line 93  class CaloProcessing : public TObject { Line 95  class CaloProcessing : public TObject {
95      // ADC to MIP conversion values      // ADC to MIP conversion values
96      //      //
97      Float_t mip[2][22][96]; ///< ADC to MIP conversion values      Float_t mip[2][22][96]; ///< ADC to MIP conversion values
98        Int_t obadmask[2][22][96]; ///< Offline mask of bad strips (not used to calculate baselines and calorimeter variables)      
99      Float_t emin; ///< Offline threshold to separate noise from signal      Float_t emin; ///< Offline threshold to separate noise from signal
100      //      //
101      // Structures to pass data from/to F77      // Structures to pass data from/to F77
# Line 106  class CaloProcessing : public TObject { Line 109  class CaloProcessing : public TObject {
109      //      //
110      // useful methods      // useful methods
111      //      //
112      Int_t ChkParam(TSQLServer *dbc, ULong64_t runheader); ///< check and load parameters data      Int_t ChkParam(TSQLServer *dbc, UInt_t runheader); ///< check and load parameters data
113      Int_t ChkCalib(TSQLServer *dbc, ULong64_t atime); ///< check and load calibration data      Int_t ChkCalib(TSQLServer *dbc, UInt_t atime); ///< check and load calibration data
114      Int_t Calibrate(Int_t ei); ///< perform data calibration      Int_t Calibrate(Int_t ei); ///< perform data calibration
115      void GetCommonVar(); ///< call fortran common variables program      void GetCommonVar(); ///< call fortran common variables program
116      void GetTrkVar(); ///< call fortran track-related variables program      void GetTrkVar(); ///< call fortran track-related variables program
# Line 119  class CaloProcessing : public TObject { Line 122  class CaloProcessing : public TObject {
122      // constructor      // constructor
123      //      //
124      CaloProcessing(); ///< contructor      CaloProcessing(); ///< contructor
125      void ProcessingInit(TSQLServer *dbc, ULong64_t hs, Int_t &sgnl, TTree *l0tree, Bool_t debug, Bool_t verbose); ///< initialize caloprocessing object      void ProcessingInit(TSQLServer *dbc, UInt_t hs, Int_t &sgnl, TTree *l0tree, Bool_t debug, Bool_t verbose); ///< initialize caloprocessing object
126      //      //
127      // virtual destructor      // virtual destructor
128      //      //
129      virtual ~CaloProcessing();      virtual ~CaloProcessing();///< virtual destructor
130      //      //
131  };  };
132    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23