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 |
|
} |
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; |
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 |
|
} |