43 std::stringstream histoName;
46 histoName<<
"BX_Mean_Distribution_Barrel";
51 histoName<<
"BX_Mean_Distribution_EndcapP";
55 histoName<<
"BX_Mean_Distribution_EndcapN";
60 histoName<<
"BX_Entries_Distribution_Barrel";
64 histoName<<
"BX_Entries_Distribution_EndcapP";
68 histoName<<
"BX_Entries_Distribution_EndcapN";
73 histoName<<
"BX_RMS_Distribution_Barrel";
77 histoName<<
"BX_RMS_Distribution_EndcapP";
81 histoName<<
"BX_RMS_Distribution_EndcapN";
90 for (
int w = -1 * limit;
w<=
limit;
w++ ){
93 histoName<<
"BX_Mean_Distribution_Wheel"<<
w;
102 histoName<<
"BX_RMS_Distribution_Wheel"<<
w;
108 BXRmsWheel[w+2] =
dbe_->
book1D(histoName.str().c_str(), histoName.str().c_str(), 50, -0.5, 4.5);
117 histoName<<
"BX_Mean_Distribution_Disk"<<
w;
127 histoName<<
"BX_RMS_Distribution_Disk"<<
w;
143 for (
unsigned int i = 0 ;
i<meVector.size();
i++){
148 tagList = meVector[
i]->getTags();
149 DQMNet::TagList::iterator tagItr = tagList.begin();
151 while (tagItr != tagList.end() && !
flag ) {
186 for (
unsigned int i = 0 ;
i<
myBXMe_.size();
i++){
201 float mean = myTH1F->GetMean();
202 float rms = myTH1F->GetRMS();
203 float entries = myTH1F->GetEntries();
215 }
else if(detId.
region()==1){
221 }
else if(detId.
region()==-1){
229 ENTRIES->
Fill(entries);
240 MEANRing->
Fill(mean);
void analyze(const edm::Event &iEvent, const edm::EventSetup &c)
Analyze.
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * BXRmsEndcapP
MonitorElement * BXRmsEndcapN
void removeElement(std::string const &name)
MonitorElement * BXRmsBarrel
MonitorElement * BXRmsWheel[5]
MonitorElement * BXMeanEndcapN
void beginJob(DQMStore *)
BeginJob.
std::vector< RPCDetId > myDetIds_
const std::string & getName() const
get name of ME
MonitorElement * book1D(char_string const &name, char_string const &title, int const nchX, double const lowX, double const highX)
Book 1D histogram.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * BXEntriesBarrel
MonitorElement * BXMeanDisk[10]
virtual void endJob(void)
MonitorElement * get(std::string const &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
MonitorElement * BXRmsDisk[10]
virtual void endRun(const edm::Run &r, const edm::EventSetup &c)
std::string globalFolder_
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &)
void setCurrentFolder(std::string const &fullpath)
RPCBxTest(const edm::ParameterSet &ps)
Constructor.
MonitorElement * BXMeanEndcapP
MonitorElement * BXMeanWheel[5]
MonitorElement * BXEntriesEndcapN
MonitorElement * BXEntriesEndcapP
MonitorElement * BXMeanBarrel
std::vector< uint32_t > TagList
~RPCBxTest() override
Destructor.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::vector< MonitorElement * > myBXMe_
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.