]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding Ishunt funcionality to AliPHOSv0hits class
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Apr 2000 15:30:31 +0000 (15:30 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Apr 2000 15:30:31 +0000 (15:30 +0000)
PHOS/AliPHOSHit.cxx
PHOS/AliPHOSHit.h
PHOS/AliPHOSv0hits.cxx
PHOS/AliPHOSv0hits.h

index d207935f41cb6cf8dfb99035be40cfd16d9873de..9854c20f8d17234a10e88950257766f1fdfead53 100644 (file)
@@ -64,7 +64,7 @@ AliPHOSHit::AliPHOSHit(Int_t primary, Int_t id, Float_t *hits)
    fELOS       = hits[3] ;
    fPrimary    = primary ;
 }
-AliPHOSHit::AliPHOSHit(Int_t primary, Int_t Track, Int_t id, Float_t *hits)
+AliPHOSHit::AliPHOSHit(Int_t Shunt, Int_t primary, Int_t Track, Int_t id, Float_t *hits) : AliHit(Shunt, Track)
 {
   // ctor
   
index 63f2af5b99fe87a3ef7d07cae197867579514b70..b7ad271e299764f5ae605ba7d874d32d9de1f933 100644 (file)
@@ -27,7 +27,7 @@ public:
   AliPHOSHit() {}
   AliPHOSHit(const AliPHOSHit & hit) ; 
   AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ;
-  AliPHOSHit(Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
+  AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ;
   virtual ~AliPHOSHit(void) {}  
   
   Float_t GetEnergy(void)   const { return fELOS ; }
index 6d8bdfcfabdff5fc0c872b7a994d0e23ffb76a32..9031ac189e460c30b1191f70a4f000f09b47a711 100644 (file)
@@ -82,7 +82,7 @@ AliPHOSv0hits::~AliPHOSv0hits()
 }
 
 //____________________________________________________________________________
-void AliPHOSv0hits::AddHit(Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits)
+void AliPHOSv0hits::AddHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t Id, Float_t * hits)
 {
   // Add a hit to the hit list.
   // In this version of AliPHOSv0, a PHOS hit is real geant 
@@ -100,7 +100,7 @@ void AliPHOSv0hits::AddHit(Int_t primary, Int_t tracknumber, Int_t Id, Float_t *
 
   //  fHits->Print("");
 
-  newHit = new AliPHOSHit(primary, tracknumber, Id, hits) ;
+  newHit = new AliPHOSHit(shunt, primary, tracknumber, Id, hits) ;
 
   // We DO want to save in TreeH the raw hits 
   //  TClonesArray &lhits = *fHits;
@@ -227,7 +227,7 @@ void AliPHOSv0hits::StepManager(void)
                fGeom->RelToAbsNumbering(relid, absid) ; 
 
        // add current hit to the hit list      
-       AddHit(primary, tracknumber, absid, xyze);
+       AddHit(fIshunt, primary, tracknumber, absid, xyze);
 
       } // there is deposited energy 
      } // We are inside the gas of the CPV  
@@ -254,7 +254,7 @@ void AliPHOSv0hits::StepManager(void)
  
       // add current hit to the hit list
 
-          AddHit(primary,tracknumber, absid, xyze);
+          AddHit(fIshunt, primary,tracknumber, absid, xyze);
     
        } // there is deposited energy
     } // we are inside a PHOS Xtal
index 58e394a2c3545ba4aa328c99a0647264102ad117..76fc21e0265f99d0d51e2a10aa5e6fbf92428fac 100644 (file)
@@ -23,7 +23,7 @@ public:
   AliPHOSv0hits(const char *name, const char *title="") ;
   virtual ~AliPHOSv0hits(void) ;
 
-  virtual void   AddHit( Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; 
+  virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; 
 // adds a hit to the hit tree (any pre=digitalization is done here (so large root file !!) 
   void            FinishEvent(void) ;          // makes the digits from the hits 
   virtual void    StepManager(void) ;  // StepManager to keep current tack number in the hit