CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Attributes
rpcdqmclient::clientTools Class Reference

#include <clientTools.h>

Public Member Functions

std::vector< MonitorElement * > constructMEVector (const edm::EventSetup &iSetup, const std::string &prefixDir, const std::string &MEName, DQMStore *dbe)
 
std::vector< RPCDetIdgetAssociatedRPCdetId ()
 

Protected Member Functions

void getMEs (const edm::EventSetup &iSetup, const std::string &prefixDir, const std::string &MEName, DQMStore *dbe)
 

Private Attributes

std::vector< RPCDetIdmyDetIds_
 
std::vector< MonitorElement * > myMeVect_
 
std::vector< std::string > myRollNames_
 

Detailed Description

Definition at line 20 of file clientTools.h.

Member Function Documentation

std::vector<MonitorElement*> rpcdqmclient::clientTools::constructMEVector ( const edm::EventSetup iSetup,
const std::string &  prefixDir,
const std::string &  MEName,
DQMStore dbe 
)
inline

Definition at line 23 of file clientTools.h.

References gather_cfg::cout, getMEs(), and myMeVect_.

23  {
24  cout<<"Starting ConstructMEVector"<<endl;
25  this->getMEs(iSetup, prefixDir, MEName, dbe);
26 
27  return myMeVect_;
28  }
std::vector< MonitorElement * > myMeVect_
Definition: clientTools.h:77
void getMEs(const edm::EventSetup &iSetup, const std::string &prefixDir, const std::string &MEName, DQMStore *dbe)
Definition: clientTools.h:42
tuple cout
Definition: gather_cfg.py:121
std::vector<RPCDetId> rpcdqmclient::clientTools::getAssociatedRPCdetId ( )
inline

Definition at line 30 of file clientTools.h.

References myDetIds_, and myMeVect_.

30  {
31  std::vector<RPCDetId> myVector;
32  myVector.clear();
33 
34  if (myMeVect_.size() !=0 && myMeVect_.size()==myDetIds_.size() ) myVector= myDetIds_;
35 
36  return myVector;
37  }
std::vector< MonitorElement * > myMeVect_
Definition: clientTools.h:77
std::vector< RPCDetId > myDetIds_
Definition: clientTools.h:78
void rpcdqmclient::clientTools::getMEs ( const edm::EventSetup iSetup,
const std::string &  prefixDir,
const std::string &  MEName,
DQMStore dbe 
)
inlineprotected

Definition at line 42 of file clientTools.h.

References RPCBookFolderStructure::folderStructure(), edm::EventSetup::get(), DQMStore::get(), myDetIds_, myMeVect_, myRollNames_, RPCGeomServ::name(), alignCSCRings::r, and RPCChamber::rolls().

Referenced by constructMEVector().

42  {
43 
44 
45 
47  iSetup.get<MuonGeometryRecord>().get(rpcGeo);
48 
49  //loop on all geometry and get all histos
50  for (TrackingGeometry::DetContainer::const_iterator it=rpcGeo->dets().begin();it<rpcGeo->dets().end();it++){
51  if( dynamic_cast< RPCChamber* >( *it ) != 0 ){
52 
53  RPCChamber* ch = dynamic_cast< RPCChamber* >( *it );
54  std::vector< const RPCRoll*> roles = (ch->rolls());
55  //Loop on rolls in given chamber
56  for(std::vector<const RPCRoll*>::const_iterator r = roles.begin();r != roles.end(); ++r){
57  RPCDetId detId = (*r)->id();
58 
59  //Get Occupancy ME for roll
60  RPCGeomServ RPCname(detId);
62  MonitorElement * myMe = dbe->get(prefixDir+"/"+ folderStr->folderStructure(detId)+"/"+MEName+ "_"+RPCname.name());
63  if (!myMe)continue;
64 
65  myMeVect_.push_back(myMe);
66  myDetIds_.push_back(detId);
67  myRollNames_.push_back(RPCname.name());
68 
69  }
70  }
71  }//end loop on all geometry and get all histos
72  }
std::vector< MonitorElement * > myMeVect_
Definition: clientTools.h:77
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:68
std::vector< std::string > myRollNames_
Definition: clientTools.h:79
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. &quot;my/long/dir/my_histo&quot;)
Definition: DQMStore.cc:1693
std::string folderStructure(RPCDetId detId)
std::vector< RPCDetId > myDetIds_
Definition: clientTools.h:78
const T & get() const
Definition: EventSetup.h:55

Member Data Documentation

std::vector<RPCDetId> rpcdqmclient::clientTools::myDetIds_
private

Definition at line 78 of file clientTools.h.

Referenced by getAssociatedRPCdetId(), and getMEs().

std::vector<MonitorElement *> rpcdqmclient::clientTools::myMeVect_
private

Definition at line 77 of file clientTools.h.

Referenced by constructMEVector(), getAssociatedRPCdetId(), and getMEs().

std::vector<std::string> rpcdqmclient::clientTools::myRollNames_
private

Definition at line 79 of file clientTools.h.

Referenced by getMEs().