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 ) {
188 for (
unsigned int i = 0 ;
i<
myBXMe_.size();
i++){
203 float mean = myTH1F->GetMean();
204 float rms = myTH1F->GetRMS();
205 float entries = myTH1F->GetEntries();
217 }
else if(detId.
region()==1){
223 }
else if(detId.
region()==-1){
231 ENTRIES->
Fill(entries);
242 MEANRing->
Fill(mean);
void analyze(const edm::Event &iEvent, const edm::EventSetup &c)
Analyze.
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
MonitorElement * BXRmsEndcapP
MonitorElement * BXRmsEndcapN
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * BXRmsBarrel
MonitorElement * BXRmsWheel[5]
MonitorElement * BXMeanEndcapN
void beginJob(DQMStore *)
BeginJob.
std::vector< RPCDetId > myDetIds_
void beginRun(const edm::Run &r, const edm::EventSetup &c)
MonitorElement * BXEntriesBarrel
MonitorElement * BXMeanDisk[10]
virtual ~RPCBxTest()
Destructor.
virtual void endJob(void)
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
Begin Lumi block.
MonitorElement * BXRmsDisk[10]
void removeElement(const std::string &name)
virtual void endRun(const edm::Run &r, const edm::EventSetup &c)
std::string globalFolder_
void getMonitorElements(std::vector< MonitorElement * > &, std::vector< RPCDetId > &)
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
std::vector< uint32_t > TagList
RPCBxTest(const edm::ParameterSet &ps)
Constructor.
TH1F * getTH1F(void) const
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
End Lumi Block.
MonitorElement * BXMeanEndcapP
MonitorElement * BXMeanWheel[5]
MonitorElement * BXEntriesEndcapN
MonitorElement * BXEntriesEndcapP
MonitorElement * BXMeanBarrel
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_
void setCurrentFolder(const std::string &fullpath)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.