CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
LMFRunTag getRunTag(std::string tag, int version) const
LMFColor getColorFromID(int color_id) const
Definition: LMFDefFabric.cc:51
std::list< LMFTrigType > getTriggerTypes() const
Definition: LMFDefFabric.cc:32
const edm::EventSetup & c
void initialize() noexcept(false)
void noDebug()
Definition: LMFDefFabric.cc:28
LMFColor getColor(std::string name) const
Definition: LMFDefFabric.cc:36
int getColorID(std::string name) const
Definition: LMFDefFabric.cc:81
std::list< LMFPrimVers > _lmfPrimVersions
Definition: LMFDefFabric.h:60
std::list< LMFTrigType > _lmfTrigTypes
Definition: LMFDefFabric.h:58
LMFRunTag getRunTagFromID(int runTag_id) const
std::list< LMFSeqVers > _lmfSeqVersions
Definition: LMFDefFabric.h:61
std::list< LMFCorrVers > _lmfCorrVersions
Definition: LMFDefFabric.h:62
int getRunTagID(std::string tag, int version) const
int getTrigTypeID(std::string sname) const
Definition: LMFDefFabric.cc:85
std::list< LMFColor > _lmfColors
Definition: LMFDefFabric.h:57
std::list< LMFRunTag > getRunTags() const
Definition: LMFDefFabric.cc:34
std::list< LMFRunTag > _lmfRunTags
Definition: LMFDefFabric.h:59
LMFTrigType getTrigType(std::string sname) const
Definition: LMFDefFabric.cc:87
tuple conn
Definition: getInfo.py:9
LMFTrigType getTrigTypeFromID(int trigType_id) const
std::list< LMFColor > getColors() const
Definition: LMFDefFabric.cc:30
~LMFDefFabric() override
Definition: LMFDefFabric.cc:24