TreeS, TreeD and TreeR for ZDC can be written in a separate file
[u/mrichter/AliRoot.git] / ZDC / AliZDC.h
CommitLineData
68ca986e 1#ifndef ALIZDC_H
2#define ALIZDC_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
fe4da5cc 8////////////////////////////////////////////////
f901045b 9// Manager and classes for set ZDC //
fe4da5cc 10////////////////////////////////////////////////
359cdddc 11
12class AliZDCMerger;
fe4da5cc 13
14#include "AliDetector.h"
fe4da5cc 15
16class AliZDC : public AliDetector {
17
18public:
19 AliZDC();
20 AliZDC(const char *name, const char *title);
f901045b 21 virtual ~AliZDC();
68ca986e 22 virtual void AddHit(Int_t track, Int_t *vol, Float_t *hits);
359cdddc 23 virtual void AddDigit(Int_t *sector, Int_t digit);
fe4da5cc 24 virtual void BuildGeometry();
25 virtual void CreateGeometry() {}
26 virtual void CreateMaterials() {}
f901045b 27 Int_t DistancetoPrimitive(Int_t px, Int_t py);
fe4da5cc 28 virtual Int_t IsVersion() const =0;
cefa66cb 29 virtual Float_t ZMin() const; // Minimum overall dimension of the ZDC
30 virtual Float_t ZMax() const; // Maximum overall dimension of the ZDC
359cdddc 31 virtual void MakeBranch(Option_t* opt, const char *file=0);
669dbdaa 32 virtual void MakeBranchInTreeS(TTree *treeS, const char *file=0);
1acbaaa8 33 virtual void MakeBranchInTreeD(TTree *treeD, const char *file=0);
1450a7cd 34 virtual void MakeBranchInTreeR(TTree *treeD, const char *file=0);
359cdddc 35 virtual void Hits2SDigits();
36 virtual void SDigits2Digits();
37 virtual void Hits2Digits();
38 virtual void Digits2Reco();
1450a7cd 39 TClonesArray *Reconstructed() const {return fRecPoints;}
669dbdaa 40 virtual void SetMerger(AliZDCMerger* merger) {fMerger = merger;}
41 virtual AliZDCMerger* Merger() {return fMerger;}
359cdddc 42 virtual void StepManager() {}
1acbaaa8 43
3d0b2c4f 44 // Switching off the shower development in ZDCs
09630792 45 void NoShower(){fNoShower=1;}
46 void Shower() {fNoShower=0;}
359cdddc 47
68ca986e 48protected:
359cdddc 49
50 Int_t fNoShower; // Flag to switch off the shower
51 AliZDCMerger *fMerger; // ! pointer to merger
f901045b 52
1acbaaa8 53 Int_t fNMergedhits; // Number of Merged hits for background
54 TClonesArray *fMergedHits; // TCA for "merged" hits
1acbaaa8 55
359cdddc 56 Int_t fNRecPoints; // Number of RecPoints
57 TClonesArray *fRecPoints; // List of RecPoints
58
92e95964 59 ClassDef(AliZDC,2) // Zero Degree Calorimeter base class
fe4da5cc 60};
fe4da5cc 61
62#endif