#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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
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 () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, 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) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 15 of file TopMuonAnalyzer.h.
Definition at line 5 of file TopMuonAnalyzer.cc.
References en_, eta_, TFileService::make(), mult_, phi_, and pt_.
11 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (muons)", 10, 0 , 10);
12 en_ = fs->
make<TH1F>(
"en" ,
"energy (muons)", 60, 0., 300.);
13 pt_ = fs->make<TH1F>(
"pt" ,
"pt (muons)", 60, 0., 300.);
14 eta_ = fs->make<TH1F>(
"eta" ,
"eta (muons)", 30, -3., 3.);
15 phi_ = fs->make<TH1F>(
"phi" ,
"phi (muons)", 40, -4., 4.);
T getParameter(std::string const &) const
T * make(const Args &...args) const
make new ROOT object
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< std::vector< pat::Muon > > inputToken_
TopMuonAnalyzer::~TopMuonAnalyzer |
( |
| ) |
|
|
override |
Definition at line 24 of file TopMuonAnalyzer.cc.
References gather_cfg::cout, en_, eta_, edm::Event::getByToken(), mps_fire::i, inputToken_, mult_, metsig::muon, extraflags_cff::muons, phi_, pt_, and verbose_.
31 mult_->Fill( muons->size() );
32 for(std::vector<pat::Muon>::const_iterator
muon=muons->begin();
muon!=muons->end(); ++
muon){
46 std::cout <<
"===================================================================" 49 << std::setw(13) <<
"pt :" 50 << std::setw(13) <<
"eta :" 51 << std::setw(13) <<
"phi :" 52 << std::setw(13) <<
"relIso :" 53 << std::setw(6 ) <<
"GLB :" 54 << std::setw(4 ) <<
"TRK" << std::endl;
55 std::cout <<
"-------------------------------------------------------------------" 57 for(std::vector<pat::Muon>::const_iterator
muon=muons->begin();
muon!=muons->end(); ++
muon){
59 << std::setw(10) <<
muon->pt() <<
" : " 60 << std::setw(10) <<
muon->eta() <<
" : " 61 << std::setw(10) <<
muon->phi() <<
" : " 62 << std::setw(10) << (
muon->trackIso()+
muon->caloIso())/
muon->pt() <<
" : " 63 << std::setw( 3) <<
muon->isGlobalMuon() <<
" : " 64 << std::setw( 3) <<
muon->isTrackerMuon() << std::endl;
67 std::cout <<
"==================================================================="
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< std::vector< pat::Muon > > inputToken_
void TopMuonAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
void TopMuonAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
TH1F* TopMuonAnalyzer::en_ |
|
private |
TH1F* TopMuonAnalyzer::eta_ |
|
private |
TH1F* TopMuonAnalyzer::mult_ |
|
private |
TH1F* TopMuonAnalyzer::phi_ |
|
private |
TH1F* TopMuonAnalyzer::pt_ |
|
private |
bool TopMuonAnalyzer::verbose_ |
|
private |