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 
19  public:
20 
21  explicit MeasureLA(const edm::ParameterSet&);
22  std::unique_ptr<SiStripLorentzAngle> produce(const SiStripLorentzAngleRcd&);
23 
24  private:
25 
27  static std::string granularity(int32_t g) { switch(g) {
28  case LAYER: return "_layer";
29  case MODULE: return "_module";
30  case MODULESUMMARY: return "_moduleSummary";
31  } return "";};
32 
33  void store_calibrations();
35 
37  void process_reports() const;
38  template<class T>
39  void write_report_text(const std::string, const LA_Filler_Fitter::Method&, const std::map<T,LA_Filler_Fitter::Result>&) const;
42 
43  void calibrate(const std::pair<unsigned,LA_Filler_Fitter::Method>, LA_Filler_Fitter::Result&) const;
44  std::pair<unsigned,LA_Filler_Fitter::Method> calibration_key(const std::string layer, const LA_Filler_Fitter::Method) const;
45  std::pair<unsigned,LA_Filler_Fitter::Method> calibration_key(const uint32_t detid, const LA_Filler_Fitter::Method) const ;
46 
47  const std::vector<std::string> inputFiles;
51  std::map<std::pair<uint32_t,LA_Filler_Fitter::Method>,float> slope, offset, error_scaling;
52  int32_t methods;
54  const float localybin;
55  const unsigned stripsperbin,maxEvents;
57 
59 };
60 
61 }
62 #endif
const edm::FileInPath fp_
Definition: MeasureLA.h:49
void calibrate(const std::pair< unsigned, LA_Filler_Fitter::Method >, LA_Filler_Fitter::Result &) const
Definition: MeasureLA.cc:170
void summarize_module_muH_byLayer(const LA_Filler_Fitter &)
Definition: MeasureLA.cc:71
const unsigned stripsperbin
Definition: MeasureLA.h:55
const edm::VParameterSet measurementPreferences
Definition: MeasureLA.h:50
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
const std::vector< std::string > inputFiles
Definition: MeasureLA.h:47
const unsigned maxEvents
Definition: MeasureLA.h:55
const float localybin
Definition: MeasureLA.h:54
void process_reports() const
Definition: MeasureLA.cc:93
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > slope
Definition: MeasureLA.h:51
static std::string granularity(int32_t g)
Definition: MeasureLA.h:27
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:14
const edm::VParameterSet calibrations
Definition: MeasureLA.h:50
MeasureLA(const edm::ParameterSet &)
Definition: MeasureLA.cc:22
const edm::VParameterSet reports
Definition: MeasureLA.h:50
const std::string inFileLocation
Definition: MeasureLA.h:48
std::unique_ptr< SiStripLorentzAngle > produce(const SiStripLorentzAngleRcd &)
Definition: MeasureLA.cc:53
void write_report_text_ms(const std::string, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:135
void store_calibrations()
Definition: MeasureLA.cc:152
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > offset
Definition: MeasureLA.h:51
void write_report_plots(const std::string, const LA_Filler_Fitter::Method, const GRANULARITY) const
Definition: MeasureLA.cc:113
void write_report_text(const std::string, const LA_Filler_Fitter::Method &, const std::map< T, LA_Filler_Fitter::Result > &) const
Definition: MeasureLA.cc:123
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > error_scaling
Definition: MeasureLA.h:51
Definition: Book.h:16
std::pair< unsigned, LA_Filler_Fitter::Method > calibration_key(const std::string layer, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:176
TrackerTopology tTopo_
Definition: MeasureLA.h:58