CMS 3D CMS Logo

StoreEcalCondition.h
Go to the documentation of this file.
1 #ifndef StoreEcalCondition_h
2 #define StoreEcalCondition_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 
28 
29 namespace edm {
30  class ParameterSet;
31  class Event;
32  class EventSetup;
33 } // namespace edm
34 
35 //
36 // class decleration
37 //
38 
40 public:
49  void writeToLogFile(std::string, std::string, unsigned long long);
50  void writeToLogFileResults(char*);
51  int convertFromConstructionSMToSlot(int, int);
52 
53  explicit StoreEcalCondition(const edm::ParameterSet& iConfig);
54  ~StoreEcalCondition() override;
55 
56  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
57  void endJob() override;
58 
59 private:
60  void fillHeader(char*);
61 
62  std::vector<std::string> objectName_;
63  // it can be of type: EcalWeightXtalGroups, EcalTBWeights, EcalADCToGeVConstant, EcalIntercalibConstants, EcalGainRatios
64  std::vector<std::string> inpFileName_;
65  std::vector<std::string> inpFileNameEE_;
67  int sm_constr_; // SM number from data file
68  int sm_slot_; // SM slot to map data to
69  std::vector<unsigned long long> since_; // beginning IOV for objects
71 
73  std::ostringstream streamOut;
74  streamOut << value;
75  return streamOut.str();
76  }
77 };
78 #endif
EcalIntercalibConstantsMC.h
StoreEcalCondition::sm_slot_
int sm_slot_
Definition: StoreEcalCondition.h:68
StoreEcalCondition::convertFromConstructionSMToSlot
int convertFromConstructionSMToSlot(int, int)
Definition: StoreEcalCondition.cc:907
EcalPedestals.h
StoreEcalCondition::analyze
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: StoreEcalCondition.cc:154
EcalIntercalibConstants.h
edm
HLT enums.
Definition: AlignableModifier.h:19
EBDetId.h
StoreEcalCondition::to_string
std::string to_string(char value[])
Definition: StoreEcalCondition.h:72
StoreEcalCondition::sm_constr_
int sm_constr_
Definition: StoreEcalCondition.h:67
StoreEcalCondition::readEcalIntercalibConstantsMCFromFile
EcalIntercalibConstantsMC * readEcalIntercalibConstantsMCFromFile(const char *, const char *)
Definition: StoreEcalCondition.cc:749
EcalADCToGeVConstant
Definition: EcalADCToGeVConstant.h:13
EDAnalyzer.h
StoreEcalCondition::readEcalGainRatiosFromFile
EcalGainRatios * readEcalGainRatiosFromFile(const char *)
Definition: StoreEcalCondition.cc:927
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
StoreEcalCondition::logfile_
std::string logfile_
Definition: StoreEcalCondition.h:70
EcalWeightXtalGroups.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalTBWeights.h
StoreEcalCondition::inpFileName_
std::vector< std::string > inpFileName_
Definition: StoreEcalCondition.h:64
EcalPFRecHitThresholds.h
StoreEcalCondition::readEcalTBWeightsFromFile
EcalTBWeights * readEcalTBWeightsFromFile(const char *)
Definition: StoreEcalCondition.cc:315
StoreEcalCondition::~StoreEcalCondition
~StoreEcalCondition() override
Definition: StoreEcalCondition.cc:151
StoreEcalCondition::writeToLogFile
void writeToLogFile(std::string, std::string, unsigned long long)
Definition: StoreEcalCondition.cc:159
StoreEcalCondition::readEcalPFRecHitThresholdsFromFile
EcalPFRecHitThresholds * readEcalPFRecHitThresholdsFromFile(const char *, const char *)
Definition: StoreEcalCondition.cc:522
Event
StoreEcalCondition::inpFileNameEE_
std::vector< std::string > inpFileNameEE_
Definition: StoreEcalCondition.h:65
EcalMGPAGainRatio.h
EcalXtalGroupId.h
StoreEcalCondition::prog_name_
std::string prog_name_
Definition: StoreEcalCondition.h:66
EcalADCToGeVConstant.h
edm::ParameterSet
Definition: ParameterSet.h:47
StoreEcalCondition::fillHeader
void fillHeader(char *)
Definition: StoreEcalCondition.cc:205
ParameterSet
Definition: Functions.h:16
StoreEcalCondition::endJob
void endJob() override
Definition: StoreEcalCondition.cc:39
StoreEcalCondition::since_
std::vector< unsigned long long > since_
Definition: StoreEcalCondition.h:69
StoreEcalCondition::StoreEcalCondition
StoreEcalCondition(const edm::ParameterSet &iConfig)
Definition: StoreEcalCondition.cc:21
StoreEcalCondition::readEcalADCToGeVConstantFromFile
EcalADCToGeVConstant * readEcalADCToGeVConstantFromFile(const char *)
Definition: StoreEcalCondition.cc:463
value
Definition: value.py:1
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalGainRatios.h
StoreEcalCondition::readEcalChannelStatusFromFile
EcalChannelStatus * readEcalChannelStatusFromFile(const char *)
Definition: StoreEcalCondition.cc:1068
StoreEcalCondition::readEcalIntercalibConstantsFromFile
EcalIntercalibConstants * readEcalIntercalibConstantsFromFile(const char *, const char *)
Definition: StoreEcalCondition.cc:591
EcalWeight.h
relativeConstraints.value
value
Definition: relativeConstraints.py:53
EventSetup
StoreEcalCondition
Definition: StoreEcalCondition.h:39
edm::Event
Definition: Event.h:73
StoreEcalCondition::readEcalWeightXtalGroupsFromFile
EcalWeightXtalGroups * readEcalWeightXtalGroupsFromFile(const char *)
Definition: StoreEcalCondition.cc:249
EcalWeightSet.h
EcalChannelStatus.h
StoreEcalCondition::writeToLogFileResults
void writeToLogFileResults(char *)
Definition: StoreEcalCondition.cc:189
StoreEcalCondition::objectName_
std::vector< std::string > objectName_
Definition: StoreEcalCondition.h:62
EcalTBWeights
Definition: EcalTBWeights.h:15