|
| TreeWriterForEcalCorrection (const edm::ParameterSet &) |
|
| ~TreeWriterForEcalCorrection () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
TreeWriterForEcalCorrection::TreeWriterForEcalCorrection |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
TreeWriterForEcalCorrection::~TreeWriterForEcalCorrection |
( |
| ) |
|
|
inline |
Implements edm::EDAnalyzer.
Definition at line 49 of file TreeWriterForEcalCorrection.cc.
References reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), Exception, relval_steps::gen(), edm::Event::getByLabel(), tree, tree_e, tree_eta, and tree_response.
53 iEvent.
getByLabel(
"genParticles",
"", GenParticles);
57 if( GenParticles->size() != 1 ) {
59 <<
"Intended for particle guns only\n";
67 float genEta = gen.
eta();
77 bool isFastSim = iEvent.
getByLabel(
"famosSimHits",
"EcalHitsEB", SimHitsEB );
79 iEvent.
getByLabel(
"famosSimHits",
"EcalHitsEE", SimHitsEE );
80 iEvent.
getByLabel(
"famosSimHits",
"EcalHitsES", SimHitsES );
82 iEvent.
getByLabel(
"g4SimHits",
"EcalHitsEB", SimHitsEB );
83 iEvent.
getByLabel(
"g4SimHits",
"EcalHitsEE", SimHitsEE );
84 iEvent.
getByLabel(
"g4SimHits",
"EcalHitsES", SimHitsES );
88 auto SimHits = *SimHitsEB;
89 SimHits.insert( SimHits.end(), SimHitsEE->begin(), SimHitsEE->end() );
90 SimHits.insert( SimHits.end(), SimHitsES->begin(), SimHitsES->end() );
94 float energyTotal = 0;
95 for(
auto const&
Hit : SimHits ) {
96 energyTotal +=
Hit.energy();
virtual double energy() const final
energy
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual double eta() const final
momentum pseudorapidity
TTree* TreeWriterForEcalCorrection::tree |
|
private |
Definition at line 36 of file TreeWriterForEcalCorrection.cc.
Referenced by eventstfile.Events::__iter__(), svgfig.SVG::__str__(), analyze(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), eventstfile.Events::to(), and TreeWriterForEcalCorrection().
float TreeWriterForEcalCorrection::tree_e |
|
private |
float TreeWriterForEcalCorrection::tree_eta |
|
private |
float TreeWriterForEcalCorrection::tree_response |
|
private |