////////////////////////////////////////////////
// Manager and classes for set ZDC //
////////////////////////////////////////////////
+
+class AliZDCMerger;
#include "AliDetector.h"
-
class AliZDC : public AliDetector {
AliZDC(const char *name, const char *title);
virtual ~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() {}
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 ResetDigits();
- virtual void StepManager();
-
+ 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 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 void StepManager() {}
+
// Switching off the shower development in ZDCs
void NoShower(){fNoShower=1;}
void Shower() {fNoShower=0;}
-
+
protected:
- // TClonesArray of stored hits -> not reset et finish event
- // (for digitization at the end of the event)
- TClonesArray *fStHits;
- Int_t fNStHits;
-
-// Int_t fNPrimaryHits; // Number of primary particles
- Int_t fNoShower; // Flag to switch off the shower
+ 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
+
+ Int_t fNRecPoints; // Number of RecPoints
+ TClonesArray *fRecPoints; // List of RecPoints
- ClassDef(AliZDC,1) // Zero Degree Calorimeter base class
+ ClassDef(AliZDC,2) // Zero Degree Calorimeter base class
};
#endif