HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HGCalCondObjectTextIO.h
Go to the documentation of this file.
1 #ifndef HGCAL_CONDOBJECTS_HGCALCONDOBJECTTEXTIO_H
2 #define HGCAL_CONDOBJECTS_HGCALCONDOBJECTTEXTIO_H 1
3 
4 #include <string>
5 #include "HGCal/CondObjects/interface/HGCalCondObjectContainer.h"
6 #include "HGCal/CondObjects/interface/HGCalElectronicsMap.h"
7 
8 /** \class HGCalCondObjectTextIO
9  *
10  * $Date: $
11  * $Revision: $
12  * \author J. Mans - Minnesota
13  *
14  * \todo load and store are HGCalCondObjectContainer not templated.... so now takes only floats!!!
15  */
17 {
18 public:
19  HGCalCondObjectTextIO(const HGCalCondObjectNumberingScheme* scheme) : p_scheme(scheme) { }
20  bool load(const std::string& filename, HGCalCondObjectContainer<float>&); ///<load conditions from file
21  bool store(const std::string& filename, const HGCalCondObjectContainer<float>&); ///< saves condition to file
22 
23  bool load(const std::string& filename, HGCalElectronicsMap&);
24  bool store(const std::string& filename, const HGCalElectronicsMap&);
25 private:
26  const HGCalCondObjectNumberingScheme* p_scheme;
27 };
28 
29 
30 #endif
bool store(const std::string &filename, const HGCalCondObjectContainer< float > &)
saves condition to file
bool load(const std::string &filename, HGCalCondObjectContainer< float > &)
load conditions from file
HGCalCondObjectTextIO(const HGCalCondObjectNumberingScheme *scheme)
provides the conversion between electronics Id to DetId