82 std::map<std::string,double>
tags;
83 std::unique_ptr<TObjArray> returnObjs(
new TObjArray);
91 catch (dqm_core::Exception& ex) {
92 throw dqm_core::BadConfig( ERS_HERE,
"RepeatAlgorithm", ex.what(), ex );
98 }
catch (dqm_core::BadConfig &) {
99 throw dqm_core::BadConfig( ERS_HERE,
"RepeatAlgorithm",
"No references defined for RepeatAlgorithm - this makes no sense" );
101 const TCollection* listptr(
dynamic_cast<const TCollection*
>(
ref));
103 throw dqm_core::BadConfig( ERS_HERE,
"RepeatAlgorithm",
"Reference needs to be a TCollection" );
106 while ( TObject* ireference = itr.Next() ) {
114 std::map<std::string,double>::const_iterator tagsEnd = subResult->tags_.end();
115 std::map<std::string,double>::const_iterator tagsIter = subResult->tags_.begin();
116 for( ; tagsIter != tagsEnd; ++tagsIter ) {
117 tags[ireference->GetName() + std::string(
"|") + tagsIter->first] = tagsIter->second;
119 tags[ireference->GetName() + std::string(
"|Status")] = subResult->status_;
122 if( ireference->IsA()->InheritsFrom(
"TH1" )){
123 TH1* hireference =
dynamic_cast<TH1*
>(ireference);
125 tags[ireference->GetName() + std::string(
"|NEntries")] = hireference->GetEntries();
130 if (subResult->getObject()) {
140 if (!returnObjs->IsEmpty()) {
141 result->object_.reset(returnObjs.release());