|
| 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 () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
TreeWriterForEcalCorrection::TreeWriterForEcalCorrection |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
TreeWriterForEcalCorrection::~TreeWriterForEcalCorrection |
( |
| ) |
|
|
inline |
Definition at line 49 of file TreeWriterForEcalCorrection.cc.
References reco::LeafCandidate::energy(), reco::LeafCandidate::eta(), Exception, TauGenJets_cfi::GenParticles, edm::Event::getByLabel(), tree_e, tree_eta, and tree_response.
Referenced by ~TreeWriterForEcalCorrection().
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 eta() const final
momentum pseudorapidity
virtual double energy() const final
energy
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
TTree* TreeWriterForEcalCorrection::tree |
|
private |
float TreeWriterForEcalCorrection::tree_e |
|
private |
float TreeWriterForEcalCorrection::tree_eta |
|
private |
float TreeWriterForEcalCorrection::tree_response |
|
private |