]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPedestal.h
PHOS calibration macros
[u/mrichter/AliRoot.git] / MUON / AliMUONPedestal.h
index 47ca993c5d44b5d1114e177168b124cd3c3616c8..98fce65ff3f4514430c11f0569ddc220582cd270 100644 (file)
@@ -23,12 +23,18 @@ class AliMUONVStore;
 
 class TTimeStamp;
 
+using std::ofstream;
+using std::ostream;
+
 class AliMUONPedestal : public TObject
 {
   public:
     AliMUONPedestal();
+    AliMUONPedestal(TRootIOCtor* dummy);
     virtual ~AliMUONPedestal();
     
+    /// return the number of current events
+    void SetAliNCurrentEvents(Int_t events) {fNCurrentEvents = events;}
     /// return the number of events
     void SetAliNEvents(Int_t events) {fNEvents = events;}
     /// return the Run number
@@ -50,9 +56,19 @@ class AliMUONPedestal : public TObject
 
     /// set config flag
     void SetconfigDA(Int_t ind) {fConfig = ind;}
+    /// set Nb of evt threshold to calculate pedestal
+    void SetnEvthreshold(Int_t ind) {fNEvthreshold = ind;}
+    /// set DA status (return code)
+    void SetStatusDA(Int_t ind) {fStatusDA = ind;}
+    /// get DA status (return code)
+    Int_t GetStatusDA() const {return fStatusDA;}
+    /// sorting flag
+    void SetnSorting(Int_t ind) {fSorting = ind;}
     /// set specific  DA prefixname
     void SetprefixDA(const char* folder) { fPrefixDA=folder;}
-    /// set the index of calibration runs
+     /// set specific LDC prefixname
+    void SetprefixLDC(const char* folder) { fPrefixLDC=folder;}
+   /// set the index of calibration runs
     void SetAliIndex(Int_t ind) {fIndex = ind;}
     /// Compute the pedestal data (mean, sigma)
     void Finalize();
@@ -61,16 +77,20 @@ class AliMUONPedestal : public TObject
     /// Fill Histograms
     void MakeControlHistos();
 
-  Int_t ADCMax() const { return 4095; }
+    Int_t ADCMax() const { return 4095; }
 
 protected:
     //    Int_t fN; ///<
+    Int_t fNCurrentEvents; ///< Number of current events
+    Int_t fNEvthreshold; ///< Nbevt threshold (pedestal calculation)
+    Int_t fSorting; ///< sorting flag (pedestal values)
     Int_t fNEvents; ///< Number of events
     Int_t fRunNumber; ///< run number
     Int_t fNChannel; ///< Nb of channels (pads)
     Int_t fNManu; ///<  Nb of Manu
     Int_t fNManuConfig; ///<  Nb of Manu in the current detector configuration
     Int_t fConfig; ///< flag 1(0) for reading(or not) configuration ascii file
+    Int_t fStatusDA; ///< DA return code (0=OK)
     AliMUONVStore* fErrorBuspatchTable; ///< Table for buspatches with parity errors 
     AliMUONVStore* fManuBuspatchTable; ///< Occupancy rate for each (buspatch, manu)
     AliMUONVStore* fManuBPoutofconfigTable; ///< (buspatch, manu) out of config
@@ -81,6 +101,7 @@ protected:
     AliMUONVStore* fPedestalStore; ///< data container:  (Pedmean,sigma) values for each (BP,manuId)
     Int_t fIndex; ///< calibration run index
     TString fPrefixDA; ///< specific DA prefixname
+    TString fPrefixLDC; ///< specific LDC prefixname
 
   static const Int_t fgkADCMax; ///< max channel count
   
@@ -90,7 +111,7 @@ protected:
     /// Not implemented
     AliMUONPedestal& operator = (const AliMUONPedestal& rhs);
 
-  ClassDef(AliMUONPedestal,4) // Pedestal computing for DA 
+  ClassDef(AliMUONPedestal,5) // Pedestal computing for DA 
 };
 
 #endif