7 #include "TObjString.h"
10 #include "classlib/utils/Regexp.h"
13 static const lat::Regexp
s_rxmeval (
"^<(.*)>(i|f|s|t|qr)=(.*)</\\1>$");
23 for (DQMObjectsMap::const_iterator it =
dqmObjects_.begin(),
26 TObject*
object = it->second;
34 for (std::vector<TObject*>::const_iterator it = toList.begin(), itEnd = toList.end();
37 TObject*
object = *it;
50 TObject* storedObject = pos->second;
51 if ( object->InheritsFrom(
"TProfile") &&
52 storedObject->InheritsFrom(
"TProfile") )
54 TProfile* newProfile =
static_cast<TProfile*
>(
object);
55 TProfile* storedProfile =
static_cast<TProfile*
>(storedObject);
56 if (newProfile->GetEntries() > 0)
58 storedProfile->Add(newProfile);
61 else if ( object->InheritsFrom(
"TH1") &&
62 storedObject->InheritsFrom(
"TH1") )
64 TH1* newHistogram =
static_cast<TH1*
>(
object);
65 TH1* storedHistogram =
static_cast<TH1*
>(storedObject);
66 if (newHistogram->GetEntries() > 0)
68 storedHistogram->Add(newHistogram);
91 vector.push_back(it->second);
104 lat::RegexpMatch patternMatch;
105 if (dynamic_cast<TObjString *>(
object) &&
106 s_rxmeval.match(rawName, 0, 0, &patternMatch)) {
107 safeName = patternMatch.matchString(rawName, 1);
void addObjects(const std::vector< TObject * > &)
DQMObjectsMap dqmObjects_
static const lat::Regexp s_rxmeval("^<(.*)>(i|f|s|t|qr)=(.*)</\\1>$")
Container::value_type value_type
void fillObjectVector(std::vector< TObject * > &) const
static std::string getSafeMEName(TObject *object)