X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSvFast.h;h=739bb16323ac5293eb2fc8da03a96c6f256f9675;hb=fb78191c68b3699d504e4598999c20f841e92078;hp=d1232d798ba7928f304af8b9f49d2396687d9129;hpb=fa7cce36cc9d89d826b515b7bd8c08120ca3c24d;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSvFast.h b/PHOS/AliPHOSvFast.h index d1232d798ba..739bb16323a 100644 --- a/PHOS/AliPHOSvFast.h +++ b/PHOS/AliPHOSvFast.h @@ -15,54 +15,60 @@ //*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- -#include "TClonesArray.h" +//#include "TClonesArray.h" #include "TRandom.h" +class TVector3 ; +class TFile; + // --- AliRoot header files --- #include "AliPHOS.h" -#include "AliPHOSGeometry.h" -#include "AliPHOSPID.h" +class AliPHOSGeometry ; class AliPHOSFastRecParticle ; class AliPHOSvFast : public AliPHOS { public: - AliPHOSvFast(void) ; + AliPHOSvFast() ; AliPHOSvFast(const char *name, const char *title="") ; - AliPHOSvFast(const AliPHOSvFast & fast) { - // cpy ctor: no implementation yet - // requested by the Coding Convention - assert(0==1) ; + AliPHOSvFast(AliPHOSvFast & fast) : AliPHOS(fast) { + fast.Copy(*this) ; } virtual ~AliPHOSvFast(void) ; + virtual void Copy(AliPHOSvFast & fast) ; void AddRecParticle(const AliPHOSFastRecParticle & rp) ; // adds primary particle to the RecParticles list virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display virtual void CreateGeometry(void) ; // creates the geometry for GEANT - Float_t GetBigBox(Int_t index) ; + Float_t GetBigBox(Int_t index) const; virtual void Init(void) ; // does nothing - Int_t IsVersion(void) const { return -1 ; } - void MakeBranch(Option_t* opt, const char *file=0) ; - Double_t MakeEnergy(const Double_t energy) ; // makes the detected energy - TVector3 MakePosition(const Double_t energy, const TVector3 pos, const Double_t th, const Double_t ph) ; + virtual Int_t IsVersion(void) const { + // Gives the version number + return 99 ; + } + + void MakeBranch(Option_t* opt); + Double_t MakeEnergy(Double_t energy) ; // makes the detected energy + TVector3 MakePosition(Double_t energy, TVector3 pos, Double_t th, Double_t ph) ; // makes the detected position - void MakeRecParticle(const Int_t modid, const TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary + void MakeRecParticle(Int_t modid, TVector3 pos, AliPHOSFastRecParticle & rp) ; // makes a reconstructes particle from primary Int_t MakeType(AliPHOSFastRecParticle & rp) ; // gets the detected type of particle // gets TClonesArray of reconstructed particles - TClonesArray * FastRecParticles() { return fFastRecParticles ; } + TClonesArray * FastRecParticles() const { return fFastRecParticles ; } virtual void ResetPoints() ; void ResetFastRecParticles() ; void SetBigBox(Int_t index, Float_t value) ; Double_t SigmaE(Double_t energy) ; // calulates the energy resolution at a given Energy - Double_t SigmaP(Double_t energy, Int_t inc) ; // calulates the position resolution at a given Energy at a given incidence + Double_t SigmaP(Double_t energy, Double_t inc) ; // calulates the position resolution at a given Energy at a given incidence virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization + virtual const TString Version(void)const { + // As IsVersion + return TString("vFast") ; + } - AliPHOSvFast & operator = (const AliPHOSvFast & rvalue) { - // assignement operator requested by coding convention - // but not needed - assert(0==1) ; - return *this ; + AliPHOSvFast & operator = (const AliPHOSvFast & ) { + Fatal("operator =", "not implemented") ; return *this ; } private: