CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StoreEcalCondition.h
Go to the documentation of this file.
1 #ifndef StoreEcalCondition_h
2 #define StoreEcalCondition_h
3 
5 
6 #include <string>
7 #include <map>
8 #include <iostream>
9 #include <fstream>
10 #include <cstdio>
11 #include <typeinfo>
12 #include <sstream>
13 
27 
28 namespace edm{
29  class ParameterSet;
30  class Event;
31  class EventSetup;
32 }
33 
34 //
35 // class decleration
36 //
37 
39  public:
40 
48  void writeToLogFile(std::string , std::string, unsigned long long) ;
49  void writeToLogFileResults(char* ) ;
50  int convertFromConstructionSMToSlot(int ,int );
51 
52  explicit StoreEcalCondition(const edm::ParameterSet& iConfig );
54 
55  virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
56  virtual void endJob();
57 
58  private:
59 
60  void fillHeader(char*);
61 
62  std::vector< std::string > objectName_ ;
63  // it can be of type: EcalWeightXtalGroups, EcalTBWeights, EcalADCToGeVConstant, EcalIntercalibConstants, EcalGainRatios
64  std::vector< std::string > inpFileName_ ;
65  std::vector< std::string > inpFileNameEE_ ;
66  std::string prog_name_ ;
67  int sm_constr_; // SM number from data file
68  int sm_slot_; // SM slot to map data to
69  std::vector< unsigned long long > since_; // beginning IOV for objects
70  std::string logfile_;
71 
72  std::string to_string( char value[]) {
73  std::ostringstream streamOut;
74  streamOut << value;
75  return streamOut.str();
76  }
77 
78 };
79 #endif
EcalIntercalibConstantsMC * readEcalIntercalibConstantsMCFromFile(const char *, const char *)
std::vector< std::string > inpFileNameEE_
std::vector< unsigned long long > since_
EcalChannelStatus * readEcalChannelStatusFromFile(const char *)
void writeToLogFileResults(char *)
EcalIntercalibConstants * readEcalIntercalibConstantsFromFile(const char *, const char *)
StoreEcalCondition(const edm::ParameterSet &iConfig)
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
std::vector< std::string > objectName_
EcalWeightXtalGroups * readEcalWeightXtalGroupsFromFile(const char *)
EcalGainRatios * readEcalGainRatiosFromFile(const char *)
std::vector< std::string > inpFileName_
EcalADCToGeVConstant * readEcalADCToGeVConstantFromFile(const char *)
EcalTBWeights * readEcalTBWeightsFromFile(const char *)
void writeToLogFile(std::string, std::string, unsigned long long)
std::string to_string(char value[])
int convertFromConstructionSMToSlot(int, int)