#include <TopElecAnalyzer.h>
|
| TopElecAnalyzer (const edm::ParameterSet &) |
|
| ~TopElecAnalyzer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 15 of file TopElecAnalyzer.h.
◆ TopElecAnalyzer()
Definition at line 3 of file TopElecAnalyzer.cc.
8 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (electrons)", 10, 0, 10);
9 en_ = fs->
make<TH1F>(
"en",
"energy (electrons)", 60, 0., 300.);
10 pt_ = fs->make<TH1F>(
"pt",
"pt (electrons)", 60, 0., 300.);
11 eta_ = fs->make<TH1F>(
"eta",
"eta (electrons)", 30, -3., 3.);
12 phi_ = fs->make<TH1F>(
"phi",
"phi (electrons)", 40, -4., 4.);
References en_, eta_, TFileService::make(), mult_, phi_, and pt_.
◆ ~TopElecAnalyzer()
TopElecAnalyzer::~TopElecAnalyzer |
( |
| ) |
|
|
override |
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 17 of file TopElecAnalyzer.cc.
24 for (std::vector<pat::Electron>::const_iterator elec =
elecs->begin(); elec !=
elecs->end(); ++elec) {
25 en_->Fill(elec->energy());
26 pt_->Fill(elec->pt());
27 eta_->Fill(elec->eta());
28 phi_->Fill(elec->phi());
38 std::cout <<
"=======================================================" << std::endl;
39 std::cout << std::setw(5) <<
"ele :" << std::setw(13) <<
"et :" << std::setw(13) <<
"eta :" << std::setw(13)
40 <<
"phi :" << std::setw(11) <<
"relIso" << std::endl;
41 std::cout <<
"-------------------------------------------------------" << std::endl;
42 for (std::vector<pat::Electron>::const_iterator elec =
elecs->begin(); elec !=
elecs->end(); ++elec) {
43 std::cout << std::setw(3) <<
i <<
" : " << std::setw(10) << elec->pt() <<
" : " << std::setw(10) << elec->eta()
44 <<
" : " << std::setw(10) << elec->phi() <<
" : " << std::setw(10)
45 << (elec->dr03TkSumPt() + elec->dr03EcalRecHitSumEt() + elec->dr03HcalTowerSumEt()) / elec->et()
49 std::cout <<
"=======================================================" << std::endl;
References gather_cfg::cout, singleTopDQM_cfi::elecs, en_, eta_, edm::Event::getByToken(), mps_fire::i, inputToken_, mult_, phi_, pt_, and verbose_.
◆ beginJob()
void TopElecAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ endJob()
void TopElecAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ en_
TH1F* TopElecAnalyzer::en_ |
|
private |
◆ eta_
TH1F* TopElecAnalyzer::eta_ |
|
private |
◆ inputToken_
◆ mult_
TH1F* TopElecAnalyzer::mult_ |
|
private |
◆ phi_
TH1F* TopElecAnalyzer::phi_ |
|
private |
◆ pt_
TH1F* TopElecAnalyzer::pt_ |
|
private |
◆ verbose_
bool TopElecAnalyzer::verbose_ |
|
private |