ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/src/ElectronTools.cc
(Generate patch)

Comparing UserCode/MitPhysics/Utils/src/ElectronTools.cc (file contents):
Revision 1.8 by ceballos, Fri May 28 16:31:43 2010 UTC vs.
Revision 1.9 by bendavid, Sat May 29 11:56:17 2010 UTC

# Line 366 | Line 366 | Bool_t ElectronTools::PassSpikeRemovalFi
366    return passSpikeRemovalFilter;
367   }
368  
369 + Bool_t ElectronTools::PassTriggerMatching(const Electron *ele, const TriggerObjectCol *trigobjs)
370 + {
371 +  
372 +  for (UInt_t i=0; i<trigobjs->GetEntries(); ++i) {
373 +    const TriggerObject *trigobj = trigobjs->At(i);
374 +    if (trigobj->TriggerType()==TriggerObject::TriggerCluster || trigobj->TriggerType()==TriggerObject::TriggerElectron) {
375 +      if (MathUtils::DeltaR(ele,trigobj)<0.3) {
376 +        return kTRUE;
377 +      }
378 +    }
379 +  }
380 +  
381 +  return kFALSE;
382 +  
383 +  
384 + }
385 +
386   //--------------------------------------------------------------------------------------------------
387   Int_t ElectronTools::Classify(const Electron *ele) {
388    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines