// --- AliRoot header files ---
#include "AliLoader.h"
#include "AliEMCALCalibData.h"
-#include "AliEMCALAlignData.h"
+#include "AliCaloCalibPedestal.h"
+#include "AliEMCALSimParam.h"
class AliLoader ;
class AliEMCAL ;
public:
AliEMCALLoader();
- AliEMCALLoader(const AliEMCALLoader & obj):AliLoader(obj){}
AliEMCALLoader(const Char_t *detname,const Char_t *eventfoldername);
+ AliEMCALLoader(const Char_t *name,TFolder *topfolder);
virtual ~AliEMCALLoader() ;
- // assignement operator requested by coding convention, but not needed
- const AliEMCALLoader & operator = (const AliEMCALLoader & ) {return *this;}
-
virtual Int_t GetEvent(); // Overload to fill TClonesArray
- virtual Int_t LoadHits(Option_t* opt); // Overload to fill TClonesArray
- virtual Int_t LoadSDigits(Option_t* opt); // Overload to fill TClonesArray
- virtual Int_t LoadDigits(Option_t* opt); // Overload to fill TClonesArray
- virtual Int_t LoadRecPoints(Option_t* opt); // Overload to fill TClonesArray
virtual void CleanHits() const
{ if (fHits) fHits->Clear(); AliLoader::CleanHits(); }
// ************ TClonesArrays Access functions
- TClonesArray* Hits(void) { return fHits;}
+ TClonesArray* Hits(void) const { return fHits;}
const AliEMCALHit* Hit(Int_t index) {
if (fHits)
return 0x0;
}
- TClonesArray* SDigits() { return fSDigits;}
+ TClonesArray* SDigits() const { return fSDigits;}
const AliEMCALDigit* SDigit(Int_t index) {
if (fSDigits)
return (const AliEMCALDigit*) fSDigits->At(index);
return 0x0;
}
- TClonesArray* Digits() { return fDigits;}
+ TClonesArray* Digits() const { return fDigits;}
const AliEMCALDigit * Digit(Int_t index) {
if (fDigits)
return (const AliEMCALDigit*) fDigits->At(index);
return 0x0;
}
- TObjArray * RecPoints() { return fRecPoints;}
+ TObjArray * RecPoints() const { return fRecPoints;}
const AliEMCALRecPoint * RecPoint(Int_t index) {
if (fRecPoints)
return (const AliEMCALRecPoint*) fRecPoints->At(index);
void SetDebug(Int_t level) {fDebug = level;} // Set debug level
//Calibration
-
Int_t CalibrateRaw (Double_t energy, Int_t module, Int_t column, Int_t row);//take real calibration coefficients
-
- void SetAlignData(AliEMCALAlignData* alignda) { fAlignData = alignda; }
- void SetCalibData(AliEMCALCalibData* calibda) { fCalibData = calibda; }
- AliEMCALAlignData * AlignData(); // to get the alignment CDB object
+
+ void SetCalibData(AliEMCALCalibData* calibda) { fgCalibData = calibda; }
AliEMCALCalibData * CalibData(); // to get the calibration CDB object
+
+ void SetPedestalData(AliCaloCalibPedestal* caloped) { fgCaloPed = caloped; }
+ AliCaloCalibPedestal* PedestalData(); // to get the pedestal CDB object
+ void SetSimParam(AliEMCALSimParam* simparam) { fgSimParam = simparam; }
+ AliEMCALSimParam* SimulationParameters(); // to get the simulation parameter CDB object
+
+
private:
+ // assignement operator requested by coding convention, but not needed
+ AliEMCALLoader(const AliEMCALLoader &); //Not implemented
+ const AliEMCALLoader & operator = (const AliEMCALLoader &); //Not implemented
+
static const TString fgkECARecPointsBranchName; //! Name of branch with ECA Reconstructed Points
Int_t fDebug ; // Debug level
TClonesArray *fSDigits; //! TClonesArray of sdigits (for tree reading)
TObjArray *fRecPoints; //! TClonesArray of recpoints (for tree reading)
- static AliEMCALAlignData * fAlignData;
- static AliEMCALCalibData * fCalibData; // calibration data
+ static AliEMCALCalibData * fgCalibData; // calibration data
+ static AliCaloCalibPedestal * fgCaloPed; // dead map
+ static AliEMCALSimParam * fgSimParam; // sim param
- ClassDef(AliEMCALLoader,0) // Algorithm class that provides methods to retrieve objects from a list knowing the index
+ ClassDef(AliEMCALLoader,4) // Algorithm class that provides methods to retrieve objects from a list knowing the index
};