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 }
34 
35 //
36 // class decleration
37 //
38 
40  public:
41 
42  EcalWeightXtalGroups* readEcalWeightXtalGroupsFromFile(const char *);
43  EcalTBWeights* readEcalTBWeightsFromFile(const char *);
44  EcalADCToGeVConstant* readEcalADCToGeVConstantFromFile(const char *);
45  EcalIntercalibConstants* readEcalIntercalibConstantsFromFile(const char *, const char *);
46  EcalPFRecHitThresholds* readEcalPFRecHitThresholdsFromFile(const char *, const char *);
47  EcalIntercalibConstantsMC* readEcalIntercalibConstantsMCFromFile(const char *, const char *);
48  EcalGainRatios* readEcalGainRatiosFromFile(const char *);
49  EcalChannelStatus* readEcalChannelStatusFromFile(const char *);
50  void writeToLogFile(std::string , std::string, unsigned long long) ;
51  void writeToLogFileResults(char* ) ;
52  int convertFromConstructionSMToSlot(int ,int );
53 
54  explicit StoreEcalCondition(const edm::ParameterSet& iConfig );
55  ~StoreEcalCondition() override;
56 
57  void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup) override;
58  void endJob() override;
59 
60  private:
61 
62  void fillHeader(char*);
63 
64  std::vector< std::string > objectName_ ;
65  // it can be of type: EcalWeightXtalGroups, EcalTBWeights, EcalADCToGeVConstant, EcalIntercalibConstants, EcalGainRatios
66  std::vector< std::string > inpFileName_ ;
67  std::vector< std::string > inpFileNameEE_ ;
69  int sm_constr_; // SM number from data file
70  int sm_slot_; // SM slot to map data to
71  std::vector< unsigned long long > since_; // beginning IOV for objects
73 
75  std::ostringstream streamOut;
76  streamOut << value;
77  return streamOut.str();
78  }
79 
80 };
81 #endif
std::vector< std::string > inpFileNameEE_
static void fillHeader(LHERunInfo::Header &header, const char *data, int len=-1)
Definition: LHEReader.cc:168
std::vector< unsigned long long > since_
std::vector< std::string > objectName_
std::vector< std::string > inpFileName_
Definition: value.py:1
std::string to_string(char value[])
HLT enums.
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override