#include <JetSelector.hpp>
Inheritance diagram for caf_util::JetSelector:

Public Member Functions | |
| JetSelector (const char *name) | |
| ~JetSelector () | |
| bool | processEvent (cafe::Event &event) |
| Called for every event. | |
| bool | selectObject (const TMBJet &jet) |
| Abstract select method to be overridden by user. | |
| float | MaxAbsEtaOfL1CalCoverage (int runnum) |
| const std::string & | jes () const |
| void | setJES (const std::string &jes) |
| set JES type applied to the jets | |
Private Member Functions | |
| void | before (cafe::Collection< TMBJet > &from) |
| Called before the actual selection starts. | |
| void | SetJESType (const TMBJet &jet) |
| setup JES correction type | |
| void | Smear (const TMBJet &jet) |
| apply smearing | |
| ClassDef (JetSelector, 0) | |
Private Attributes | |
| bool | _useStandardCuts |
| bool | _applyStandardIDCuts |
| bool | _applyStandardEMJetsRemoval |
| bool | _applyStandardL1Conf |
| bool | _requireVertexConf |
| bool | _useSmearedJets |
| std::string | _jes |
| int | _njets |
| int | _njetsmax |
| int | _nselected |
| float | _pTmin |
| bool | _sort |
| cafe::StatPointer | _stat |
| float | _EMFmin |
| float | _EMFmax |
| float | _CHFmin |
| float | _CHFmax |
| float | _eta |
| float | _detEta |
| bool | _isMC |
| bool | _doL1cut |
| float | _L1boundaryOffset |
| float | _f90noL1 |
| float | _chfnoL1 |
| float | _l1cutCC |
| float | _l1cutICD |
| float | _l1cutEC |
| int | _runnum |
| float | _CPFmin |
| std::string | _vertexBranch |
| cafe::Variables | _vertexVars |
| UInt_t | _PV0id |
| cafe::Variables | _vars |
| cafe::Variables | _varsglob |
Usage: Here's a list of all configuration parameters used by the selector, along with their standard values.
Required parameters:
Optional parameters:
If no optional parameters are given, the jet ID group's cuts are applied. Here's an example config file that shows how to use this jet selector:
cafe.Run: JetSelector(myJets)
myJets.To: GoodJet myJets.From: JCCB myJets.Tree: Preselection myJets.EMFmin: 0.05 myJets.EMFmax: 0.95 myJets.CHFmin: 0.0 myJets.CHFmax: 0.4 myJets.eta: 2.5 myJets.L1cut: false
Jets with 0.05<EMF<0.95, 0.0<CHF<0.4 and |eta|<2.5 are stored in the branch "GoodJet" that is added to a tree called "Preselection".
Definition at line 96 of file JetSelector.hpp.
|
|
Definition at line 18 of file JetSelector.cpp. References _applyStandardEMJetsRemoval, _applyStandardIDCuts, _applyStandardL1Conf, _CHFmax, _CHFmin, _chfnoL1, _CPFmin, _detEta, _doL1cut, _EMFmax, _EMFmin, _eta, _f90noL1, _jes, _L1boundaryOffset, _l1cutCC, _l1cutEC, _l1cutICD, _njets, _njetsmax, _pTmin, _requireVertexConf, _sort, _useSmearedJets, _useStandardCuts, _vertexBranch, cafe::Config::get(), and cafe::Processor::name(). |
|
|
Definition at line 100 of file JetSelector.hpp. |
|
|
Called before the actual selection starts. E.g. the input can be sorted here. Reimplemented from cafe::SelectUserObjects< TMBJet >. Definition at line 260 of file JetSelector.cpp. References _isMC, _sort, _useSmearedJets, cafe::Collection< T >::begin(), cafe::Collection< T >::end(), SetJESType(), Smear(), and cafe::Collection< T >::sort(). |
|
||||||||||||
|
|
|
|
Definition at line 105 of file JetSelector.hpp. References _jes. |
|
|
Definition at line 253 of file JetSelector.cpp. Referenced by selectObject(). |
|
|
Called for every event.
Reimplemented from cafe::SelectUserObjects< TMBJet >. Definition at line 59 of file JetSelector.cpp. References _isMC, _njets, _njetsmax, _nselected, _PV0id, _requireVertexConf, _runnum, _stat, _useStandardCuts, _vars, _varsglob, _vertexBranch, _vertexVars, cafe::Processor::debug(), cafe::StatPointer::EventSelected(), cafe::EventBase::get(), cafe::EventBase::getCollection(), cafe::Event::getGlobal(), cafe::Event::getMCEventInfo(), cafe::Processor::out(), TMBGlobal::runno(), cafe::Collection< T >::size(), and cafe::EventBase::tag(). |
|
|
|
set JES type applied to the jets
Definition at line 108 of file JetSelector.hpp. References _jes. |
|
|
|
apply smearing
Definition at line 274 of file JetSelector.cpp. References _jes, TMBJet::ActAsSmeared(), TMBJet::ActAsSmearedMU(), TMBJet::CurrentlyActAs(), TMBJet::kSmeared, TMBJet::kSmearedMU, and cafe::Processor::name(). Referenced by before(), and selectObject(). |
|
|
Definition at line 117 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 116 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 118 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 133 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 132 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 140 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 145 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 135 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 137 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 131 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 130 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 134 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 139 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 136 of file JetSelector.hpp. Referenced by before(), processEvent(), and selectObject(). |
|
|
Definition at line 122 of file JetSelector.hpp. Referenced by jes(), JetSelector(), setJES(), SetJESType(), and Smear(). |
|
|
Definition at line 138 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 141 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 143 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 142 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 123 of file JetSelector.hpp. Referenced by JetSelector(), processEvent(), and selectObject(). |
|
|
Definition at line 124 of file JetSelector.hpp. Referenced by JetSelector(), and processEvent(). |
|
|
Definition at line 125 of file JetSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 126 of file JetSelector.hpp. Referenced by JetSelector(), and selectObject(). |
|
|
Definition at line 149 of file JetSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 119 of file JetSelector.hpp. Referenced by JetSelector(), processEvent(), and selectObject(). |
|
|
Definition at line 144 of file JetSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 127 of file JetSelector.hpp. Referenced by before(), JetSelector(), and selectObject(). |
|
|
Definition at line 129 of file JetSelector.hpp. Referenced by processEvent(), and selectObject(). |
|
|
Definition at line 120 of file JetSelector.hpp. Referenced by before(), JetSelector(), and selectObject(). |
|
|
Definition at line 115 of file JetSelector.hpp. Referenced by JetSelector(), processEvent(), and selectObject(). |
|
|
Reimplemented from cafe::SelectUserObjects< TMBJet >. Definition at line 151 of file JetSelector.hpp. Referenced by processEvent(). |
|
|
Definition at line 151 of file JetSelector.hpp. Referenced by processEvent(). |
|
|
Definition at line 146 of file JetSelector.hpp. Referenced by JetSelector(), and processEvent(). |
|
|
Definition at line 147 of file JetSelector.hpp. Referenced by processEvent(). |
1.3.4