CMS 3D CMS Logo

StoreESCondition.h
Go to the documentation of this file.
1 #ifndef CondTools_Ecal_StoreESCondition_h
2 #define CondTools_Ecal_StoreESCondition_h
3 
5 
6 #include <string>
7 #include <map>
8 #include <memory>
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  std::shared_ptr<ESThresholds> readESThresholdsFromFile(const char*);
34  std::shared_ptr<ESPedestals> readESPedestalsFromFile(const char*);
35  std::shared_ptr<ESRecHitRatioCuts> readESRecHitRatioCutsFromFile(const char*);
36  std::shared_ptr<ESGain> readESGainFromFile(const char*);
37  std::shared_ptr<ESTimeSampleWeights> readESTimeSampleWeightsFromFile(const char*);
38  std::shared_ptr<ESChannelStatus> readESChannelStatusFromFile(const char*);
39  std::shared_ptr<ESIntercalibConstants> readESIntercalibConstantsFromFile(const char*);
40  std::shared_ptr<ESMissingEnergyCalibration> readESMissingEnergyFromFile(const char*);
41  std::shared_ptr<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
std::shared_ptr< ESTimeSampleWeights > readESTimeSampleWeightsFromFile(const char *)
std::shared_ptr< ESGain > readESGainFromFile(const char *)
std::shared_ptr< ESThresholds > readESThresholdsFromFile(const char *)
std::vector< unsigned long long > since_
std::shared_ptr< ESMissingEnergyCalibration > readESMissingEnergyFromFile(const char *)
std::string logfile_
std::vector< std::string > inpFileName_
std::shared_ptr< ESRecHitRatioCuts > readESRecHitRatioCutsFromFile(const char *)
std::shared_ptr< ESPedestals > readESPedestalsFromFile(const char *)
Definition: value.py:1
std::shared_ptr< ESIntercalibConstants > readESIntercalibConstantsFromFile(const char *)
void writeToLogFileResults(char *)
void writeToLogFile(std::string, std::string, unsigned long long)
std::shared_ptr< ESEEIntercalibConstants > readESEEIntercalibConstantsFromFile(const char *)
std::vector< std::string > objectName_
~StoreESCondition() override
unsigned int esgain_
HLT enums.
std::shared_ptr< ESChannelStatus > readESChannelStatusFromFile(const char *)
void fillHeader(char *)
std::string to_string(char value[])
std::string prog_name_
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
StoreESCondition(const edm::ParameterSet &iConfig)
std::vector< std::string > inpFileNameEE_
void endJob() override