test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalQIEManager.h
Go to the documentation of this file.
1 //
2 // Gena Kukartsev (Brown), Feb. 22, 2008
3 //
4 //
5 #ifndef HcalQIEManager_h
6 #define HcalQIEManager_h
7 
8 #include <iostream>
9 #include <string.h>
11 
21 
22  public:
23 
26 
27  int eta, phi, depth;
29 
30  bool operator<( const HcalChannelId & other) const;
31 
32 };
33 
35 
36  public:
37 
40 
41  // cap0 offset x 4, cap1 offset x 4...
42  // cap0 slope x 4, cap1 slope x 4...
43  double caps[32];
44 };
45 
47  public:
48 
49  HcalQIEManager( );
50  ~HcalQIEManager( );
51 
52  std::map<HcalChannelId,HcalQIECaps> & getQIETableFromFile( std::string _filename );
54  int generateQieTable( std::string db_file, std::string old_file, std::string output_file );
55  int getHfQieTable( std::string input_file, std::string output_file );
56 
57  static std::vector <std::string> splitString (const std::string& fLine);
58 
59  protected:
60 
61 
62 };
63 #endif
double caps[32]
tuple query_file
Definition: o2o.py:268
int generateQieTable(std::string db_file, std::string old_file, std::string output_file)
static std::vector< std::string > splitString(const std::string &fLine)
bool operator<(const HcalChannelId &other) const
std::string subdetector
string output_file
Various manipulations with QIE and QIE ADC.
std::map< HcalChannelId, HcalQIECaps > & getQIETableFromFile(std::string _filename)
void getTableFromDb(std::string query_file, std::string output_file)
int getHfQieTable(std::string input_file, std::string output_file)