|
TProfile * | ComputeEff (TH1F *num, TH1F *denum) |
|
virtual void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) |
|
| MuonGEMRecHitsHarvestor (const edm::ParameterSet &) |
| constructor More...
|
|
void | ProcessBooking (DQMStore::IBooker &, DQMStore::IGetter &, const char *label, TString suffix, TH1F *track_hist, TH1F *sh_hist) |
|
virtual | ~MuonGEMRecHitsHarvestor () |
| destructor More...
|
|
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
| DQMEDHarvester (void) |
|
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
|
void | endJob () final |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | produce (edm::Event &, edm::EventSetup const &) final |
|
| ~DQMEDHarvester () override=default |
|
| EDProducer ()=default |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
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 |
|
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) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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 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 18 of file MuonGEMRecHitsHarvestor.h.
Implements DQMEDHarvester.
Definition at line 116 of file MuonGEMRecHitsHarvestor.cc.
References GEMDetLabel::c_suffix, gather_cfg::cout, dbe_path_, DEFINE_FWK_MODULE, DQMStore::IGetter::get(), mps_fire::i, gen::k, GEMDetLabel::l_suffix, ProcessBooking(), GEMDetLabel::s_suffix, DQMStore::IGetter::setCurrentFolder(), and createPayload::suffix.
120 const char*
l_suffix[4] = {
"_l1",
"_l2",
"_l1or2",
"_l1and2"};
121 const char*
s_suffix[2] = {
"_st1",
"_st2"};
122 const char*
c_suffix[3] = {
"_even",
"_odd",
"_all"};
124 TH1F* gem_trk_eta[2];
125 TH1F* gem_trk_phi[2][2];
128 TH1F* sh_phi[2][4][3];
130 for(
int i = 0 ;
i < 2 ;
i++) {
131 TString eta_label = TString(
dbe_path_)+
"track_eta"+s_suffix[
i];
133 if ( ig.
get(eta_label.Data()) !=
nullptr ) {
134 gem_trk_eta[
i] = (TH1F*)ig.
get(eta_label.Data())->getTH1F()->Clone();
135 gem_trk_eta[
i]->Sumw2();
137 else std::cout<<
"Can not found track_eta"<<std::endl;
138 for (
int k=0 ;
k <3 ;
k++) {
139 phi_label = TString(
dbe_path_.c_str())+
"track_phi"+s_suffix[
i]+c_suffix[
k];
140 if ( ig.
get(phi_label.Data()) !=
nullptr ) {
141 gem_trk_phi[
i][
k] = (TH1F*)ig.
get(phi_label.Data())->getTH1F()->Clone();
142 gem_trk_phi[
i][
k]->Sumw2();
144 else std::cout<<
"Can not found track_phi"<<std::endl;
147 if ( ig.
get(eta_label.Data()) !=
nullptr && ig.
get(phi_label.Data()) !=
nullptr ) {
148 for(
int j = 0; j < 4 ; j++) {
149 TString
suffix = TString( s_suffix[
i] )+TString( l_suffix[j]);
151 if( ig.
get(eta_label.Data()) !=
nullptr ) {
152 sh_eta[
i][j] = (TH1F*)ig.
get(eta_label.Data())->getTH1F()->Clone();
153 sh_eta[
i][j]->Sumw2();
155 else std::cout<<
"Can not found eta histogram : "<<eta_label<<std::endl;
156 ProcessBooking( ibooker, ig,
"rh_eta", suffix, gem_trk_eta[
i], sh_eta[i][j]);
157 for (
int k= 0 ;
k< 3 ;
k++) {
158 suffix = TString( s_suffix[
i])+TString( l_suffix[j]) +TString(c_suffix[
k]);
160 if( ig.
get(phi_label.Data()) !=
nullptr ) {
161 sh_phi[
i][j][
k] = (TH1F*)ig.
get(phi_label.Data())->getTH1F()->Clone();
162 sh_phi[
i][j][
k]->Sumw2();
164 else {
std::cout<<
"Can not found phi plots : "<<phi_label<<std::endl;
continue; }
165 ProcessBooking( ibooker, ig,
"rh_phi",suffix, gem_trk_phi[
i][
k], sh_phi[
i][j][k]);
169 else std::cout<<
"Can not find eta or phi of all track"<<std::endl;
static const std::array< std::string, 4 > l_suffix
MonitorElement * get(const std::string &path)
static const std::array< std::string, 2 > s_suffix
void setCurrentFolder(const std::string &fullpath)
void ProcessBooking(DQMStore::IBooker &, DQMStore::IGetter &, const char *label, TString suffix, TH1F *track_hist, TH1F *sh_hist)
static const std::array< std::string, 3 > c_suffix