|
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 () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 21 of file MuonGEMDigisHarvestor.h.
Implements DQMEDHarvester.
Definition at line 121 of file MuonGEMDigisHarvestor.cc.
References GEMDetLabel::c_suffix, DQMStore::IGetter::get(), getTH1F(), i, j, relval_2017::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; }
209 else LogDebug(
"MuonGEMDigisHarvestor")<<
"Can not find eta or phi of all track";
MonitorElement * get(const std::string &path)
TH1F * getTH1F(std::string name, std::string process, std::string rootfolder, DQMStore *dbe_, bool verb, bool clone)
static const std::string l_suffix[4]
static const std::string c_suffix[3]
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::string s_suffix[3]