Introduction of the reference to Copyright and cvs Id
[u/mrichter/AliRoot.git] / STEER / AliDetector.h
CommitLineData
fe4da5cc 1#ifndef AliDetector_H
2#define AliDetector_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
8494b010 8#include <AliModule.h>
fe4da5cc 9#include <AliHit.h>
10
8494b010 11class AliDetector : public AliModule {
fe4da5cc 12
13 // Data members
14protected:
15
fe4da5cc 16 Float_t fTimeGate; //Time gate in seconds
17
fe4da5cc 18 Int_t fIshunt; //1 if the hit is attached to the primary
19 Int_t fNhits; //Number of hits
20 Int_t fNdigits; //Number of digits
21 Int_t fBufferSize; //buffer size for Tree detector branches
fe4da5cc 22 TClonesArray *fHits; //List of hits for one track only
23 TClonesArray *fDigits; //List of digits for this detector
24 TObjArray *fPoints; //Array of points for each track (all tracks in memory)
25
26public:
27
28 // Creators - distructors
29 AliDetector(const char* name, const char *title);
30 AliDetector();
31 virtual ~AliDetector();
32
33 // Inline functions
34 inline virtual int GetNdigits() {return fNdigits;}
35 inline virtual int GetNhits() {return fNhits;}
fe4da5cc 36 inline TClonesArray *Digits() {return fDigits;}
37 inline TClonesArray *Hits() {return fHits;}
38 inline TObjArray *Points() {return fPoints;}
39 inline Int_t GetIshunt() {return fIshunt;}
40 inline void SetIshunt(Int_t ishunt) {fIshunt=ishunt;}
fe4da5cc 41
fe4da5cc 42 // Other methods
fe4da5cc 43 virtual void Browse(TBrowser *b);
fe4da5cc 44 virtual void FinishRun();
fe4da5cc 45 virtual void LoadPoints(Int_t track);
46 virtual void MakeBranch(Option_t *opt=" ");
fe4da5cc 47 virtual void ResetDigits();
48 virtual void ResetHits();
49 virtual void ResetPoints();
50 virtual void SetTreeAddress();
51 virtual void SetTimeGate(Float_t gate) {fTimeGate=gate;}
52 virtual Float_t GetTimeGate() {return fTimeGate;}
8494b010 53 virtual void StepManager() {}
54 virtual void DrawModule() {}
fe4da5cc 55 virtual AliHit* FirstHit(Int_t);
56 virtual AliHit* NextHit();
57 virtual void SetBufferSize(Int_t bufsize=8000) {fBufferSize = bufsize;}
fe4da5cc 58
59 ClassDef(AliDetector,1) //Base class for ALICE detectors
60};
61#endif