]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDTriggerL1.cxx
Fix clonesarray for read out errors (Jochen)
[u/mrichter/AliRoot.git] / TRD / AliTRDTriggerL1.cxx
index 2174b224cd3ccefb5e0175383ed193cb0ee96727..e813a32e5d4a3a26b639aaac3733f31eed8e4177 100644 (file)
@@ -79,7 +79,7 @@ void AliTRDTriggerL1::Trigger()
     return;
   }
   TBranch *branch = trackTree->GetBranch("TRDtrackGTU");
-  AliDebug(1,Form("TRD trigger: found %d tracks", trackTree->GetEntriesFast()));
+  AliDebug(1,Form("TRD trigger: found %lld tracks", trackTree->GetEntriesFast()));
   
   // trigger thresholds should go elsewhere
   Float_t ptThreshold1 = 2;
@@ -108,6 +108,8 @@ void AliTRDTriggerL1::Trigger()
     // jet trigger
     Int_t nTracks1[90]; // tracks above lower pt threshold
     Int_t nTracks2[90]; // tracks above higher pt threshold
+    memset(nTracks1,0,sizeof(Int_t)*90);
+    memset(nTracks2,0,sizeof(Int_t)*90);
     for (Int_t iTrack = 0; iTrack < trackTree->GetEntriesFast(); iTrack++) {
       trackTree->GetEntry(iTrack);
       if (TMath::Abs(trk->GetPt()) > ptThreshold1)