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

Comparing UserCode/MitPhysics/Mods/src/JetIDMod.cc (file contents):
Revision 1.13 by bendavid, Tue Mar 3 21:47:34 2009 UTC vs.
Revision 1.14 by bendavid, Thu Mar 12 16:00:46 2009 UTC

# Line 11 | Line 11 | ClassImp(mithep::JetIDMod)
11   //--------------------------------------------------------------------------------------------------
12   JetIDMod::JetIDMod(const char *name, const char *title) :
13    BaseMod(name,title),
14 <  fJetBranchName(Names::gkSC5JetBrn),
14 >  fJetsName(ModNames::gkPubJetsName),
15    fGoodJetsName(ModNames::gkGoodJetsName),  
16    fUseJetCorrection(kTRUE),
17 <  fJetPtCut(35.0),
18 <  fJets(0)
17 >  fJetPtCut(35.0)
18   {
19    // Constructor.
20   }
# Line 25 | Line 24 | void JetIDMod::Process()
24   {
25    // Process entries of the tree.
26  
27 <  LoadBranch(fJetBranchName);
27 >  const JetCol  *inJets       = GetObjThisEvt<JetCol>(fJetsName);
28  
29    JetOArr *GoodJets = new JetOArr;
30    GoodJets->SetName(fGoodJetsName);
31  
32    // loop over jets
33 <  for (UInt_t i=0; i<fJets->GetEntries(); ++i) {
34 <    const Jet *jet = fJets->At(i);
33 >  for (UInt_t i=0; i<inJets->GetEntries(); ++i) {
34 >    const Jet *jet = inJets->At(i);
35  
36      if (jet->AbsEta() > 5.0)
37        continue;
# Line 60 | Line 59 | void JetIDMod::Process()
59   //--------------------------------------------------------------------------------------------------
60   void JetIDMod::SlaveBegin()
61   {
62 <  // Run startup code on the computer (slave) doing the actual analysis. Here,
64 <  // we just request the jet collection branch.
62 >  // Run startup code on the computer (slave) doing the actual analysis.
63  
66  ReqBranch(fJetBranchName, fJets);
64   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines