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 } // namespace edm
30 
32 public:
33  ESThresholds* readESThresholdsFromFile(const char*);
34  ESPedestals* readESPedestalsFromFile(const char*);
35  ESRecHitRatioCuts* readESRecHitRatioCutsFromFile(const char*);
36  ESGain* readESGainFromFile(const char*);
37  ESTimeSampleWeights* readESTimeSampleWeightsFromFile(const char*);
38  ESChannelStatus* readESChannelStatusFromFile(const char*);
39  ESIntercalibConstants* readESIntercalibConstantsFromFile(const char*);
40  ESMissingEnergyCalibration* readESMissingEnergyFromFile(const char*);
41  ESEEIntercalibConstants* readESEEIntercalibConstantsFromFile(const char*);
42  void writeToLogFile(std::string, std::string, unsigned long long);
43  void writeToLogFileResults(char*);
44 
45  explicit StoreESCondition(const edm::ParameterSet& iConfig);
46  ~StoreESCondition() override;
47 
48  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
49  void endJob() override;
50 
51 private:
52  void fillHeader(char*);
53 
54  std::vector<std::string> objectName_;
55  std::vector<std::string> inpFileName_;
56  std::vector<std::string> inpFileNameEE_;
58  std::vector<unsigned long long> since_; // beginning IOV for objects
60 
61  unsigned int esgain_;
62 
64  std::ostringstream streamOut;
65  streamOut << value;
66  return streamOut.str();
67  }
68 };
69 
70 #endif
static void fillHeader(LHERunInfo::Header &header, const char *data, int len=-1)
Definition: LHEReader.cc:156
Definition: ESGain.h:7
std::vector< unsigned long long > since_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
std::string logfile_
std::vector< std::string > inpFileName_
Definition: value.py:1
std::vector< std::string > objectName_
unsigned int esgain_
HLT enums.
std::string to_string(char value[])
std::string prog_name_
std::vector< std::string > inpFileNameEE_