CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTConfigDBProducer.h
Go to the documentation of this file.
1 #ifndef DTTPGConfigProducers_DTConfigDBProducer_h
2 #define DTTPGConfigProducers_DTConfigDBProducer_h
3 
4 // -*- C++ -*-
5 //
6 // Package: DTTPGConfigProducers
7 // Class: DTConfigDBProducer
8 //
16 //
17 // Original Author: Sara Vanini
18 // Created: September 2008
19 //
20 //
21 
22 
23 // system include files
24 #include <memory>
25 #include <boost/shared_ptr.hpp>
26 #include <vector>
27 
28 // user include files
32 
34 
37 
40 
41 //
42 // class declaration
43 //
44 
46 
47  public :
48 
51 
54 
56  std::auto_ptr<DTConfigManager> produce(const DTConfigManagerRcd&);
57 
58  private :
59 
61  void readDBPedestalsConfig(const DTConfigManagerRcd& iRecord, DTConfigManager & dttpgConfig);
62 
64  int readDTCCBConfig(const DTConfigManagerRcd& iRecord, DTConfigManager & dttpgConfig);
65 
67  void configFromCfg(DTConfigManager & dttpgConfig);
68 
71 
73  int checkDTCCBConfig(DTConfigManager & dttpgConfig);
74 
75  std::string mapEntryName(const DTChamberId & chambid) const;
76 
77  // ----------member data ---------------------------
79 
80  // debug flags
81  bool m_debugDB;
84  bool m_debugTSP;
85  bool m_debugTST;
86  bool m_debugTU;
87  bool m_debugSC;
89  bool m_debugPed;
90 
91  // general DB requests
92  bool m_UseT0;
93 
94  bool cfgConfig;
95 
97 
98 };
99 
100 #endif
std::string mapEntryName(const DTChamberId &chambid) const
std::auto_ptr< DTConfigManager > produce(const DTConfigManagerRcd &)
ES produce method.
int readDTCCBConfig(const DTConfigManagerRcd &iRecord, DTConfigManager &dttpgConfig)
Read CCB string configuration.
~DTConfigDBProducer()
Destructor.
edm::ParameterSet m_ps
DTConfigPedestals buildTrivialPedestals()
SV for debugging purpose ONLY.
DTConfigDBProducer(const edm::ParameterSet &)
Constructor.
int checkDTCCBConfig(DTConfigManager &dttpgConfig)
110629 SV function for CCB configuration check
void configFromCfg(DTConfigManager &dttpgConfig)
SV for debugging purpose ONLY.
void readDBPedestalsConfig(const DTConfigManagerRcd &iRecord, DTConfigManager &dttpgConfig)
Read DTTPG pedestal configuration.