#include <HanConfigGroup.h>
Definition at line 23 of file HanConfigGroup.h.
◆ HanConfigGroup() [1/2]
| dqi::HanConfigGroup::HanConfigGroup |
( |
| ) |
|
◆ HanConfigGroup() [2/2]
Definition at line 32 of file HanConfigGroup.cxx.
36{
37 TIter nextAssess( &
other.m_assessors );
42 }
43
44 TIter nextGroup( &
other.m_groups );
46 while( (otherGroup =
dynamic_cast<HanConfigGroup*
>( nextGroup() )) != 0 ) {
49 }
50}
◆ ~HanConfigGroup()
| dqi::HanConfigGroup::~HanConfigGroup |
( |
| ) |
|
|
virtual |
◆ Accept()
| void dqi::HanConfigGroup::Accept |
( |
Visitor & | visitor, |
|
|
boost::shared_ptr< dqm_core::Region > | dqParent ) const |
|
virtual |
Reimplemented from dqi::HanConfigAssessor.
Definition at line 227 of file HanConfigGroup.cxx.
229{
230 std::string nodeName(
GetName() );
231 boost::shared_ptr<dqm_core::Region> dqr;
232 if( nodeName != "top_level" ) {
233 boost::shared_ptr<dqm_core::Node> dqp(visitor.Visit( this, std::move(dqParent) ));
234 dqr = boost::dynamic_pointer_cast<dqm_core::Region>( dqp );
235 }
236 else {
237 dqr = std::move(dqParent);
238 }
239
240
241 try {
245 hca->Accept(visitor, dqr);
246 }
247 } catch (std::exception& s) {
248 std::cout <<
"Assess: Caught exception " <<
s.what() << std::endl;
249 throw;
250 }
251
252 try {
256 hcg->Accept(visitor, dqr);
257 }
258 } catch (std::exception& s) {
259 std::cout <<
"Group: Caught exception " <<
s.what() << std::endl;
260 throw;
261 }
262}
virtual const char * GetName() const
◆ AddAlgLimit()
Definition at line 305 of file HanConfigAssessor.cxx.
307{
308 HanConfigAlgLimit* lim = new HanConfigAlgLimit( algLim_ );
310}
TSeqCollection * m_algLimits
◆ AddAlgPar()
Definition at line 245 of file HanConfigAssessor.cxx.
247{
248 HanConfigAlgPar*
par =
new HanConfigAlgPar( algPar_ );
250}
TSeqCollection * m_algPars
◆ AddAlgStrPar()
| void dqi::HanConfigAssessor::AddAlgStrPar |
( |
const HanConfigParMap & | algPar_ | ) |
|
|
virtualinherited |
Definition at line 275 of file HanConfigAssessor.cxx.
277{
278 HanConfigParMap* strPar = new HanConfigParMap( algStrPar_ );
280}
TSeqCollection * m_algStrPars
◆ AddAnnotation()
| void dqi::HanConfigAssessor::AddAnnotation |
( |
const HanConfigParMap & | annotation_ | ) |
|
|
virtualinherited |
Definition at line 334 of file HanConfigAssessor.cxx.
336{
337 HanConfigParMap* parMap = new HanConfigParMap( annotation_ );
339}
TSeqCollection * m_annotations
◆ AddAssessor()
◆ AddGroup()
◆ GetAlgLibName()
| const char * dqi::HanConfigAssessor::GetAlgLibName |
( |
| ) |
const |
|
virtualinherited |
◆ GetAlgLimit()
Definition at line 314 of file HanConfigAssessor.cxx.
316{
317 HanConfigAlgLimit* lim =
dynamic_cast<HanConfigAlgLimit*
>(
m_algLimits->FindObject(name_.c_str()) );
318 if( lim == 0 ) {
319 return HanConfigAlgLimit();
320 }
321
322 return *lim;
323}
◆ GetAlgName()
| const char * dqi::HanConfigAssessor::GetAlgName |
( |
| ) |
const |
|
virtualinherited |
◆ GetAlgPar()
| HanConfigAlgPar dqi::HanConfigAssessor::GetAlgPar |
( |
std::string | name_ | ) |
const |
|
virtualinherited |
Definition at line 254 of file HanConfigAssessor.cxx.
256{
257 HanConfigAlgPar*
par =
dynamic_cast<HanConfigAlgPar*
>(
m_algPars->FindObject(name_.c_str()) );
258 if( par == 0 ) {
259 return HanConfigAlgPar();
260 }
261
263}
◆ GetAlgRefName()
| std::string dqi::HanConfigAssessor::GetAlgRefName |
( |
| ) |
const |
|
virtualinherited |
Definition at line 228 of file HanConfigAssessor.cxx.
230{
233}
static ConditionsSingleton & getInstance()
const std::string & getCondition() const
std::string conditionalSelect(std::string inp, const std::string &condition)
◆ GetAlgRefString()
| const char * dqi::HanConfigAssessor::GetAlgRefString |
( |
| ) |
const |
|
virtualinherited |
◆ GetAlgStrPar()
| HanConfigParMap dqi::HanConfigAssessor::GetAlgStrPar |
( |
std::string | name_ | ) |
const |
|
virtualinherited |
Definition at line 284 of file HanConfigAssessor.cxx.
286{
287 HanConfigParMap* strPar =
dynamic_cast<HanConfigParMap*
>(
m_algStrPars->FindObject(name_.c_str()) );
288 if( strPar == 0 ) {
289 return HanConfigParMap();
290 }
291
292 return *strPar;
293}
◆ GetAllAlgLimits()
| TIter dqi::HanConfigAssessor::GetAllAlgLimits |
( |
| ) |
const |
|
virtualinherited |
◆ GetAllAlgPars()
| TIter dqi::HanConfigAssessor::GetAllAlgPars |
( |
| ) |
const |
|
virtualinherited |
◆ GetAllAlgStrPars()
| TIter dqi::HanConfigAssessor::GetAllAlgStrPars |
( |
| ) |
const |
|
virtualinherited |
◆ GetAllAnnotations()
| TIter dqi::HanConfigAssessor::GetAllAnnotations |
( |
| ) |
const |
|
virtualinherited |
◆ GetAllAssessors()
| TIter dqi::HanConfigGroup::GetAllAssessors |
( |
| ) |
const |
|
virtual |
◆ GetAllGroups()
| TIter dqi::HanConfigGroup::GetAllGroups |
( |
| ) |
const |
|
virtual |
◆ GetAnnotation()
| const HanConfigParMap * dqi::HanConfigAssessor::GetAnnotation |
( |
std::string | name_ | ) |
const |
|
virtualinherited |
Definition at line 343 of file HanConfigAssessor.cxx.
345{
346 HanConfigParMap* parMap =
dynamic_cast<HanConfigParMap*
>(
m_annotations->FindObject(name_.c_str()) );
347 if( parMap == 0 ) {
348
349 return 0;
350 }
351 return parMap;
352}
◆ GetAssessor()
| const HanConfigAssessor dqi::HanConfigGroup::GetAssessor |
( |
const std::string & | name_ | ) |
const |
|
virtual |
Definition at line 123 of file HanConfigGroup.cxx.
125{
127 if( hca == 0 ) {
129 }
130
131 return *hca;
132}
◆ GetGroup()
| HanConfigGroup dqi::HanConfigGroup::GetGroup |
( |
const std::string & | name_ | ) |
const |
|
virtual |
Definition at line 153 of file HanConfigGroup.cxx.
155{
157 if( hcg == 0 ) {
159 }
160
161 return *hcg;
162}
◆ GetHistPath()
| const char * dqi::HanConfigAssessor::GetHistPath |
( |
| ) |
const |
|
virtualinherited |
Definition at line 176 of file HanConfigAssessor.cxx.
178{
180 if (!parmap) {
182 } else {
183 return parmap->GetValue();
184 }
185}
virtual const HanConfigParMap * GetAnnotation(std::string name_) const
◆ GetIsRegex()
| bool dqi::HanConfigAssessor::GetIsRegex |
( |
| ) |
const |
|
virtualinherited |
◆ GetList()
| TSeqCollection * dqi::HanConfigGroup::GetList |
( |
TDirectory * | basedir, |
|
|
std::map< std::string, TSeqCollection * > & | mp ) |
|
virtual |
Reimplemented from dqi::HanConfigAssessor.
Definition at line 204 of file HanConfigGroup.cxx.
206{
207
209 ret->SetName( this->
m_name.GetName() );
210
211
215 ret->Add( hca->GetList(basedir,mp) );
216
219 while( (hcg =
dynamic_cast<HanConfigGroup*
>( nextGroup() )) != 0 )
220 ret->Add( hcg->GetList(basedir,mp) );
221
222 return ret;
223}
virtual TSeqCollection * GetList(TDirectory *basedir, std::map< std::string, TSeqCollection * > &mp)
◆ GetName()
| const char * dqi::HanConfigAssessor::GetName |
( |
| ) |
const |
|
virtualinherited |
◆ GetNode()
| HanConfigGroup * dqi::HanConfigGroup::GetNode |
( |
const std::string & | name_ | ) |
const |
|
virtual |
Definition at line 174 of file HanConfigGroup.cxx.
176{
178 return 0;
179 }
180
181 std::string::size_type
k = name_.find_first_of(
'/');
182 if( k != std::string::npos ) {
183 std::string dName( name_, 0, k );
184 std::string pName( name_, k+1, std::string::npos );
185 if( dName != "" ) {
186 if( dName == std::string(
GetName() ) ) {
188 }
190 if( subreg == 0 ) {
191 return 0;
192 }
193 return subreg->GetNode( pName );
194 }
196 }
197
199 return subreg;
200}
virtual HanConfigGroup * GetNode(const std::string &name_) const
◆ GetPathName()
| const char * dqi::HanConfigGroup::GetPathName |
( |
| ) |
const |
|
virtual |
◆ GetUniqueName()
| std::string dqi::HanConfigGroup::GetUniqueName |
( |
| ) |
const |
|
virtual |
◆ GetWeight()
| float dqi::HanConfigAssessor::GetWeight |
( |
| ) |
const |
|
virtualinherited |
◆ operator=()
Definition at line 54 of file HanConfigGroup.cxx.
56{
57 if (this != &other) {
60
61 TIter nextAssess( &
other.m_assessors );
66 }
67
68 TIter nextGroup( &
other.m_groups );
70 while( (otherGroup =
dynamic_cast<HanConfigGroup*
>( nextGroup() )) != 0 ) {
73 }
74 }
75
76 return *this;
77}
HanConfigAssessor & operator=(const HanConfigAssessor &other)
◆ PrintIOStream()
| void dqi::HanConfigGroup::PrintIOStream |
( |
std::ostream & | o | ) |
const |
|
virtual |
Reimplemented from dqi::HanConfigAssessor.
Definition at line 265 of file HanConfigGroup.cxx.
267{
268 o <<
"\nHanConfigGroup: " <<
GetName() <<
"\n"
269 <<
" Algorithm Name = \"" <<
GetAlgName() <<
"\"\n"
273
275 o << " Algorithm Parameters = {\n";
277 HanConfigAlgPar*
par;
278 while( (par = dynamic_cast<HanConfigAlgPar*>( nextPar() )) != 0 ) {
280 }
282 HanConfigParMap* strPar;
283 while( (strPar = dynamic_cast<HanConfigParMap*>( nextStrPar() )) != 0 ) {
284 o << " " << strPar;
285 }
286 o << " }\n";
287 }
288
290 o << " Algorithm Limits = {\n";
292 HanConfigAlgLimit* lim;
293 while( (lim = dynamic_cast<HanConfigAlgLimit*>( nextLim() )) != 0 ) {
294 o << " " << lim;
295 }
296 o << " }\n";
297 }
298
300 o <<
"\n>> BEGIN SUB REGIONS of \"" <<
GetName() <<
"\"\n";
303 while( (hcg =
dynamic_cast<HanConfigGroup*
>( nextGroup() )) != 0 ) {
304 o << hcg;
305 }
306 o <<
"\n<< END SUB REGIONS of \"" <<
GetName() <<
"\"\n";
307 }
308
310 o <<
"\n>> BEGIN ASSESSMENTS of \"" <<
GetName() <<
"\"\n";
314 o << hca;
315 }
316 o <<
"\n<< END ASSESSMENTS of \"" <<
GetName() <<
"\"\n";
317 }
318
319}
virtual float GetWeight() const
virtual const char * GetAlgName() const
virtual const char * GetAlgLibName() const
virtual std::string GetAlgRefName() const
◆ SetAlgLibName()
| void dqi::HanConfigAssessor::SetAlgLibName |
( |
std::string | name_ | ) |
|
|
virtualinherited |
◆ SetAlgName()
| void dqi::HanConfigAssessor::SetAlgName |
( |
std::string | name_ | ) |
|
|
virtualinherited |
◆ SetAlgRefName()
| void dqi::HanConfigAssessor::SetAlgRefName |
( |
std::string | name_ | ) |
|
|
virtualinherited |
◆ SetIsRegex()
| void dqi::HanConfigAssessor::SetIsRegex |
( |
bool | isRegex_ | ) |
|
|
virtualinherited |
◆ SetName()
| void dqi::HanConfigAssessor::SetName |
( |
std::string | name_ | ) |
|
|
virtualinherited |
◆ SetPathName()
| void dqi::HanConfigGroup::SetPathName |
( |
const std::string & | name_ | ) |
|
|
virtual |
◆ SetWeight()
| void dqi::HanConfigAssessor::SetWeight |
( |
float | weight_ | ) |
|
|
virtualinherited |
◆ m_algLibName
| TObjString dqi::HanConfigAssessor::m_algLibName |
|
protectedinherited |
◆ m_algLimits
| TSeqCollection* dqi::HanConfigAssessor::m_algLimits |
|
protectedinherited |
◆ m_algName
| TObjString dqi::HanConfigAssessor::m_algName |
|
protectedinherited |
◆ m_algPars
| TSeqCollection* dqi::HanConfigAssessor::m_algPars |
|
protectedinherited |
◆ m_algRefName
| TObjString dqi::HanConfigAssessor::m_algRefName |
|
protectedinherited |
◆ m_algStrPars
| TSeqCollection* dqi::HanConfigAssessor::m_algStrPars |
|
protectedinherited |
◆ m_annotations
| TSeqCollection* dqi::HanConfigAssessor::m_annotations |
|
protectedinherited |
◆ m_assessors
| TList dqi::HanConfigGroup::m_assessors |
|
protected |
◆ m_groups
| TList dqi::HanConfigGroup::m_groups |
|
protected |
◆ m_isRegex
| bool dqi::HanConfigAssessor::m_isRegex |
|
protectedinherited |
◆ m_name
| TObjString dqi::HanConfigAssessor::m_name |
|
protectedinherited |
◆ m_pathName
| TObjString dqi::HanConfigGroup::m_pathName |
|
protected |
◆ m_weight
| float dqi::HanConfigAssessor::m_weight |
|
protectedinherited |
The documentation for this class was generated from the following files: