CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StoreESCondition.h
Go to the documentation of this file.
1 #ifndef StoreESCondition_h
2 #define StoreESCondition_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 
24 
25 namespace edm {
26  class ParameterSet;
27  class Event;
28  class EventSetup;
29 }
30 
32 
33  public:
34 
36  ESPedestals* readESPedestalsFromFile(const char*);
38  ESGain* readESGainFromFile(const char*);
44  void writeToLogFile(std::string , std::string, unsigned long long) ;
45  void writeToLogFileResults(char* ) ;
46 
47  explicit StoreESCondition(const edm::ParameterSet& iConfig );
49 
50  virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
51  virtual void endJob();
52 
53  private:
54 
55  void fillHeader(char*);
56 
57  std::vector< std::string > objectName_ ;
58  std::vector< std::string > inpFileName_ ;
59  std::vector< std::string > inpFileNameEE_ ;
61  std::vector< unsigned long long > since_; // beginning IOV for objects
63 
64  unsigned int esgain_;
65 
67  std::ostringstream streamOut;
68  streamOut << value;
69  return streamOut.str();
70  }
71 
72 };
73 
74 #endif
ESPedestals * readESPedestalsFromFile(const char *)
Definition: ESGain.h:7
std::vector< unsigned long long > since_
ESGain * readESGainFromFile(const char *)
std::vector< std::string > inpFileName_
Definition: Event.h:16
std::string logfile_
ESTimeSampleWeights * readESTimeSampleWeightsFromFile(const char *)
ESRecHitRatioCuts * readESRecHitRatioCutsFromFile(const char *)
void writeToLogFileResults(char *)
void writeToLogFile(std::string, std::string, unsigned long long)
ESEEIntercalibConstants * readESEEIntercalibConstantsFromFile(const char *)
std::vector< std::string > inpFileNameEE_
unsigned int esgain_
ESMissingEnergyCalibration * readESMissingEnergyFromFile(const char *)
std::vector< std::string > objectName_
ESThresholds * readESThresholdsFromFile(const char *)
void fillHeader(char *)
std::string to_string(char value[])
virtual void endJob()
ESIntercalibConstants * readESIntercalibConstantsFromFile(const char *)
std::string prog_name_
virtual void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup)
ESChannelStatus * readESChannelStatusFromFile(const char *)
StoreESCondition(const edm::ParameterSet &iConfig)