CMS 3D CMS Logo

LMFDefFabric.h
Go to the documentation of this file.
1 #ifndef _LMFDEFFABRIC_H_
2 #define _LMFDEFFABRIC_H_
3 
4 /*
5  This class is used to get once all the definitions from the ECAL LMF
6  database and return them in various forms.
7 
8  Last updated by Giovanni.Organtini@roma1.infn.it 2010
9 */
10 
21 
22 #include <string>
23 #include <list>
24 
25 class LMFDefFabric : public IDBObject {
26 public:
27  LMFDefFabric();
28  LMFDefFabric(oracle::occi::Environment* env, oracle::occi::Connection* conn);
30  ~LMFDefFabric() override;
31 
33  LMFColor getColor(int color_index) const;
34  LMFColor getColorFromID(int color_id) const;
35  int getColorID(std::string name) const;
36  int getColorID(int color_index) const;
37  LMFTrigType getTrigType(std::string sname) const;
38  LMFTrigType getTrigTypeFromID(int trigType_id) const;
39  int getTrigTypeID(std::string sname) const;
41  LMFRunTag getRunTagFromID(int runTag_id) const;
42  int getRunTagID(std::string tag, int version) const;
43 
44  std::list<LMFColor> getColors() const;
45  std::list<LMFTrigType> getTriggerTypes() const;
46  std::list<LMFRunTag> getRunTags() const;
47 
48  void initialize() noexcept(false);
49  void debug();
50  void noDebug();
51 
52  void dump();
53 
54 protected:
55  bool _debug;
56 
57  std::list<LMFColor> _lmfColors;
58  std::list<LMFTrigType> _lmfTrigTypes;
59  std::list<LMFRunTag> _lmfRunTags;
60  std::list<LMFPrimVers> _lmfPrimVersions;
61  std::list<LMFSeqVers> _lmfSeqVersions;
62  std::list<LMFCorrVers> _lmfCorrVersions;
63 };
64 
65 #endif
void initialize() noexcept(false)
void noDebug()
Definition: LMFDefFabric.cc:28
LMFRunTag getRunTagFromID(int runTag_id) const
int getRunTagID(std::string tag, int version) const
LMFTrigType getTrigType(std::string sname) const
Definition: LMFDefFabric.cc:87
std::list< LMFPrimVers > _lmfPrimVersions
Definition: LMFDefFabric.h:60
LMFColor getColorFromID(int color_id) const
Definition: LMFDefFabric.cc:51
std::list< LMFTrigType > _lmfTrigTypes
Definition: LMFDefFabric.h:58
std::list< LMFRunTag > getRunTags() const
Definition: LMFDefFabric.cc:34
std::list< LMFSeqVers > _lmfSeqVersions
Definition: LMFDefFabric.h:61
std::list< LMFTrigType > getTriggerTypes() const
Definition: LMFDefFabric.cc:32
LMFRunTag getRunTag(std::string tag, int version) const
int getColorID(std::string name) const
Definition: LMFDefFabric.cc:81
std::list< LMFCorrVers > _lmfCorrVersions
Definition: LMFDefFabric.h:62
std::list< LMFColor > _lmfColors
Definition: LMFDefFabric.h:57
LMFTrigType getTrigTypeFromID(int trigType_id) const
std::list< LMFRunTag > _lmfRunTags
Definition: LMFDefFabric.h:59
int getTrigTypeID(std::string sname) const
Definition: LMFDefFabric.cc:85
~LMFDefFabric() override
Definition: LMFDefFabric.cc:24
std::list< LMFColor > getColors() const
Definition: LMFDefFabric.cc:30
LMFColor getColor(std::string name) const
Definition: LMFDefFabric.cc:36