ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
dqm_persistency::PRegion Class Reference

#include <PRegion.h>

Inheritance diagram for dqm_persistency::PRegion:
Collaboration diagram for dqm_persistency::PRegion:

Public Member Functions

 PRegion ()
 
virtual ~PRegion ()
 
void Print (const Option_t *opt="") const
 
void AddSubparameter (PParameter &daughter)
 
PParameterGetSubparameter (TDirectory &topdir, unsigned int i) const
 
PRegionGetParentRegion (TDirectory &topdir)
 

Public Attributes

std::vector< int > subparameters
 
TObject * layout
 
std::string name
 
TObject * input
 
PResultresult
 
PAlgorithmalgorithm
 
TObject * reference
 
float weight
 
bool disableChildren
 
PMetadatametadata
 
TObject * shape
 
int parentRegion
 

Detailed Description

Definition at line 15 of file PRegion.h.

Constructor & Destructor Documentation

◆ PRegion()

dqm_persistency::PRegion::PRegion ( )

Definition at line 51 of file dqm_persistency_impl.cxx.

51  :
52  PParameter(),
53  layout(0) {}

◆ ~PRegion()

virtual dqm_persistency::PRegion::~PRegion ( )
inlinevirtual

Definition at line 18 of file PRegion.h.

18 { };

Member Function Documentation

◆ AddSubparameter()

void dqm_persistency::PRegion::AddSubparameter ( PParameter daughter)

Definition at line 93 of file dqm_persistency_impl.cxx.

93  {
94  int uid = TProcessID::AssignID(&daughter);
95  if (!(TProcessID::GetPID()->GetObjectWithID(uid))) {
96  TProcessID::GetPID()->PutObjectWithID(&daughter);
97  }
98  subparameters.push_back(uid);
99  if (name != "top_level") {
100  uid = TProcessID::AssignID(this);
101  if (!(TProcessID::GetPID()->GetObjectWithID(uid))) {
102  TProcessID::GetPID()->PutObjectWithID(this);
103  }
104  daughter.parentRegion = uid;
105  } else {
106  daughter.parentRegion = -1;
107  }
108  }

◆ GetParentRegion()

PRegion * dqm_persistency::PParameter::GetParentRegion ( TDirectory &  topdir)
inherited

Definition at line 78 of file dqm_persistency_impl.cxx.

78  {
79  if (parentRegion == -2) { return 0; }
80  if (parentRegion == -1) {
81  return dynamic_cast<PRegion*>(GetNode(topdir, -1));
82  }
83  return dynamic_cast<PRegion*>(GetNode(topdir, parentRegion));
84  }

◆ GetSubparameter()

PParameter * dqm_persistency::PRegion::GetSubparameter ( TDirectory &  topdir,
unsigned int  i 
) const

Definition at line 110 of file dqm_persistency_impl.cxx.

110  {
111  if (i >= subparameters.size()) {
112  std::cerr << "ERROR: attempt to access invalid subparameter " << i
113  << std::endl
114  << " valid values are in [0," << subparameters.size()
115  << ")" << std::endl;
116  }
117  return GetNode(topdir, subparameters[i]);
118  }

◆ Print()

void dqm_persistency::PRegion::Print ( const Option_t *  opt = "") const

Definition at line 86 of file dqm_persistency_impl.cxx.

86  {
87  std::cout << "Region " << name << std::endl;
89  std::cout << "# daughter parameters: " << subparameters.size()
90  << std::endl;
91  }

Member Data Documentation

◆ algorithm

PAlgorithm* dqm_persistency::PParameter::algorithm
inherited

Definition at line 28 of file PParameter.h.

◆ disableChildren

bool dqm_persistency::PParameter::disableChildren
inherited

Definition at line 31 of file PParameter.h.

◆ input

TObject* dqm_persistency::PParameter::input
inherited

Definition at line 26 of file PParameter.h.

◆ layout

TObject* dqm_persistency::PRegion::layout

Definition at line 21 of file PRegion.h.

◆ metadata

PMetadata* dqm_persistency::PParameter::metadata
inherited

Definition at line 32 of file PParameter.h.

◆ name

std::string dqm_persistency::PParameter::name
inherited

Definition at line 25 of file PParameter.h.

◆ parentRegion

int dqm_persistency::PParameter::parentRegion
inherited

Definition at line 36 of file PParameter.h.

◆ reference

TObject* dqm_persistency::PParameter::reference
inherited

Definition at line 29 of file PParameter.h.

◆ result

PResult* dqm_persistency::PParameter::result
inherited

Definition at line 27 of file PParameter.h.

◆ shape

TObject* dqm_persistency::PParameter::shape
inherited

Definition at line 34 of file PParameter.h.

◆ subparameters

std::vector<int> dqm_persistency::PRegion::subparameters

Definition at line 20 of file PRegion.h.

◆ weight

float dqm_persistency::PParameter::weight
inherited

Definition at line 30 of file PParameter.h.


The documentation for this class was generated from the following files:
make_coralServer_rep.opt
opt
Definition: make_coralServer_rep.py:19
dqm_persistency::PRegion::subparameters
std::vector< int > subparameters
Definition: PRegion.h:18
dqm_persistency::PRegion::layout
TObject * layout
Definition: PRegion.h:21
dqm_persistency::PParameter::Print
void Print(const Option_t *opt="") const
Definition: dqm_persistency_impl.cxx:60
dqm_persistency::GetNode
PParameter * GetNode(TDirectory &topdir, const std::string &nodename)
Definition: dqm_persistency_impl.cxx:229
dqm_persistency::PParameter::parentRegion
int parentRegion
Definition: PParameter.h:36
lumiFormat.i
int i
Definition: lumiFormat.py:85
dqm_persistency::PParameter::PParameter
PParameter()
Definition: dqm_persistency_impl.cxx:39
dqm_persistency::PParameter::name
std::string name
Definition: PParameter.h:23