1 #ifndef DQMOffline_SiStripBaseServiceFromDQM_SiStripBaseServiceFromDQM_H 2 #define DQMOffline_SiStripBaseServiceFromDQM_SiStripBaseServiceFromDQM_H 18 #include <boost/lexical_cast.hpp> 19 #include <boost/shared_ptr.hpp> 73 return( ME->
getName().find(
name_) == std::string::npos );
109 edm::LogInfo(
"SiStripBaseServiceFromDQM") <<
"[SiStripBaseServiceFromDQM::openRequestedFile] Accessing root File" <<
fileName;
113 edm::LogInfo(
"SiStripBaseServiceFromDQM") <<
"[SiStripBaseServiceFromDQM::openRequestedFile] Accessing dqmStore stream in Online Operation";
123 if( dirName.length() == 0 ) {
124 std::string currDirCopy(currDir, 0, currDir.length()-1);
125 dirName = currDirCopy.substr(currDirCopy.find_last_of(
"/")+1);
127 if (dirName.find(name) == 0) {
131 for (std::vector<std::string>::const_iterator ic = subDirVec.begin();
132 ic != subDirVec.end(); ic++) {
144 if (currDir.find(
"module_") != std::string::npos) {
146 mfolders.push_back(currDir);
149 for( std::vector<std::string>::const_iterator it = subdirs.begin();
150 it != subdirs.end(); ++it) {
192 std::cout <<
"SiStripPedestalsDQMService::getMetaDataString" << std::endl;
199 std::stringstream localString;
201 if( ss == localString.str() )
return false;
206 #endif //DQMOffline_SiStripBaseServiceFromDQM_SiStripBaseServiceFromDQM_H T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
virtual ~SiStripBaseServiceFromDQM()
std::vector< std::string > getSubdirs(void) const
boost::shared_ptr< SiStripFolderOrganizer > folderOrganizer_
virtual bool checkForCompatibility(std::string ss)
Check is the transfer is needed.
void cd(void)
go to top directory (ie. root)
bool operator()(const MonitorElement *ME) const
bool goToDir(const std::string &name)
Uses DQM utilities to access the requested dir.
uint32_t getRunNumber() const
Returns the run number from the cfg.
virtual void getMetaDataString(std::stringstream &ss)
Used to fill the logDB.
void setVerbose(unsigned level)
void getModuleFolderList(std::vector< std::string > &mfolders)
Fill the mfolders vector with the full list of directories for all the modules.
edm::ParameterSet iConfig_
MonitorElement * getModuleHistogram(const uint32_t detId, const std::string &name)
void goUp(void)
equivalent to "cd .."
bool open(const std::string &filename, bool overwrite=false, const std::string &path="", const std::string &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
void openRequestedFile()
Uses DQMStore to access the DQM file.
SiStripBaseServiceFromDQM(const edm::ParameterSet &)
const std::string & pwd(void) const
StringNotMatch(const std::string &name)