correct access to digits in SetBit()
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Mar 2001 17:31:32 +0000 (17:31 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Mar 2001 17:31:32 +0000 (17:31 +0000)
MUON/AliMUONTriggerDecision.cxx

index 898e3c8a9628fd086678cfaa8e7443f97bf2e4c8..363232d90f551fc51f9e8c7a96a1010bd4b64b63 100644 (file)
@@ -14,6 +14,9 @@
  **************************************************************************/
 /*
 $Log$
+Revision 1.8  2001/03/20 16:13:01  pcrochet
+bug fixed in the rejection of soft background (thanks to FM)
+
 Revision 1.7  2001/03/20 13:32:37  egangler
 includes cleanup
 
@@ -246,9 +249,15 @@ void AliMUONTriggerDecision::SetBit(){
       if (muonDigits == 0) return;
       
       gAlice->ResetDigits();
+      Int_t nent = 0;
+      
+      if (gAlice->TreeD()) {
+       nent = (Int_t) gAlice->TreeD()->GetEntries();
+       //printf(" entries %d \n", nent);
+       //     gAlice->TreeD()->GetEvent(nent-2+cathode-1);
+       gAlice->TreeD()->GetEvent(cathode-1);
+      }
       
-      Int_t nent=(Int_t)gAlice->TreeD()->GetEntries();
-      gAlice->TreeD()->GetEvent(nent-2+cathode-1);
       Int_t ndigits = muonDigits->GetEntriesFast();
       if (ndigits == 0) return;