68 for (TrackingGeometry::DetContainer::const_iterator it=rpcGeo->dets().begin();it<rpcGeo->dets().end();it++){
69 if(dynamic_cast< RPCChamber* >( *it ) != 0 ){
71 std::vector< const RPCRoll*> roles = (ch->
rolls());
72 for(std::vector<const RPCRoll*>::const_iterator
r = roles.begin();
r != roles.end(); ++
r){
84 std::stringstream mepath;
100 int sector = (int)rpcId.
sector();
105 MEstatus =
dbe->
get(mepath.str());
109 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Status for Barrel "<< nameRoll;
114 if( rpcId.
ring() > 0){
120 MEeff =
dbe->
get(mepath.str());
124 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Efficiency for Barrel "<< nameRoll;
129 int segment = rpcsrv.
segment() ;
130 int endcapbin = (rpcId.
ring()-1)*3-rpcId.
roll()+1;
136 MEstatus =
dbe->
get(mepath.str());
140 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Status for Endcap "<< nameRoll;
147 MEeff =
dbe->
get(mepath.str());
151 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Efficiency for Endcap "<< nameRoll;
157 rpcDqmItem.
dpid = (int)rpcId;
161 rpcDqmItem.
bx = -999;
162 rpcDqmItem.
bxrms = -999;
168 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Number of Clusters for Roll "<< nameRoll;
174 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find ClusterSize for Roll "<< nameRoll;
181 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find BX for Roll "<< nameRoll;
187 edm::LogWarning(
"rpcdbclient")<<
"[RPCDBClient] Did not find Occupancy for Roll "<< nameRoll;
std::string recHitTypeFolder_
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
std::vector< DQMObjectItem > v_cls
double getEntries(void) const
get # of entries
double getMean(int axis=1) const
get mean value of histogram along x, y or z axis (axis=1, 2, 3 respectively)
void write(Source const &source)
virtual std::string name()
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
virtual void beginRun(const edm::Run &run, const edm::EventSetup &iSetup) override
RPCDBPopConAnalyzer(const edm::ParameterSet &pset)
RPCDQMObject * rpcDQMObject
int detId2RollNr(const RPCDetId &_id)
std::string folderStructure(RPCDetId detId)
std::string efficiencyFolder_
popcon::PopCon m_populator
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
RPCDBHandler SourceHandler
std::string summaryFolder_
double getBinContent(int binx) const
get content of bin (1-D)
double getRMS(int axis=1) const
get RMS of histogram along x, y or z axis (axis=1, 2, 3 respectively)
void initObject(RPCDQMObject *)
virtual void endJob() override
PopConAnalyzer(const edm::ParameterSet &pset)
void setCurrentFolder(const std::string &fullpath)
virtual void analyze(const edm::Event &ev, const edm::EventSetup &iSetup) override
std::string subsystemFolder_
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.