]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Integrator vs clock method for digit
authormbroz <Michal.Broz@cern.ch>
Mon, 20 Oct 2014 10:56:04 +0000 (12:56 +0200)
committermbroz <Michal.Broz@cern.ch>
Mon, 20 Oct 2014 10:56:04 +0000 (12:56 +0200)
AD/AliADdigit.cxx
AD/AliADdigit.h

index 4d031269629eccebae6d2f293d98ec738b4c7257..cfad82fb723a9378e3573e8147ba77e09c2a6501 100644 (file)
@@ -58,8 +58,16 @@ fIntegrator(integrator)
   if (labels)
     for(Int_t iTrack = 0; iTrack < 3; ++iTrack) fTracks[iTrack] = labels[iTrack];
 }
-
-
+//__________________________________________________________________________
+Bool_t AliADdigit::GetIntegratorFlag(Int_t clock)
+{
+if (clock >= 0 && clock < kNClocks){
+       if(clock%2 == 0) return fIntegrator;
+       else return !fIntegrator;
+       }
+       
+else return kFALSE;
+}
 //__________________________________________________________________________
 void AliADdigit::Print(const Option_t*) const
 {
index ab567881b8559327ad150f3577ee73269abc7ec9..38a61a1de5ca4b55f52743f8335e92f7ce2ff015 100644 (file)
@@ -27,6 +27,7 @@ public:
     Float_t Width()      const {return fWidth;} 
     Bool_t  Integrator() const {return fIntegrator;}
     Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kNClocks) ? fChargeADC[clock] : 0;}
+    Bool_t  GetIntegratorFlag(Int_t clock);
     
   protected:
     Int_t   fPMNumber;      // PhotoMultiplier number (0 to 16)