X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ZDC%2FAliZDC.h;h=580723fc338975ff7960fe65d5aee3f3842d9b74;hb=5deab96ce2f095ef5927fb091e3d93574fc46a4c;hp=1a7f2bd9b97c4883424ddbd9b2a98984157b4bd0;hpb=669dbdaa7b9497cf6f9c1ba60cc43d65f1cc723f;p=u%2Fmrichter%2FAliRoot.git diff --git a/ZDC/AliZDC.h b/ZDC/AliZDC.h index 1a7f2bd9b97..580723fc338 100644 --- a/ZDC/AliZDC.h +++ b/ZDC/AliZDC.h @@ -9,9 +9,15 @@ // Manager and classes for set ZDC // //////////////////////////////////////////////// -class AliZDCMerger; - +#include + #include "AliDetector.h" +#include "AliZDCTrigger.h" +#include "AliZDCChMap.h" + +class AliZDCPedestals; +class AliZDCEnCalib; +class AliZDCTowCalib; class AliZDC : public AliDetector { @@ -19,44 +25,105 @@ public: AliZDC(); AliZDC(const char *name, const char *title); virtual ~AliZDC(); + AliZDC(const AliZDC&); + // virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits); - virtual void AddDigit(Int_t *sector, Int_t digit); - virtual void BuildGeometry(); virtual void CreateGeometry() {} virtual void CreateMaterials() {} - Int_t DistancetoPrimitive(Int_t px, Int_t py); virtual Int_t IsVersion() const =0; virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC - virtual void MakeBranch(Option_t* opt, const char *file=0); - virtual void MakeBranchInTreeS(TTree *treeS, const char *file=0); - virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0); - virtual void MakeBranchInTreeR(TTree *treeD, const char *file=0); + virtual void SetTreeAddress(); + virtual void MakeBranch(Option_t* opt); virtual void Hits2SDigits(); - virtual void SDigits2Digits(); - virtual void Hits2Digits(); - virtual void Digits2Reco(); - TClonesArray *Reconstructed() const {return fRecPoints;} - virtual void SetMerger(AliZDCMerger* merger) {fMerger = merger;} - virtual AliZDCMerger* Merger() {return fMerger;} + virtual AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const; + virtual void Digits2Raw(); + virtual Bool_t Raw2SDigits(AliRawReader* rawReader); + Int_t Pedestal(Int_t Detector, Int_t Quadrant, Int_t Res) const; + Int_t ADCch2Phe(Int_t Detector, Int_t Quadrant, Int_t ADCVal, Int_t Res) const; virtual void StepManager() {} // Switching off the shower development in ZDCs void NoShower(){fNoShower=1;} void Shower() {fNoShower=0;} + + virtual void SetVCollSideCAperture(Float_t /*aperture*/) {} + virtual void SetVCollSideCApertureNeg(Float_t /*aperture*/) {} + virtual void SetVCollSideCCentre(Float_t /*centre*/) {} + + virtual void SetVCollSideAAperture(Float_t /*aperture*/) {} + virtual void SetVCollSideAApertureNeg(Float_t /*aperture*/) {} + virtual void SetVCollSideACentre(Float_t /*centre*/) {} + + virtual void SetTCDDAperturePos(Float_t /*aperture*/) {} + virtual void SetTCDDApertureNeg(Float_t /*aperture*/) {} + + virtual void SetTDIAperturePos(Float_t /*aperture*/) {} + virtual void SetTDIApertureNeg(Float_t /*aperture*/) {} + + virtual void SetLumiLength(Float_t /*length*/) {} + + virtual void SetYZNC(Float_t /*yZNC*/) {} + virtual void SetYZNA(Float_t /*yZNA*/) {} + virtual void SetYZPC(Float_t /*yZPC*/) {} + virtual void SetYZPA(Float_t /*yZPA*/) {} -protected: + //Calibration methods + void SetZDCCalibFName(const char *name); + char* GetZDCCalibFName() const {return (char*)fZDCCalibFName.Data();} + AliZDCPedestals* GetPedCalib() const {return fPedCalib;} + AliZDCEnCalib* GetECalibData() const {return fEnCalibData;} + + // Map from OCDB + AliZDCChMap* GetChMap() const; + + // Trigger + virtual AliTriggerDetector* CreateTriggerDetector() const + {return new AliZDCTrigger();} - Int_t fNoShower; // Flag to switch off the shower - AliZDCMerger *fMerger; // ! pointer to merger - Int_t fNMergedhits; // Number of Merged hits for background - TClonesArray *fMergedHits; // TCA for "merged" hits + void SetSpectatorsTrack() {fSpectatorTracked=0;} + Int_t SpectatorsTracked() const {return fSpectatorTracked;} + void SetBeamEnergy(Float_t beamEnergy) {fBeamEnergy = beamEnergy;} + void SetpAsystem() {fIspASystem = kTRUE;} + void SetRELDISGenerator() {fIsRELDISgen = kTRUE;} - Int_t fNRecPoints; // Number of RecPoints - TClonesArray *fRecPoints; // List of RecPoints + void SetOnlyZEM() {fOnlyZEM=kTRUE;} + void SetMotherFinding() {fFindMother=kTRUE;} - ClassDef(AliZDC,2) // Zero Degree Calorimeter base class +private: + + AliZDC& operator = (const AliZDC&); + +protected: + + Int_t fNoShower; // Flag to switch off the shower + + //Calibration data member + AliZDCPedestals* fPedCalib; //! Pedestal data for ZDC + AliZDCEnCalib* fEnCalibData; //! Energy data for ZDC + AliZDCTowCalib* fTowCalibData; //! Equalization data for ZDC + + TString fZDCCalibFName; // Name of the ZDC calibration data + + Int_t fSpectatorTracked; // Are spectator tracked by generator? 0=NO + Float_t fBeamEnergy; // beam energy from generator (AliGenZDC + RELDIS) + Bool_t fIspASystem; // Configuring pA collisions (MC only) + Bool_t fIsRELDISgen; // Is RELDIS used as generator + + Bool_t fOnlyZEM; // build only ZEM (no had. calorimeters!) + Bool_t fFindMother; // look for particle mothers in the stack in StepManager + + ClassDef(AliZDC,14) // Zero Degree Calorimeter base class }; +// Calibration +//_____________________________________________________________________________ +inline void AliZDC::SetZDCCalibFName(const char *name) +{ + fZDCCalibFName = name; + gSystem->ExpandPathName(fZDCCalibFName); +} + + #endif