test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripGainFromAsciiFile.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h
2 #define CalibTracker_SiStripChannelGain_SiStripGainFromAsciiFile_h
3 
5 
8 #include <vector>
9 
10 #include <ext/hash_map>
11 
12 class SiStripGainFromAsciiFile : public ConditionDBWriter<SiStripApvGain> {
13 
14 public:
15 
18 
19 private:
20 
22 
23 private:
24 
25  struct ModuleGain{
26  float apv[6];
27 
28  void soft_reset(){ for (int i=0;i<6;++i) if(apv[i]==-1)apv[i]=1; }
29  void hard_reset(float val){ for (int i=0;i<6;++i) apv[i]=val; }
30 
31  };
32 
36 
37  __gnu_cxx::hash_map< unsigned int,ModuleGain> GainsMap;
38  //std::map< unsigned int,ModuleGain> GainsMap;
39 
40 };
41 #endif
int i
Definition: DBlmapReader.cc:9
SiStripGainFromAsciiFile(const edm::ParameterSet &)
__gnu_cxx::hash_map< unsigned int, ModuleGain > GainsMap