54 LogInfo (
"PixelDQM") <<
"SiPixelPhase1Summary::SiPixelPhase1Summary: Got DQM BackEnd interface"<<endl;
59 std::vector<edm::ParameterSet> mapPSets =
conf_.
getParameter<std::vector<edm::ParameterSet> >(
"SummaryMaps");
62 for (
auto const mapPSet : mapPSets){
72 LogInfo (
"PixelDQM") <<
"SiPixelPhase1Summary::~SiPixelPhase1Summary: Destructor"<<endl;
105 std::vector<std::string> xAxisLabels_ = {
"BMO",
"BMI",
"BPO ",
"BPI",
"HCMO_1",
"HCMO_2",
"HCMI_1",
"HCMI_2",
"HCPO_1",
"HCPO_2",
"HCPI_1",
"HCPI_2"};
106 std::vector<std::string> yAxisLabels_ = {
"1",
"2",
"3",
"4"};
109 auto name = mapInfo.first;
111 for (
unsigned int i = 0;
i < xAxisLabels_.size();
i++){
114 for (
unsigned int i = 0;
i < yAxisLabels_.size();
i++){
119 for (
int i = 0;
i < 12;
i++){
120 for (
int j = 0; j < 4; j++){
133 auto name = mapInfo.first;
134 if (
name ==
"Grand")
continue;
135 std::ostringstream histNameStream;
138 for (
int i = 0;
i < 12;
i++){
139 for (
int j = 0; j < 4; j++){
140 if (
i > 3 && j == 3)
continue;
141 bool minus = i < 2 || (i > 3 &&
i < 8);
142 int iOver2 = floor(
i/2.);
143 bool outer = (
i > 3)?iOver2%2==0:
i%2==0;
145 histNameStream.str(
"");
146 histNameStream <<
topFolderName_.c_str() <<
"PX" << ((
i > 3)?
"Forward":
"Barrel") <<
"/" << ((
i > 3)?
"HalfCylinder":
"Shell") <<
"_" << (minus?
"m":
"p") << ((outer)?
"O":
"I") <<
"/" << ((
i > 3)?((
i%2 == 0)?
"PXRing_1/":
"PXRing_2/"):
"") << summaryPlotName_[
name].c_str() <<
"_PX" << ((
i > 3)?
"Disk":
"Layer") <<
"_" << ((
i>3)?((minus)?
"-":
"+"):
"") << (j+1);
147 histName = histNameStream.str();
151 edm::LogWarning(
"SiPixelPhase1Summary") <<
"ME " << histName <<
" is not available !!";
167 for (
int i = 0;
i < 12;
i++){
168 for (
int j = 0; j < 4; j++){
170 for (
auto const mapInfo: summaryPlotName_){
171 auto name = mapInfo.first;
172 if (
name ==
"Grand")
continue;
T getParameter(std::string const &) const
SiPixelPhase1Summary(const edm::ParameterSet &conf)
std::map< std::string, std::string > summaryPlotName_
std::string topFolderName_
MonitorElement * get(const std::string &path)
#define DEFINE_FWK_MODULE(type)
void fillSummaries(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
bool hasError(void) const
true if at least of one of the quality tests returned an error
std::map< std::string, MonitorElement * > summaryMap_
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup)
bool hasWarning(void) const
true if at least of one of the quality tests returned a warning
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
void bookSummaries(DQMStore::IBooker &iBooker)
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override