CMS 3D CMS Logo

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 
35  ESThresholds* readESThresholdsFromFile(const char*);
36  ESPedestals* readESPedestalsFromFile(const char*);
37  ESRecHitRatioCuts* readESRecHitRatioCutsFromFile(const char*);
38  ESGain* readESGainFromFile(const char*);
39  ESTimeSampleWeights* readESTimeSampleWeightsFromFile(const char*);
40  ESChannelStatus* readESChannelStatusFromFile(const char *);
41  ESIntercalibConstants* readESIntercalibConstantsFromFile(const char*);
42  ESMissingEnergyCalibration* readESMissingEnergyFromFile(const char*);
43  ESEEIntercalibConstants* readESEEIntercalibConstantsFromFile(const char*);
44  void writeToLogFile(std::string , std::string, unsigned long long) ;
45  void writeToLogFileResults(char* ) ;
46 
47  explicit StoreESCondition(const edm::ParameterSet& iConfig );
48  ~StoreESCondition() override;
49 
50  void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup) override;
51  void endJob() override;
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
static void fillHeader(LHERunInfo::Header &header, const char *data, int len=-1)
Definition: LHEReader.cc:168
Definition: ESGain.h:7
std::vector< unsigned long long > since_
std::vector< std::string > inpFileName_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::string logfile_
Definition: value.py:1
std::vector< std::string > inpFileNameEE_
unsigned int esgain_
HLT enums.
std::vector< std::string > objectName_
std::string to_string(char value[])
std::string prog_name_