X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSv0.h;h=d3fe3efc2088b3bd1bd51a9dd42961b46624f213;hb=8d4de2391437eb0e093702de11436169c8676b4c;hp=c4378f7bf7285212d24ade4d09aae55eaece9764;hpb=2803f2846f1c15e42e702f17cec0cfdfa4a1acff;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSv0.h b/PHOS/AliPHOSv0.h index c4378f7bf72..d3fe3efc208 100644 --- a/PHOS/AliPHOSv0.h +++ b/PHOS/AliPHOSv0.h @@ -3,70 +3,78 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ +/* $Id$ */ + +/* History of cvs commits: + * + * $Log$ + * Revision 1.44 2006/09/27 19:55:57 kharlov + * Alignment object with symbolic volume names are introduced + * + * Revision 1.43 2005/05/28 14:19:05 schutz + * Compilation warnings fixed by T.P. + * + */ + //_________________________________________________________________________ // Implementation version v0 of PHOS Manager class -// Layout EMC + PPSD has name GPS2 -// +// Layout EMC + CPV has name IHEP +//*-- //*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- -#include "TClonesArray.h" + +class TFile; +class TFolder; // --- AliRoot header files --- #include "AliPHOS.h" -#include "AliPHOSGeometry.h" -#include "AliPHOSReconstructioner.h" -#include "AliPHOSTrackSegmentMaker.h" -#include "AliPHOSPID.h" class AliPHOSv0 : public AliPHOS { -public: + public: - AliPHOSv0(void) ; + AliPHOSv0() {} AliPHOSv0(const char *name, const char *title="") ; - AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ; - virtual ~AliPHOSv0(void) ; + virtual ~AliPHOSv0(void){ + // dtor + } - virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree - virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display - void BuildGeometryforPHOS(void) ; // creates the PHOS geometry for the ROOT display - void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display - virtual void CreateGeometry(void) ; // creates the geometry for GEANT - void CreateGeometryforPHOS(void) ; // creates the PHOS geometry for GEANT - void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT - Int_t Digitize(Float_t Energy); - void FinishEvent(void) ; // makes the digits from the hits - virtual AliPHOSGeometry * GetGeometry() { return fGeom ; } - virtual void Init(void) ; // does nothing - Int_t IsVersion(void) const { return 0 ; } - void MakeBranch(Option_t* opt) ; - virtual AliPHOSRecPoint::RecPointsList * PpsdRecPoints() { - // Getting list of PPSD RecPoints - return fPpsdRecPoints ; +// virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) { + //this function is not a final-overrider for AliPHOS::AddHit, to + //supress warning, I use using-declaration :) + using AliPHOS::AddHit; + virtual void AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) { + // useless since there are no hits + Fatal("AddHit", "not to be used with v0") ; } - void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ; - void ResetClusters(){} ; - virtual void ResetDigits() ; - void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;} - void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } - virtual void SetTreeAddress(); - virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization - virtual TString Version(void){ return TString("v0"); } -protected: - - Float_t fDigitThreshold ; // Threshold for the digit registration - AliPHOSGeometry * fGeom ; // Geometry definition - Int_t fNTmpHits ; //! Used internally for digitalization - Float_t fPinElectronicNoise ; // Electronic Noise in the PIN - AliPHOSRecPoint::RecPointsList * fPpsdRecPoints ; // The RecPoints (clusters) list in PPSD - virtual void ResetReconstruction() ; // Reset reconstructed objects - AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures - TClonesArray * fTmpHits ; //! Used internally for digitalization - AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC + virtual void CreateGeometry(void) ; // creates the geometry for GEANT + void CreateGeometryforEMC(void) ; // creates the PHOS geometry for GEANT + // void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT + void CreateGeometryforCPV(void) ; // creates the CPV geometry for GEANT + void CreateGeometryforSupport(void) ; // creates the Support geometry for GEANT + virtual void AddAlignableVolumes() const; // define sym.names for alignable volumes - ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD + virtual Float_t ZMin() const; // overall dimension of the module (min) + virtual Float_t ZMax() const; // overall dimension of the module (max) -}; + virtual void Init(void) ; // does nothing + virtual Int_t IsVersion(void) const { + // Gives the version number + return 0 ; + } + virtual const TString Version(void)const { + // As above + return TString("v0") ; + } + + + private: + AliPHOSv0(AliPHOSv0 & phos); + AliPHOSv0 & operator = (const AliPHOSv0 & /*rvalue*/); + ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD + + }; + #endif // AliPHOSV0_H