|
TProfile * | ComputeEff (TH1F *num, TH1F *denum) |
|
virtual void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) |
|
| MuonGEMDigisHarvestor (const edm::ParameterSet &) |
| constructor More...
|
|
void | ProcessBooking (DQMStore::IBooker &, DQMStore::IGetter &, const char *label, TString suffix, TH1F *track_hist, TH1F *sh_hist) |
|
virtual | ~MuonGEMDigisHarvestor () |
| 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 21 of file MuonGEMDigisHarvestor.h.
Implements DQMEDHarvester.
Definition at line 121 of file MuonGEMDigisHarvestor.cc.
References GEMDetLabel::c_suffix, DEFINE_FWK_MODULE, DQMStore::IGetter::get(), mps_fire::i, gen::k, GEMDetLabel::l_suffix, LogDebug, GEMDetLabel::s_suffix, DQMStore::IGetter::setCurrentFolder(), and createPayload::suffix.
124 TH1F* gem_trk_eta[3];
125 TH1F* gem_trk_phi[3][2];
128 TH1F* sh_phi[3][4][3];
166 for(
int i = 0 ;
i < 3 ;
i++) {
169 if ( ig.
get(eta_label.Data()) !=
nullptr ) {
170 gem_trk_eta[
i] = (TH1F*)ig.
get(eta_label.Data())->getTH1F()->Clone();
171 gem_trk_eta[
i]->Sumw2();
173 else LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not found track_eta";
174 for (
int k=0 ;
k <3 ;
k++) {
176 if ( ig.
get(phi_label.Data()) !=
nullptr ) {
177 gem_trk_phi[
i][
k] = (TH1F*)ig.
get(phi_label.Data())->getTH1F()->Clone();
178 gem_trk_phi[
i][
k]->Sumw2();
180 else LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not found track_phi";
183 if ( ig.
get(eta_label.Data()) !=
nullptr && ig.
get(phi_label.Data()) !=
nullptr ) {
184 for(
int j = 0; j < 4 ; j++) {
187 if( ig.
get(eta_label.Data()) !=
nullptr ) {
188 sh_eta[
i][j] = (TH1F*)ig.
get(eta_label.Data())->getTH1F()->Clone();
189 sh_eta[
i][j]->Sumw2();
191 else LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not found eta histogram : "<<eta_label;
192 ProcessBooking( ibooker, ig,
"dg_eta", suffix, gem_trk_eta[
i], sh_eta[i][j]);
193 ProcessBooking( ibooker, ig,
"pad_eta", suffix, gem_trk_eta[
i], sh_eta[i][j]);
194 ProcessBooking( ibooker, ig,
"copad_eta", suffix, gem_trk_eta[
i], sh_eta[i][j]);
195 for (
int k= 0 ;
k< 3 ;
k++) {
198 if( ig.
get(phi_label.Data()) !=
nullptr ) {
199 sh_phi[
i][j][
k] = (TH1F*)ig.
get(phi_label.Data())->getTH1F()->Clone();
200 sh_phi[
i][j][
k]->Sumw2();
202 else {
LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not found phi plots : "<<phi_label;
continue; }
203 ProcessBooking( ibooker, ig,
"dg_phi",suffix, gem_trk_phi[
i][
k], sh_phi[
i][j][k]);
204 ProcessBooking( ibooker, ig,
"pad_phi",suffix,gem_trk_phi[
i][
k], sh_phi[
i][j][k]);
205 ProcessBooking( ibooker, ig,
"copad_phi",suffix,gem_trk_phi[
i][
k], sh_phi[
i][j][k]);
209 else LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not find eta or phi of all track";
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