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

Public Types | |
| enum | JES { NotShifted, ShiftedPos, ShiftedNeg } |
Public Member Functions | |
| ReComputeMET (const char *name) | |
| ~ReComputeMET () | |
| bool | processEvent (cafe::Event &event) |
| Called for every event. | |
| void | inputFileOpened (TFile *file) |
| Called for every new input file that was opened. | |
| void | inputFileClosing (TFile *file) |
| Called for every input file that is about to be closed. | |
| void | setJES (const JES &jes) |
| ClassDef (ReComputeMET, 0) | |
Private Attributes | |
| std::string | _fromBranch |
| std::string | _toBranch |
| std::string | _treeName |
| TTree * | _tree |
| TBranch * | _branch |
| TMBMet * | _result |
| cafe::Variables | _vars |
| cafe::Variables | _mcvars |
| std::string | _muonBranch |
| std::string | _electronBranch |
| std::string | _jetBranch |
| bool | _debug |
| bool | _useDefaultMuon |
| bool | _useDefaultElectron |
| bool | _useDefaultJet |
| std::vector< std::string > | _valgo |
| JES | _jes |
It recomputes the corrections for:
Required parameters:
Optional parameters:
If you only want to propagate the changes due to a new JES, you need only to specify: jetBranch and jetConeSize (the EM, CH and muon corrections can be copied from the input MET branch)
If you want to recompute the missing ET with a list of EM of jets where the good object definition is not the standard one, the EM-jet matching has to be done before calling for ReComputeMET.
Definition at line 61 of file ReComputeMET.hpp.
|
|
Definition at line 70 of file ReComputeMET.hpp. |
|
|
Definition at line 15 of file ReComputeMET.cpp. References _debug, _electronBranch, _fromBranch, _jes, _jetBranch, _muonBranch, _toBranch, _treeName, _useDefaultElectron, _useDefaultJet, _useDefaultMuon, _valgo, _vars, cafe::Processor::err(), cafe::Config::get(), cafe::Config::getVString(), cafe::Processor::name(), NotShifted, cafe::Processor::out(), ShiftedNeg, and ShiftedPos. |
|
|
Definition at line 65 of file ReComputeMET.hpp. |
|
||||||||||||
|
|
|
|
Called for every input file that is about to be closed.
Reimplemented from cafe::Processor. Definition at line 106 of file ReComputeMET.cpp. |
|
|
Called for every new input file that was opened.
Reimplemented from cafe::Processor. Definition at line 82 of file ReComputeMET.cpp. References _branch, _fromBranch, _result, _toBranch, _tree, _treeName, cafe::Processor::err(), cafe::Processor::fullName(), and cafe::Processor::name(). |
|
|
|
Definition at line 71 of file ReComputeMET.hpp. References _jes. |
|
|
Definition at line 79 of file ReComputeMET.hpp. Referenced by inputFileClosing(), and inputFileOpened(). |
|
|
Reimplemented from cafe::Processor. Definition at line 87 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 85 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 75 of file ReComputeMET.hpp. Referenced by inputFileOpened(), processEvent(), and ReComputeMET(). |
|
|
Definition at line 94 of file ReComputeMET.hpp. Referenced by processEvent(), ReComputeMET(), and setJES(). |
|
|
Definition at line 86 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 82 of file ReComputeMET.hpp. |
|
|
Definition at line 84 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 80 of file ReComputeMET.hpp. Referenced by inputFileOpened(), and processEvent(). |
|
|
Definition at line 76 of file ReComputeMET.hpp. Referenced by inputFileOpened(), and ReComputeMET(). |
|
|
Definition at line 78 of file ReComputeMET.hpp. Referenced by inputFileClosing(), and inputFileOpened(). |
|
|
Definition at line 77 of file ReComputeMET.hpp. Referenced by inputFileClosing(), inputFileOpened(), and ReComputeMET(). |
|
|
Definition at line 89 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 90 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 88 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 92 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
|
|
Definition at line 82 of file ReComputeMET.hpp. Referenced by processEvent(), and ReComputeMET(). |
1.3.4