#include <TopMuonAnalyzer.h>
|
| TopMuonAnalyzer (const edm::ParameterSet &) |
|
| ~TopMuonAnalyzer () 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 TopMuonAnalyzer.h.
◆ TopMuonAnalyzer()
Definition at line 4 of file TopMuonAnalyzer.cc.
9 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (muons)", 10, 0, 10);
10 en_ = fs->
make<TH1F>(
"en",
"energy (muons)", 60, 0., 300.);
11 pt_ = fs->make<TH1F>(
"pt",
"pt (muons)", 60, 0., 300.);
12 eta_ = fs->make<TH1F>(
"eta",
"eta (muons)", 30, -3., 3.);
13 phi_ = fs->make<TH1F>(
"phi",
"phi (muons)", 40, -4., 4.);
References en_, eta_, TFileService::make(), mult_, phi_, and pt_.
◆ ~TopMuonAnalyzer()
TopMuonAnalyzer::~TopMuonAnalyzer |
( |
| ) |
|
|
override |
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 18 of file TopMuonAnalyzer.cc.
39 std::cout <<
"===================================================================" << std::endl;
40 std::cout << std::setw(5) <<
"mu :" << std::setw(13) <<
"pt :" << std::setw(13) <<
"eta :" << std::setw(13)
41 <<
"phi :" << std::setw(13) <<
"relIso :" << std::setw(6) <<
"GLB :" << std::setw(4) <<
"TRK" << std::endl;
42 std::cout <<
"-------------------------------------------------------------------" << std::endl;
44 std::cout << std::setw(3) <<
i <<
" : " << std::setw(10) <<
muon->pt() <<
" : " << std::setw(10) <<
muon->eta()
45 <<
" : " << std::setw(10) <<
muon->phi() <<
" : " << std::setw(10)
46 << (
muon->trackIso() +
muon->caloIso()) /
muon->pt() <<
" : " << std::setw(3) <<
muon->isGlobalMuon()
47 <<
" : " << std::setw(3) <<
muon->isTrackerMuon() << std::endl;
50 std::cout <<
"===================================================================" << std::endl;
References gather_cfg::cout, en_, eta_, edm::Event::getByToken(), mps_fire::i, inputToken_, mult_, HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, phi_, pt_, and verbose_.
◆ beginJob()
void TopMuonAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ endJob()
void TopMuonAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ en_
TH1F* TopMuonAnalyzer::en_ |
|
private |
◆ eta_
TH1F* TopMuonAnalyzer::eta_ |
|
private |
◆ inputToken_
◆ mult_
TH1F* TopMuonAnalyzer::mult_ |
|
private |
◆ phi_
TH1F* TopMuonAnalyzer::phi_ |
|
private |
◆ pt_
TH1F* TopMuonAnalyzer::pt_ |
|
private |
◆ verbose_
bool TopMuonAnalyzer::verbose_ |
|
private |