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 FibersGain{
26  float fiber[3];
27 
28  void soft_reset(){ for (int i=0;i<3;++i) if(fiber[i]==-1)fiber[i]=1; }
29  void hard_reset(float val){ for (int i=0;i<3;++i) fiber[i]=val; }
30 
31  };
32 
33  std::string Asciifilename_;
36 
37  __gnu_cxx::hash_map< unsigned int,FibersGain> GainsMap;
38  //std::map< unsigned int,FibersGain> GainsMap;
39 
40 };
41 #endif
int i
Definition: DBlmapReader.cc:9
SiStripGainFromAsciiFile(const edm::ParameterSet &)
__gnu_cxx::hash_map< unsigned int, FibersGain > GainsMap