28 MonitorElement *mapEnergy_N =
nullptr, *mapEnergy_E =
nullptr, *mapEnergy_H =
nullptr, *mapEnergy_EH =
nullptr;
29 MonitorElement *occupancy_map =
nullptr, *occupancy_vs_ieta =
nullptr;
30 for (
unsigned int ih = 0; ih < hcalMEs.size(); ih++) {
31 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"Ntowers_per_event_vs_ieta") == 0) {
32 Ntowers_vs_ieta = hcalMEs[ih];
34 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_map_Nentries") == 0) {
35 mapEnergy_N = hcalMEs[ih];
37 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_map_energy_H") == 0) {
39 mapEnergy_H = hcalMEs[ih];
41 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_map_energy_E") == 0) {
43 mapEnergy_E = hcalMEs[ih];
45 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_map_energy_EH") == 0) {
47 mapEnergy_EH = hcalMEs[ih];
49 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_map_occupancy") == 0) {
50 occupancy_map = hcalMEs[ih];
52 if (strcmp(hcalMEs[ih]->
getName().c_str(),
"CaloTowersTask_occupancy_vs_ieta") == 0) {
53 occupancy_vs_ieta = hcalMEs[ih];
69 for (
int i = 1;
i <= nx;
i++) {
84 for (
int i = 1;
i <= nx;
i++) {
87 for (
int j = 1;
j <= ny;
j++) {
92 cont = mapEnergy_E->getBinContent(
i,
j) / cnorm;
93 conte = mapEnergy_E->getBinError(
i,
j) / cnorm;
94 mapEnergy_E->setBinContent(
i,
j,
cont);
95 mapEnergy_E->setBinError(
i,
j, conte);
97 cont = mapEnergy_H->getBinContent(
i,
j) / cnorm;
98 conte = mapEnergy_H->getBinError(
i,
j) / cnorm;
99 mapEnergy_H->setBinContent(
i,
j,
cont);
100 mapEnergy_H->setBinError(
i,
j, conte);
102 cont = mapEnergy_EH->getBinContent(
i,
j) / cnorm;
103 conte = mapEnergy_EH->getBinError(
i,
j) / cnorm;
104 mapEnergy_EH->setBinContent(
i,
j,
cont);
105 mapEnergy_EH->setBinError(
i,
j, conte);
111 if (fev > 0. && cnorm > 1.
e-30) {
134 cnorm = sumphi / phi_factor;
135 cnorme =
pow(sumphi, 0.5) / phi_factor;
136 if (fev > 0. && cnorm > 1.
e-30) {
137 occupancy_vs_ieta->setBinContent(
i, cnorm / fev);
138 occupancy_vs_ieta->setBinError(
i, cnorme / fev);
151 std::vector<MonitorElement *> hcalMEs;
156 std::vector<std::string> fullPathHLTFolders = igetter.
getSubdirs();
157 for (
unsigned int i = 0;
i < fullPathHLTFolders.size();
i++) {
159 std::cout <<
"\nfullPath: " << fullPathHLTFolders[
i] << std::endl;
162 std::vector<std::string> fullSubPathHLTFolders = igetter.
getSubdirs();
163 for (
unsigned int j = 0;
j < fullSubPathHLTFolders.size();
j++) {
165 std::cout <<
"fullSub: " << fullSubPathHLTFolders[
j] << std::endl;
167 if (strcmp(fullSubPathHLTFolders[
j].c_str(),
"CaloTowersD/CaloTowersTask") == 0) {
168 hcalMEs = igetter.
getContents(fullSubPathHLTFolders[
j]);
170 std::cout <<
"hltMES size : " << hcalMEs.size() << std::endl;
172 std::cout <<
"\nError in CaloTowersEndjob!" << std::endl << std::endl;
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
int CaloTowersEndjob(const std::vector< MonitorElement *> &hcalMEs)
T getUntrackedParameter(std::string const &, T const &) const
~CaloTowersDQMClient() override
#define DEFINE_FWK_MODULE(type)
virtual double getEntries() const
get # of entries
virtual int getNbinsY() const
get # of bins in Y-axis
TString getName(TString structure, int layer, TString geometry)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
void beginRun(const edm::Run &run, const edm::EventSetup &c) override
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
virtual int getNbinsX() const
get # of bins in X-axis
virtual double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
void beginJob(void) override
virtual void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
CaloTowersDQMClient(const edm::ParameterSet &)
Power< A, B >::type pow(const A &a, const B &b)
cont
load Luminosity info ##
virtual std::vector< dqm::harvesting::MonitorElement * > getContents(std::string const &path) const
virtual double getBinContent(int binx) const
get content of bin (1-D)
virtual DQM_DEPRECATED std::vector< std::string > getSubdirs() const