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 
27 
28 namespace edm{
29  class ParameterSet;
30  class Event;
31  class EventSetup;
32 }
33 
34 //
35 // class decleration
36 //
37 
39  public:
40 
41  EcalWeightXtalGroups* readEcalWeightXtalGroupsFromFile(const char *);
42  EcalTBWeights* readEcalTBWeightsFromFile(const char *);
43  EcalADCToGeVConstant* readEcalADCToGeVConstantFromFile(const char *);
44  EcalIntercalibConstants* readEcalIntercalibConstantsFromFile(const char *, const char *);
45  EcalIntercalibConstantsMC* readEcalIntercalibConstantsMCFromFile(const char *, const char *);
46  EcalGainRatios* readEcalGainRatiosFromFile(const char *);
47  EcalChannelStatus* readEcalChannelStatusFromFile(const char *);
48  void writeToLogFile(std::string , std::string, unsigned long long) ;
49  void writeToLogFileResults(char* ) ;
50  int convertFromConstructionSMToSlot(int ,int );
51 
52  explicit StoreEcalCondition(const edm::ParameterSet& iConfig );
54 
55  virtual void analyze( const edm::Event& evt, const edm::EventSetup& evtSetup);
56  virtual void endJob();
57 
58  private:
59 
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 };
79 #endif
std::vector< std::string > inpFileNameEE_
static void fillHeader(LHERunInfo::Header &header, const char *data, int len=-1)
Definition: LHEReader.cc:163
std::vector< unsigned long long > since_
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
std::vector< std::string > objectName_
std::vector< std::string > inpFileName_
Definition: value.py:1
std::string to_string(char value[])
HLT enums.