]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
solution of the problem: the BC id of the event header does not match the one from...
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Oct 2012 07:57:16 +0000 (07:57 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Oct 2012 07:57:16 +0000 (07:57 +0000)
T0/AliT0Reconstructor.cxx

index ac6d27682f2c2da24e7c2e582a6e6a8b97211bad..6e4468cc2b5d48f773ab802cccb9e1dd467a65a0 100644 (file)
@@ -373,14 +373,7 @@ void AliT0Reconstructor::Reconstruct(AliRawReader* rawReader, TTree*recTree) con
     {
       timeCFD[i]=0; timeLED[i]=0; chargeQT0[i]=0; chargeQT1[i]=0;
     }
-     Int_t fBCID=Int_t (rawReader->GetBCID());
-      Int_t trmbunch= myrawreader.GetTRMBunchID();
-      AliDebug(10,Form(" CDH BC ID %i, TRM BC ID %i \n", fBCID, trmbunch ));
-      if( (trmbunch-fBCID)!=37) {
-       AliDebug(0,Form("wrong :::: CDH BC ID %i, TRM BC ID %i \n", fBCID, trmbunch ));
-       type = -1;
-      }
+  
       if(type == 7  ) {  //only physics 
        for (Int_t i=0; i<107; i++) {
        for (Int_t iHit=0; iHit<5; iHit++) 
@@ -389,6 +382,13 @@ void AliT0Reconstructor::Reconstruct(AliRawReader* rawReader, TTree*recTree) con
          }
        }
        
+       Int_t fBCID=Int_t (rawReader->GetBCID());
+       Int_t trmbunch= myrawreader.GetTRMBunchID();
+       AliDebug(10,Form(" CDH BC ID %i, TRM BC ID %i \n", fBCID, trmbunch ));
+       if( (trmbunch-fBCID)!=37  ) {
+         AliDebug(0,Form("wrong :::: CDH BC ID %i, TRM BC ID %i \n", fBCID, trmbunch ));
+         //    type = -1;
+       }
        for (Int_t in=0; in<12; in++)  
          {
            for (Int_t iHit=0; iHit<5; iHit++) 
@@ -813,16 +813,18 @@ Bool_t AliT0Reconstructor::PileupFlag() const
   
 Bool_t AliT0Reconstructor::BackgroundFlag() const
 {
   Bool_t background = false;
-
-  Float_t orA = fESDTZERO->GetOrA(0);
-  Float_t orC = fESDTZERO->GetOrC(0);
-  Float_t tvdc =  fESDTZERO->GetTVDC(0);
-
-  if ( (orA > -5 && orA <5) && (orC > -5 && orC <5) && (tvdc < -5 || tvdc > 5)) {
-    background = true;
-    //   printf(" orA %f orC %f tvdc %f\n", orA, orC, tvdc);
-  } 
+  /*  
+      Float_t orA = fESDTZERO->GetOrA(0);
+      Float_t orC = fESDTZERO->GetOrC(0);
+      Float_t tvdc =  fESDTZERO->GetTVDC(ih);
+      
+      if ( (orA > -5 && orA <5) && (orC > -5 && orC <5) && (tvdc < -5 || tvdc > 5)) {
+      background = true;
+      //   printf(" orA %f orC %f tvdc %f\n", orA, orC, tvdc);
+      } 
+  */ 
   return background;