]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSv4.h
Removing old scripts no longer used.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv4.h
index c59a07bb121410bdfc503e4234da834cbc72b014..bbb9ff44de0efb5a8dc09dbe2eddc4cec8fccfdf 100644 (file)
 #include "TClonesArray.h"
 #include "TRandom.h"
 
+class TVector3 ;
+class TFile;
+
 // --- AliRoot header files ---
 #include "AliPHOS.h"
-#include "AliPHOSGeometry.h"
-#include "AliPHOSPID.h"
-#include "AliPHOSFastRecParticle.h"
+class AliPHOSGeometry ;
+class AliPHOSFastRecParticle ;
 
 class AliPHOSv4 : public AliPHOS {
 
 public:
 
-  AliPHOSv4(void) ;
+  AliPHOSv4() ;
   AliPHOSv4(const char *name, const char *title="") ;
   AliPHOSv4(const AliPHOSv4 & fast) {
     // cpy ctor: no implementation yet
@@ -37,31 +39,41 @@ public:
   }
   virtual ~AliPHOSv4(void) ;
 
+  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
+    // useless since there are no hits
+    assert(0==1) ; 
+  }
   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) ;                             
-  virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }  
+  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) ;
+  virtual Int_t  IsVersion(void) const {
+    // Gives the version number 
+    return 4 ; 
+  }
+
+  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) ; 
                                                                      // makes the detected position
   void MakeRecParticle(const Int_t modid, const 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
-  AliPHOSFastRecParticle::FastRecParticlesList * 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 TString Version(void){ 
+    // As IsVersion
+    return TString("v4") ; 
+  }
 
-  AliPHOSv4 & operator = (const AliPHOSv4 & rvalue)  {
-    // assignement operator requested by coding convention
-    // but not needed
+  AliPHOSv4 & operator = (const AliPHOSv4 & )  {
+    // assignement operator requested by coding convention but not needed
     assert(0==1) ;
     return *this ; 
   }
@@ -71,8 +83,7 @@ private:
   Float_t fBigBoxX ;                         // main box containing all PHOS (EMC+PPSD)
   Float_t fBigBoxY ;                         // main box containing all PHOS (EMC+PPSD)
   Float_t fBigBoxZ ;                         // main box containing all PHOS (EMC+PPSD)
-  AliPHOSFastRecParticle::FastRecParticlesList * fFastRecParticles ; // list of particles modified by the response function 
-  AliPHOSGeometry * fGeom ;                  // geometry definition
+  TClonesArray * fFastRecParticles ;         // list of particles modified by the response function 
   Int_t fNRecParticles ;                     // number of detected particles
   TRandom fRan ;                             // random number generator
   Double_t fResPara1 ;                       // parameter for the energy resolution dependence