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:
36  ESGain* readESGainFromFile(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
ESGain
Definition: ESGain.h:7
StoreESCondition::fillHeader
void fillHeader(char *)
Definition: StoreESCondition.cc:199
StoreESCondition::readESIntercalibConstantsFromFile
ESIntercalibConstants * readESIntercalibConstantsFromFile(const char *)
Definition: StoreESCondition.cc:377
StoreESCondition::inpFileName_
std::vector< std::string > inpFileName_
Definition: StoreESCondition.h:55
ESMissingEnergyCalibration
Definition: ESMissingEnergyCalibration.h:7
StoreESCondition::logfile_
std::string logfile_
Definition: StoreESCondition.h:59
ESIntercalibConstants.h
edm
HLT enums.
Definition: AlignableModifier.h:19
ESThresholds
Definition: ESThresholds.h:7
EDAnalyzer.h
ESGain.h
ESDetId.h
StoreESCondition::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: StoreESCondition.cc:163
StoreESCondition::StoreESCondition
StoreESCondition(const edm::ParameterSet &iConfig)
Definition: StoreESCondition.cc:18
StoreESCondition::inpFileNameEE_
std::vector< std::string > inpFileNameEE_
Definition: StoreESCondition.h:56
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
StoreESCondition::readESThresholdsFromFile
ESThresholds * readESThresholdsFromFile(const char *)
Definition: StoreESCondition.cc:210
StoreESCondition::readESRecHitRatioCutsFromFile
ESRecHitRatioCuts * readESRecHitRatioCutsFromFile(const char *)
Definition: StoreESCondition.cc:328
ESPedestals.h
StoreESCondition::prog_name_
std::string prog_name_
Definition: StoreESCondition.h:57
StoreESCondition::writeToLogFileResults
void writeToLogFileResults(char *)
Definition: StoreESCondition.cc:186
StoreESCondition::writeToLogFile
void writeToLogFile(std::string, std::string, unsigned long long)
Definition: StoreESCondition.cc:165
StoreESCondition::readESGainFromFile
ESGain * readESGainFromFile(const char *)
Definition: StoreESCondition.cc:351
Event
StoreESCondition::readESMissingEnergyFromFile
ESMissingEnergyCalibration * readESMissingEnergyFromFile(const char *)
Definition: StoreESCondition.cc:265
ESRecHitRatioCuts
Definition: ESRecHitRatioCuts.h:7
StoreESCondition::endJob
void endJob() override
Definition: StoreESCondition.cc:34
StoreESCondition::readESEEIntercalibConstantsFromFile
ESEEIntercalibConstants * readESEEIntercalibConstantsFromFile(const char *)
Definition: StoreESCondition.cc:220
StoreESCondition::esgain_
unsigned int esgain_
Definition: StoreESCondition.h:61
StoreESCondition::objectName_
std::vector< std::string > objectName_
Definition: StoreESCondition.h:54
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ESRecHitRatioCuts.h
ESMissingEnergyCalibration.h
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
StoreESCondition::readESChannelStatusFromFile
ESChannelStatus * readESChannelStatusFromFile(const char *)
Definition: StoreESCondition.cc:405
ESTimeSampleWeights
Definition: ESTimeSampleWeights.h:7
ESChannelStatus.h
value
Definition: value.py:1
edm::EventSetup
Definition: EventSetup.h:58
ESEEIntercalibConstants.h
StoreESCondition
Definition: StoreESCondition.h:31
ESCondObjectContainer< ESPedestal >
StoreESCondition::to_string
std::string to_string(char value[])
Definition: StoreESCondition.h:63
ESTimeSampleWeights.h
StoreESCondition::readESTimeSampleWeightsFromFile
ESTimeSampleWeights * readESTimeSampleWeightsFromFile(const char *)
Definition: StoreESCondition.cc:362
relativeConstraints.value
value
Definition: relativeConstraints.py:53
StoreESCondition::readESPedestalsFromFile
ESPedestals * readESPedestalsFromFile(const char *)
Definition: StoreESCondition.cc:282
StoreESCondition::~StoreESCondition
~StoreESCondition() override
Definition: StoreESCondition.cc:161
ESEEIntercalibConstants
Definition: ESEEIntercalibConstants.h:7
EventSetup
edm::Event
Definition: Event.h:73
StoreESCondition::since_
std::vector< unsigned long long > since_
Definition: StoreESCondition.h:58
ESThresholds.h