#include <TPTreeFiller.h>
Public Member Functions | |
void | fill (const reco::CandidateBaseRef &probe, double mass, bool mcTrue=false) const |
void | init (const edm::Event &iEvent) const |
To be called once per event, to load possible external variables. | |
TPTreeFiller (const edm::ParameterSet config) | |
~TPTreeFiller () | |
Protected Attributes | |
float | mass_ |
extra branch for the mass | |
int32_t | mcTrue_ |
extra branch for the mc truth |
Definition at line 7 of file TPTreeFiller.h.
tnp::TPTreeFiller::TPTreeFiller | ( | const edm::ParameterSet | config | ) |
Definition at line 3 of file TPTreeFiller.cc.
References edm::ParameterSet::getParameter(), mass_, mcTrue_, and tnp::BaseTreeFiller::tree_.
: tnp::BaseTreeFiller("fitter_tree",config) { // Add extra branch for the mass tree_->Branch("mass", &mass_, "mass/F"); // set up MC if needed if (config.getParameter<bool>("isMC")) { tree_->Branch("mcTrue", &mcTrue_, "mcTrue/I"); } }
tnp::TPTreeFiller::~TPTreeFiller | ( | ) |
Definition at line 15 of file TPTreeFiller.cc.
{}
void tnp::TPTreeFiller::fill | ( | const reco::CandidateBaseRef & | probe, |
double | mass, | ||
bool | mcTrue = false |
||
) | const |
Definition at line 21 of file TPTreeFiller.cc.
References lumiContext::fill.
{ mass_ = mass; mcTrue_ = mcTrue; tnp::BaseTreeFiller::fill(probe); }
void tnp::TPTreeFiller::init | ( | const edm::Event & | iEvent | ) | const |
To be called once per event, to load possible external variables.
*********** store some event variables: MET, SumET ****** ///////// Primary vertex //////////////
Reimplemented from tnp::BaseTreeFiller.
Definition at line 17 of file TPTreeFiller.cc.
References init.
{ tnp::BaseTreeFiller::init(iEvent); }
float tnp::TPTreeFiller::mass_ [mutable, protected] |
extra branch for the mass
Definition at line 18 of file TPTreeFiller.h.
Referenced by TPTreeFiller().
int32_t tnp::TPTreeFiller::mcTrue_ [mutable, protected] |
extra branch for the mc truth
Definition at line 20 of file TPTreeFiller.h.
Referenced by TPTreeFiller().