test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MeasureLA.h
Go to the documentation of this file.
1 #ifndef CalibTracker_SiStripLorentzAngle_MeasureLA_h
2 #define CalibTracker_SiStripLorentzAngle_MeasureLA_h
3 
6 
11 
12 namespace sistrip {
13 
14 class MeasureLA : public edm::ESProducer {
15 
16  public:
17 
18  explicit MeasureLA(const edm::ParameterSet&);
19  boost::shared_ptr<SiStripLorentzAngle> produce(const SiStripLorentzAngleRcd&);
20 
21  private:
22 
24  static std::string granularity(int32_t g) { switch(g) {
25  case LAYER: return "_layer";
26  case MODULE: return "_module";
27  case MODULESUMMARY: return "_moduleSummary";
28  } return "";};
29 
30  void store_calibrations();
32 
34  void process_reports() const;
35  template<class T>
36  void write_report_text(const std::string, const LA_Filler_Fitter::Method&, const std::map<T,LA_Filler_Fitter::Result>&) const;
39 
40  void calibrate(const std::pair<unsigned,LA_Filler_Fitter::Method>, LA_Filler_Fitter::Result&) const;
41  static std::pair<unsigned,LA_Filler_Fitter::Method> calibration_key(const std::string layer, const LA_Filler_Fitter::Method);
42  static std::pair<unsigned,LA_Filler_Fitter::Method> calibration_key(const uint32_t detid, const LA_Filler_Fitter::Method);
43 
44  const std::vector<std::string> inputFiles;
48  std::map<std::pair<uint32_t,LA_Filler_Fitter::Method>,float> slope, offset, error_scaling;
49  int32_t methods;
51  const float localybin;
52  const unsigned stripsperbin,maxEvents;
54 
55 };
56 
57 }
58 #endif
const edm::FileInPath fp_
Definition: MeasureLA.h:46
static std::pair< unsigned, LA_Filler_Fitter::Method > calibration_key(const std::string layer, const LA_Filler_Fitter::Method)
Definition: MeasureLA.cc:171
void calibrate(const std::pair< unsigned, LA_Filler_Fitter::Method >, LA_Filler_Fitter::Result &) const
Definition: MeasureLA.cc:165
const unsigned stripsperbin
Definition: MeasureLA.h:52
const edm::VParameterSet measurementPreferences
Definition: MeasureLA.h:47
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:33
const std::vector< std::string > inputFiles
Definition: MeasureLA.h:44
const unsigned maxEvents
Definition: MeasureLA.h:52
const float localybin
Definition: MeasureLA.h:51
void process_reports() const
Definition: MeasureLA.cc:87
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > slope
Definition: MeasureLA.h:48
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
void store_methods_and_granularity(const edm::VParameterSet &)
Definition: MeasureLA.cc:11
const edm::VParameterSet calibrations
Definition: MeasureLA.h:47
MeasureLA(const edm::ParameterSet &)
Definition: MeasureLA.cc:19
const edm::VParameterSet reports
Definition: MeasureLA.h:47
const std::string inFileLocation
Definition: MeasureLA.h:45
void write_report_text_ms(const std::string, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:130
void store_calibrations()
Definition: MeasureLA.cc:147
void summarize_module_muH_byLayer()
Definition: MeasureLA.cc:64
boost::shared_ptr< SiStripLorentzAngle > produce(const SiStripLorentzAngleRcd &)
Definition: MeasureLA.cc:49
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > offset
Definition: MeasureLA.h:48
void write_report_plots(const std::string, const LA_Filler_Fitter::Method, const GRANULARITY) const
Definition: MeasureLA.cc:107
void write_report_text(const std::string, const LA_Filler_Fitter::Method &, const std::map< T, LA_Filler_Fitter::Result > &) const
Definition: MeasureLA.cc:117
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > error_scaling
Definition: MeasureLA.h:48
Definition: Book.h:16