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
LMFTrigType
Definition: LMFTrigType.h:10
LMFTrigType.h
LMFRunTag
Definition: LMFRunTag.h:16
LMFDefFabric::getRunTag
LMFRunTag getRunTag(std::string tag, int version) const
Definition: LMFDefFabric.cc:117
LMFDefFabric::getColors
std::list< LMFColor > getColors() const
Definition: LMFDefFabric.cc:30
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
IDBObject
Definition: IDBObject.h:13
LMFColor
Definition: LMFColor.h:12
LMFDefFabric::getTrigTypeID
int getTrigTypeID(std::string sname) const
Definition: LMFDefFabric.cc:85
LMFDefFabric::getRunTags
std::list< LMFRunTag > getRunTags() const
Definition: LMFDefFabric.cc:34
LMFDefFabric::getTrigTypeFromID
LMFTrigType getTrigTypeFromID(int trigType_id) const
Definition: LMFDefFabric.cc:102
LMFDefFabric::getColorID
int getColorID(std::string name) const
Definition: LMFDefFabric.cc:81
LMFDefFabric::_lmfCorrVersions
std::list< LMFCorrVers > _lmfCorrVersions
Definition: LMFDefFabric.h:62
LMFDefFabric::getTrigType
LMFTrigType getTrigType(std::string sname) const
Definition: LMFDefFabric.cc:87
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
LMFDefFabric::initialize
void initialize() noexcept(false)
Definition: LMFDefFabric.cc:152
LMFSeqVers.h
LMFUnique.h
LMFDefFabric::_lmfColors
std::list< LMFColor > _lmfColors
Definition: LMFDefFabric.h:57
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFDefFabric::getColor
LMFColor getColor(std::string name) const
Definition: LMFDefFabric.cc:36
LMFRunTag.h
LMFDefFabric::_lmfPrimVersions
std::list< LMFPrimVers > _lmfPrimVersions
Definition: LMFDefFabric.h:60
LMFDefFabric
Definition: LMFDefFabric.h:25
EcalDBConnection.h
LMFColor.h
LMFDefFabric::getRunTagFromID
LMFRunTag getRunTagFromID(int runTag_id) const
Definition: LMFDefFabric.cc:131
LMFDefFabric::debug
void debug()
Definition: LMFDefFabric.cc:26
LMFDefFabric::_lmfSeqVersions
std::list< LMFSeqVers > _lmfSeqVersions
Definition: LMFDefFabric.h:61
IDBObject.h
LMFDefFabric::_lmfTrigTypes
std::list< LMFTrigType > _lmfTrigTypes
Definition: LMFDefFabric.h:58
LMFDefFabric::dump
void dump()
Definition: LMFDefFabric.cc:228
LMFDefFabric::_debug
bool _debug
Definition: LMFDefFabric.h:55
LMFPrimVers.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
LMFCorrVers.h
Oracle.h
LMFDefFabric::LMFDefFabric
LMFDefFabric()
Definition: LMFDefFabric.cc:10
LMFDefFabric::getColorFromID
LMFColor getColorFromID(int color_id) const
Definition: LMFDefFabric.cc:51
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
LMFDefFabric::getTriggerTypes
std::list< LMFTrigType > getTriggerTypes() const
Definition: LMFDefFabric.cc:32
LMFDefFabric::_lmfRunTags
std::list< LMFRunTag > _lmfRunTags
Definition: LMFDefFabric.h:59
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
LMFDefFabric::getRunTagID
int getRunTagID(std::string tag, int version) const
Definition: LMFDefFabric.cc:145
LMFDefFabric::~LMFDefFabric
~LMFDefFabric() override
Definition: LMFDefFabric.cc:24
LMFDefFabric::noDebug
void noDebug()
Definition: LMFDefFabric.cc:28
EcalDBConnection
Definition: EcalDBConnection.h:15