CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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,
29  oracle::occi::Connection* conn);
31  ~LMFDefFabric();
32 
33  LMFColor getColor(std::string name) const;
34  LMFColor getColor(int color_index) const;
35  LMFColor getColorFromID(int color_id) const;
36  int getColorID(std::string name) const;
37  int getColorID(int color_index) const;
38  LMFTrigType getTrigType(std::string sname) const;
39  LMFTrigType getTrigTypeFromID(int trigType_id) const;
40  int getTrigTypeID(std::string sname) const;
41  LMFRunTag getRunTag(std::string tag, int version) const;
42  LMFRunTag getRunTagFromID(int runTag_id) const;
43  int getRunTagID(std::string tag, int version) const;
44 
45  std::list<LMFColor> getColors() const;
46  std::list<LMFTrigType> getTriggerTypes() const;
47  std::list<LMFRunTag> getRunTags() const;
48 
49  void initialize() throw(std::runtime_error);
50  void debug();
51  void noDebug();
52 
53  void dump();
54 
55  protected:
56 
57  bool _debug;
58 
59  std::list<LMFColor> _lmfColors;
60  std::list<LMFTrigType> _lmfTrigTypes;
61  std::list<LMFRunTag> _lmfRunTags;
62  std::list<LMFPrimVers> _lmfPrimVersions;
63  std::list<LMFSeqVers> _lmfSeqVersions;
64  std::list<LMFCorrVers> _lmfCorrVersions;
65 };
66 
67 #endif
LMFRunTag getRunTag(std::string tag, int version) const
LMFColor getColorFromID(int color_id) const
Definition: LMFDefFabric.cc:65
std::list< LMFTrigType > getTriggerTypes() const
Definition: LMFDefFabric.cc:42
void noDebug()
Definition: LMFDefFabric.cc:34
void initialize()
LMFColor getColor(std::string name) const
Definition: LMFDefFabric.cc:50
int getColorID(std::string name) const
Definition: LMFDefFabric.cc:95
std::list< LMFPrimVers > _lmfPrimVersions
Definition: LMFDefFabric.h:62
std::list< LMFTrigType > _lmfTrigTypes
Definition: LMFDefFabric.h:60
LMFRunTag getRunTagFromID(int runTag_id) const
std::list< LMFSeqVers > _lmfSeqVersions
Definition: LMFDefFabric.h:63
std::list< LMFCorrVers > _lmfCorrVersions
Definition: LMFDefFabric.h:64
int getRunTagID(std::string tag, int version) const
int getTrigTypeID(std::string sname) const
std::list< LMFColor > _lmfColors
Definition: LMFDefFabric.h:59
std::list< LMFRunTag > getRunTags() const
Definition: LMFDefFabric.cc:46
std::list< LMFRunTag > _lmfRunTags
Definition: LMFDefFabric.h:61
LMFTrigType getTrigType(std::string sname) const
LMFTrigType getTrigTypeFromID(int trigType_id) const
std::list< LMFColor > getColors() const
Definition: LMFDefFabric.cc:38
tuple conn
Definition: results_mgr.py:53