]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloCalibSignal.h
New histograms in task for MC checks
[u/mrichter/AliRoot.git] / EMCAL / AliCaloCalibSignal.h
index 7c8b81f8a8f293d9c777e67fa9332bd4c59191e0..1c482682e9816e5c939ceff73cb560db3c11141c 100644 (file)
@@ -47,8 +47,8 @@ public:
   // Event processing methods:
   Bool_t ProcessEvent(AliRawReader *rawReader);
   Bool_t ProcessEvent(AliCaloRawStreamV3 *in, UInt_t Timestamp); // added header for time info
-  Bool_t CheckFractionAboveAmp(const int *AmpVal, int resultArray[]); // check fraction of signals to check for LED events
-  Bool_t CheckLEDRefAboveAmp(const int *AmpVal, int resultArray[]); // check if LED Ref is also above cut
+  Bool_t CheckFractionAboveAmp(const int *AmpVal, int resultArray[]) const; // check fraction of signals to check for LED events
+  Bool_t CheckLEDRefAboveAmp(const int *AmpVal, int resultArray[]) const; // check if LED Ref is also above cut
 
   // Mapping handling
   AliCaloAltroMapping **GetAltroMapping() const { return fMapping; };
@@ -75,7 +75,7 @@ public:
   int GetNLowGain(int towId) const { return fNLowGain[towId];};        //!
 
   // also for LED reference
-  int GetNRef(const int imod, const int istripMod, const int igain) //!
+  int GetNRef(const int imod, const int istripMod, const int igain) const //!
     { int refId = GetRefNum(imod, istripMod, igain); return fNRef[refId];}; //!
   int GetNRef(int refId) const { return fNRef[refId];}; //!
 
@@ -126,6 +126,9 @@ public:
   void SetSecInAverage(int secInAverage) {fSecInAverage = secInAverage;}; // length of the interval that should be used for the average calculation (determines number of bins in TProfile)
   int GetSecInAverage() const {return fSecInAverage;}; //!
 
+  void SetDownscale(int i) {fDownscale = i;}; //!
+  int GetDownscale() const {return fDownscale;}; //!
+
   // Info on time since start of run
   double GetHour() const { return fHour; }; // time info for current event
   double GetCurrentHour() const { return fHour; }; // time info for current event (same as GetHour(), just more explicitly named)
@@ -180,6 +183,8 @@ public:
   bool fUseAverage; // flag to average graph points into over a time interval
   int fSecInAverage; // time interval for the graph averaging
 
+  int fDownscale; // to select 1 out every N (fDownscale) events
+
   // status counters
   int fNEvents; // # events processed
   int fNAcceptedEvents; // # events accepted
@@ -209,7 +214,7 @@ public:
   int fNLowGain[fgkMaxTowers]; // same, for low gain
   int fNRef[fgkMaxRefs * 2]; // same, for LED refs; *2 for both gains
   
-  ClassDef(AliCaloCalibSignal, 6) // don't forget to change version if you change class member list..
+  ClassDef(AliCaloCalibSignal, 7) // don't forget to change version if you change class member list..
     
 };