CMS 3D CMS Logo

MeasureLA.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripLorentzAngle_MeasureLA_h
2 #define CalibTracker_SiStripLorentzAngle_MeasureLA_h
3 
6 
12 
13 #include <memory>
14 
15 namespace sistrip {
16 
17  class MeasureLA : public edm::ESProducer {
18  public:
19  explicit MeasureLA(const edm::ParameterSet&);
20  std::unique_ptr<SiStripLorentzAngle> produce(const SiStripLorentzAngleRcd&);
21 
22  private:
23  enum GRANULARITY { LAYER = 0, MODULE = 1, MODULESUMMARY = 2 };
24  static std::string granularity(int32_t g) {
25  switch (g) {
26  case LAYER:
27  return "_layer";
28  case MODULE:
29  return "_module";
30  case MODULESUMMARY:
31  return "_moduleSummary";
32  }
33  return "";
34  };
35 
36  void store_calibrations();
38 
40  void process_reports() const;
41  template <class T>
42  void write_report_text(const std::string,
44  const std::map<T, LA_Filler_Fitter::Result>&) const;
47 
48  void calibrate(const std::pair<unsigned, LA_Filler_Fitter::Method>, LA_Filler_Fitter::Result&) const;
49  std::pair<unsigned, LA_Filler_Fitter::Method> calibration_key(const std::string layer,
50  const LA_Filler_Fitter::Method) const;
51  std::pair<unsigned, LA_Filler_Fitter::Method> calibration_key(const uint32_t detid,
52  const LA_Filler_Fitter::Method) const;
53 
54  const std::vector<std::string> inputFiles;
58  std::map<std::pair<uint32_t, LA_Filler_Fitter::Method>, float> slope, offset, error_scaling;
59  int32_t methods;
61  const float localybin;
62  const unsigned stripsperbin, maxEvents;
64 
66  };
67 
68 } // namespace sistrip
69 #endif
const edm::FileInPath fp_
Definition: MeasureLA.h:56
void calibrate(const std::pair< unsigned, LA_Filler_Fitter::Method >, LA_Filler_Fitter::Result &) const
Definition: MeasureLA.cc:173
void summarize_module_muH_byLayer(const LA_Filler_Fitter &)
Definition: MeasureLA.cc:66
const unsigned stripsperbin
Definition: MeasureLA.h:62
const edm::VParameterSet measurementPreferences
Definition: MeasureLA.h:57
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
const std::vector< std::string > inputFiles
Definition: MeasureLA.h:54
const unsigned maxEvents
Definition: MeasureLA.h:62
const float localybin
Definition: MeasureLA.h:61
void process_reports() const
Definition: MeasureLA.cc:88
static std::string granularity(int32_t g)
Definition: MeasureLA.h:24
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
sistrip classes
void store_methods_and_granularity(const edm::VParameterSet &)
Definition: MeasureLA.cc:12
const edm::VParameterSet calibrations
Definition: MeasureLA.h:57
MeasureLA(const edm::ParameterSet &)
Definition: MeasureLA.cc:20
const edm::VParameterSet reports
Definition: MeasureLA.h:57
const std::string inFileLocation
Definition: MeasureLA.h:55
std::unique_ptr< SiStripLorentzAngle > produce(const SiStripLorentzAngleRcd &)
Definition: MeasureLA.cc:52
void write_report_text_ms(const std::string, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:141
void store_calibrations()
Definition: MeasureLA.cc:154
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > error_scaling
Definition: MeasureLA.h:58
void write_report_plots(const std::string, const LA_Filler_Fitter::Method, const GRANULARITY) const
Definition: MeasureLA.cc:117
void write_report_text(const std::string, const LA_Filler_Fitter::Method &, const std::map< T, LA_Filler_Fitter::Result > &) const
Definition: MeasureLA.cc:128
Definition: Book.h:16
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > slope
Definition: MeasureLA.h:58
std::pair< unsigned, LA_Filler_Fitter::Method > calibration_key(const std::string layer, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:180
TrackerTopology tTopo_
Definition: MeasureLA.h:65
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > offset
Definition: MeasureLA.h:58