ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | List of all members
TRTCond::RtRelationFactory Class Reference

#include <RtRelationFactory.h>

Collaboration diagram for TRTCond::RtRelationFactory:

Public Types

enum  RtRelationType { EBasicRtRelation, EBinnedRtRelation, EDinesRtRelation }
 enumerates 3rd deg polynomial coefficients or table More...
 

Public Member Functions

 RtRelationFactory ()
 constructor More...
 
 ~RtRelationFactory ()
 destructor More...
 

Static Public Member Functions

static RtRelationreadFromFile (std::istream &is)
 read method More...
 
static void writeToFile (std::ostream &os, const RtRelation &rt)
 write method More...
 

Detailed Description

construct RtRelation from text file. Write text file.

Definition at line 18 of file RtRelationFactory.h.

Member Enumeration Documentation

◆ RtRelationType

enumerates 3rd deg polynomial coefficients or table

Enumerator
EBasicRtRelation 
EBinnedRtRelation 
EDinesRtRelation 

Definition at line 22 of file RtRelationFactory.h.

Constructor & Destructor Documentation

◆ RtRelationFactory()

TRTCond::RtRelationFactory::RtRelationFactory ( )

constructor

◆ ~RtRelationFactory()

TRTCond::RtRelationFactory::~RtRelationFactory ( )

destructor

Member Function Documentation

◆ readFromFile()

RtRelation * TRTCond::RtRelationFactory::readFromFile ( std::istream &  is)
inlinestatic

read method

Definition at line 33 of file RtRelationFactory.h.

33  {
34  RtRelation* rt(0) ;
35  int type ;
36  is >> type ;
37  switch(type) {
38  case EBasicRtRelation:
39  rt = new BasicRtRelation() ;
40  is >> *rt ;
41  break;
42  case EBinnedRtRelation:
43  rt = new BinnedRtRelation() ;
44  is >> *rt ;
45  break;
46  case EDinesRtRelation:
47  rt = new DinesRtRelation() ;
48  is >> *rt ;
49  break;
50  }
51  return rt ;
52  }

◆ writeToFile()

void TRTCond::RtRelationFactory::writeToFile ( std::ostream &  os,
const RtRelation rt 
)
inlinestatic

write method

Definition at line 54 of file RtRelationFactory.h.

54  {
55  int type(-1) ;
56  if( dynamic_cast<const BasicRtRelation*>(&rt) ) type=EBasicRtRelation ;
57  else if( dynamic_cast<const BinnedRtRelation*>(&rt) ) type=EBinnedRtRelation ;
58  else if( dynamic_cast<const DinesRtRelation*>(&rt) ) type=EDinesRtRelation ;
59  os << type << " " << rt ;
60  }

The documentation for this class was generated from the following file:
TRTCond::RtRelationFactory::EBinnedRtRelation
@ EBinnedRtRelation
Definition: RtRelationFactory.h:22
TRTCond::RtRelationFactory::EBasicRtRelation
@ EBasicRtRelation
Definition: RtRelationFactory.h:22
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
TRTCond::RtRelationFactory::EDinesRtRelation
@ EDinesRtRelation
Definition: RtRelationFactory.h:22
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78