DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConditionsPrinter.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation for LCD
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DD4HEP_DDCORE_CONDITIONSPRINTER_H
14 #define DD4HEP_DDCORE_CONDITIONSPRINTER_H
15 
16 // Framework includes
18 
20 namespace DD4hep {
21 
23  namespace Conditions {
24 
26 
37  public:
39  std::string name;
41  std::string prefix;
42  protected:
44  int m_flag;
45 
46  public:
48  ConditionsPrinter(const std::string& prefix="",
51  virtual ~ConditionsPrinter() = default;
53  void setName(const std::string& value) { name = value; }
55  void setPrefix(const std::string& value) { prefix = value; }
57  virtual int operator()(Condition cond);
59  virtual int operator()(Container container);
61  virtual int processElement(DetElement de)
62  { return this->ConditionsProcessor::processElement(de); }
63  };
64 
65  } /* End namespace Conditions */
66 } /* End namespace DD4hep */
67 #endif /* DD4HEP_DDCORE_CONDITIONSPRINTER_H */
Generic Conditions data dumper.
virtual int operator()(Condition cond)
Callback to output conditions information.
void setName(const std::string &value)
Set name for printouts.
Generic Conditions processor.
virtual ~ConditionsPrinter()=default
Default destructor.
virtual int processElement(DetElement de)
Callback to output conditions information of an entire DetElement.
Main condition object handle.
Definition: Conditions.h:70
Container class for condition handles aggregated by a detector element.
Definition: Conditions.h:206
int m_flag
Printout processing and customization flag.
ConditionsPrinter(const std::string &prefix="", int flag=Condition::NO_NAME|Condition::WITH_IOV|Condition::WITH_ADDRESS)
Initializing constructor.
std::string name
Printer name. Want to know who is printing what.
std::string prefix
Printout prefix.
Handle class describing a detector element.
Definition: Detector.h:172
virtual int processElement(DetElement de)
Callback to output conditions information of an entire DetElement.
void setPrefix(const std::string &value)
Set prefix for printouts.