test
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 
39 
42 
43 //
44 // class declaration
45 //
46 
48 
49  public :
50 
53 
56 
58  std::auto_ptr<DTConfigManager> produce(const DTConfigManagerRcd&);
59 
60  private :
61 
63  void readDBPedestalsConfig(const DTConfigManagerRcd& iRecord, DTConfigManager & dttpgConfig);
64 
66  int readDTCCBConfig(const DTConfigManagerRcd& iRecord, DTConfigManager & dttpgConfig);
67 
69  void configFromCfg(DTConfigManager & dttpgConfig);
70 
73 
75  int checkDTCCBConfig(DTConfigManager & dttpgConfig);
76 
77  std::string mapEntryName(const DTChamberId & chambid) const;
78 
79  // ----------member data ---------------------------
81 
82  // debug flags
83  bool m_debugDB;
86  bool m_debugTSP;
87  bool m_debugTST;
88  bool m_debugTU;
89  bool m_debugSC;
91  bool m_debugPed;
92 
93  // general DB requests
94  bool m_UseT0;
95 
96  bool cfgConfig;
97 
99 
101 };
102 
103 #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
DTKeyedConfigCache cfgCache
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.