|
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...
|
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) final |
|
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDHarvester (void) |
|
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
|
virtual void | endJob () final |
|
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
virtual void | endRun (edm::Run const &, edm::EventSetup const &) |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| 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) |
|
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