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

Comparing UserCode/MitPhysics/Mods/src/JetCleaningMod.cc (file contents):
Revision 1.5 by sixie, Sat Nov 29 18:45:43 2008 UTC vs.
Revision 1.7 by loizides, Wed Dec 10 11:44:33 2008 UTC

# Line 39 | Line 39 | void JetCleaningMod::Process()
39    for (UInt_t i=0; i<GoodJets->GetEntries(); ++i) {
40      const Jet *jet = GoodJets->At(i);        
41  
42 <    Bool_t isElectronOverlap =  false;
43 <    Bool_t isPhotonOverlap =  false;
42 >    Bool_t isElectronOverlap = kFALSE;
43 >    Bool_t isPhotonOverlap = kFALSE;
44  
45      //Check for overlap with an electron
46      if (CleanElectrons) {
# Line 53 | Line 53 | void JetCleaningMod::Process()
53        }
54      }
55  
56 +    if (isElectronOverlap) continue;
57 +
58      //Check for overlap with a photon
59      if (CleanPhotons) {
60        for (UInt_t j=0; j<CleanPhotons->Entries(); j++) {
# Line 64 | Line 66 | void JetCleaningMod::Process()
66        }
67      }
68  
69 <    if (isElectronOverlap || isPhotonOverlap)
68 <      continue;
69 >    if (isPhotonOverlap) continue;
70  
71      CleanJets->Add(jet);    
72    }
73  
74 +  // sort according to pt
75 +  CleanJets->Sort();
76 +
77    // add to event for other modules to use
78    AddObjThisEvt(CleanJets);
79   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines