DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
dd4hep::cond::ConditionsPrinter Class Reference

Generic Conditions data dumper. More...

#include <ConditionsPrinter.h>

Classes

class  ParamPrinter
 DDDB Conditions data dumper helper to output parameter maps. More...
 

Public Member Functions

 ConditionsPrinter (ConditionsMap *m, const std::string &prefix="", int flag=Condition::NO_NAME|Condition::WITH_IOV|Condition::WITH_ADDRESS)
 Initializing constructor. More...
 
virtual ~ConditionsPrinter ()
 Default destructor. More...
 
void setName (const std::string &value)
 Set name for printouts. More...
 
void setPrefix (const std::string &value)
 Set prefix for printouts. More...
 
virtual int operator() (DetElement de, int level) const
 Callback to output conditions information of an entire DetElement. More...
 
virtual int operator() (Condition condition) const
 Callback to output conditions information. More...
 

Public Attributes

std::string name
 Printer name. Want to know who is printing what. More...
 
std::string prefix
 Printout prefix. More...
 
PrintLevel printLevel = INFO
 Printout level. More...
 
size_t lineLength = 80
 Line length. More...
 
size_t numParam = 0
 Counter: number of parameters. More...
 
size_t numCondition = 0
 Counter: number of conditions. More...
 
size_t numEmptyCondition = 0
 Counter: number of empty conditions. More...
 
bool summary = true
 Flag to print summary. More...
 

Protected Attributes

ParamPrinterm_print = 0
 Sub-printer. More...
 
ConditionsMapmapping = 0
 Conditionsmap to resolve things. More...
 
int m_flag = 0
 Printout processing and customization flag. More...
 

Friends

class ParamPrinter
 

Detailed Description

Generic Conditions data dumper.

Please note that the principle of locality applies: The object is designed for stack allocation and configuration. It may NOT be shared across threads!

Author
M.Frank
Version
1.0
Date
31/03/2016

Definition at line 38 of file ConditionsPrinter.h.

Constructor & Destructor Documentation

◆ ConditionsPrinter()

ConditionsPrinter::ConditionsPrinter ( ConditionsMap m,
const std::string &  prefix = "",
int  flag = Condition::NO_NAME|Condition::WITH_IOV|Condition::WITH_ADDRESS 
)

Initializing constructor.

Definition at line 117 of file ConditionsPrinter.cpp.

◆ ~ConditionsPrinter()

ConditionsPrinter::~ConditionsPrinter ( )
virtual

Default destructor.

Definition at line 124 of file ConditionsPrinter.cpp.

Member Function Documentation

◆ operator()() [1/2]

int ConditionsPrinter::operator() ( Condition  condition) const
virtual

Callback to output conditions information.

Actual print method.

Definition at line 136 of file ConditionsPrinter.cpp.

◆ operator()() [2/2]

int ConditionsPrinter::operator() ( DetElement  de,
int  level 
) const
virtual

Callback to output conditions information of an entire DetElement.

Processing callback to print conditions.

Definition at line 264 of file ConditionsPrinter.cpp.

◆ setName()

void dd4hep::cond::ConditionsPrinter::setName ( const std::string &  value)
inline

Set name for printouts.

Definition at line 79 of file ConditionsPrinter.h.

◆ setPrefix()

void dd4hep::cond::ConditionsPrinter::setPrefix ( const std::string &  value)
inline

Set prefix for printouts.

Definition at line 81 of file ConditionsPrinter.h.

Friends And Related Function Documentation

◆ ParamPrinter

friend class ParamPrinter
friend

Definition at line 42 of file ConditionsPrinter.h.

Member Data Documentation

◆ lineLength

size_t dd4hep::cond::ConditionsPrinter::lineLength = 80

Line length.

Definition at line 62 of file ConditionsPrinter.h.

◆ m_flag

int dd4hep::cond::ConditionsPrinter::m_flag = 0
protected

Printout processing and customization flag.

Definition at line 51 of file ConditionsPrinter.h.

◆ m_print

ParamPrinter* dd4hep::cond::ConditionsPrinter::m_print = 0
protected

Sub-printer.

Definition at line 45 of file ConditionsPrinter.h.

◆ mapping

ConditionsMap* dd4hep::cond::ConditionsPrinter::mapping = 0
protected

Conditionsmap to resolve things.

Definition at line 47 of file ConditionsPrinter.h.

◆ name

std::string dd4hep::cond::ConditionsPrinter::name

Printer name. Want to know who is printing what.

Setup parameters to configure printout

Definition at line 56 of file ConditionsPrinter.h.

◆ numCondition

size_t dd4hep::cond::ConditionsPrinter::numCondition = 0
mutable

Counter: number of conditions.

Definition at line 66 of file ConditionsPrinter.h.

◆ numEmptyCondition

size_t dd4hep::cond::ConditionsPrinter::numEmptyCondition = 0
mutable

Counter: number of empty conditions.

Definition at line 68 of file ConditionsPrinter.h.

◆ numParam

size_t dd4hep::cond::ConditionsPrinter::numParam = 0

Counter: number of parameters.

Definition at line 64 of file ConditionsPrinter.h.

◆ prefix

std::string dd4hep::cond::ConditionsPrinter::prefix

Printout prefix.

Definition at line 58 of file ConditionsPrinter.h.

◆ printLevel

PrintLevel dd4hep::cond::ConditionsPrinter::printLevel = INFO

Printout level.

Definition at line 60 of file ConditionsPrinter.h.

◆ summary

bool dd4hep::cond::ConditionsPrinter::summary = true

Flag to print summary.

Definition at line 70 of file ConditionsPrinter.h.


The documentation for this class was generated from the following files: