CMS 3D CMS Logo

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 <unordered_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  std::unordered_map< unsigned int,ModuleGain> GainsMap;
38 
39 };
40 #endif
SiStripGainFromAsciiFile(const edm::ParameterSet &)
std::unordered_map< unsigned int, ModuleGain > GainsMap