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
LA_Filler_Fitter::Method
Method
Definition: LA_Filler_Fitter.h:50
sistrip::MeasureLA::GRANULARITY
GRANULARITY
Definition: MeasureLA.h:23
sistrip::MeasureLA::byLayer
bool byLayer
Definition: MeasureLA.h:60
sistrip::MeasureLA::MODULESUMMARY
Definition: MeasureLA.h:23
sistrip::MeasureLA::inputFiles
const std::vector< std::string > inputFiles
Definition: MeasureLA.h:54
sistrip::MeasureLA::MODULE
Definition: MeasureLA.h:23
LA_Filler_Fitter::Result
Definition: LA_Filler_Fitter.h:80
sistrip::MeasureLA::methods
int32_t methods
Definition: MeasureLA.h:59
LA_Filler_Fitter.h
sistrip::MeasureLA::summarize_module_muH_byLayer
void summarize_module_muH_byLayer(const LA_Filler_Fitter &)
Definition: MeasureLA.cc:67
TrackerTopology
Definition: TrackerTopology.h:16
sistrip::MeasureLA::store_calibrations
void store_calibrations()
Definition: MeasureLA.cc:155
ESProducer.h
sistrip::MeasureLA::byModule
bool byModule
Definition: MeasureLA.h:60
edm::VParameterSet
std::vector< ParameterSet > VParameterSet
Definition: ParameterSet.h:34
sistrip::MeasureLA::process_reports
void process_reports() const
Definition: MeasureLA.cc:89
Book
Definition: Book.h:16
sistrip::MeasureLA::calibrate
void calibrate(const std::pair< unsigned, LA_Filler_Fitter::Method >, LA_Filler_Fitter::Result &) const
Definition: MeasureLA.cc:174
sistrip::MeasureLA::MeasureLA
MeasureLA(const edm::ParameterSet &)
Definition: MeasureLA.cc:21
edm::FileInPath
Definition: FileInPath.h:64
sistrip::MeasureLA::book
Book book
Definition: MeasureLA.h:63
sistrip::MeasureLA::offset
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > offset
Definition: MeasureLA.h:58
TrackerTopology.h
sistrip::MeasureLA::stripsperbin
const unsigned stripsperbin
Definition: MeasureLA.h:62
sistrip::MeasureLA::localybin
const float localybin
Definition: MeasureLA.h:61
sistrip::MeasureLA::reports
const edm::VParameterSet reports
Definition: MeasureLA.h:57
sistrip::MeasureLA
Definition: MeasureLA.h:17
sistrip::MeasureLA::maxEvents
const unsigned maxEvents
Definition: MeasureLA.h:62
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
sistrip::MeasureLA::slope
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > slope
Definition: MeasureLA.h:58
SiStripLorentzAngleRcd.h
sistrip::MeasureLA::produce
std::unique_ptr< SiStripLorentzAngle > produce(const SiStripLorentzAngleRcd &)
Definition: MeasureLA.cc:53
edm::ParameterSet
Definition: ParameterSet.h:47
sistrip::MeasureLA::inFileLocation
const std::string inFileLocation
Definition: MeasureLA.h:55
sistrip::MeasureLA::measurementPreferences
const edm::VParameterSet measurementPreferences
Definition: MeasureLA.h:57
sistrip::MeasureLA::LAYER
Definition: MeasureLA.h:23
sistrip::MeasureLA::write_report_text
void write_report_text(const std::string, const LA_Filler_Fitter::Method &, const std::map< T, LA_Filler_Fitter::Result > &) const
Definition: MeasureLA.cc:129
Book.h
SiStripLorentzAngleRcd
Definition: SiStripCondDataRecords.h:25
sistrip::MeasureLA::write_report_plots
void write_report_plots(const std::string, const LA_Filler_Fitter::Method, const GRANULARITY) const
Definition: MeasureLA.cc:118
sistrip::MeasureLA::calibrations
const edm::VParameterSet calibrations
Definition: MeasureLA.h:57
sistrip::MeasureLA::write_report_text_ms
void write_report_text_ms(const std::string, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:142
LA_Filler_Fitter
Definition: LA_Filler_Fitter.h:14
sistrip::MeasureLA::tTopo_
TrackerTopology tTopo_
Definition: MeasureLA.h:65
edm::ESProducer
Definition: ESProducer.h:104
sistrip::MeasureLA::error_scaling
std::map< std::pair< uint32_t, LA_Filler_Fitter::Method >, float > error_scaling
Definition: MeasureLA.h:58
ParameterSet.h
sistrip
sistrip classes
Definition: SiStripQualityHelpers.h:14
sistrip::MeasureLA::store_methods_and_granularity
void store_methods_and_granularity(const edm::VParameterSet &)
Definition: MeasureLA.cc:13
SiStripLorentzAngle.h
sistrip::MeasureLA::granularity
static std::string granularity(int32_t g)
Definition: MeasureLA.h:24
sistrip::MeasureLA::calibration_key
std::pair< unsigned, LA_Filler_Fitter::Method > calibration_key(const std::string layer, const LA_Filler_Fitter::Method) const
Definition: MeasureLA.cc:181
sistrip::MeasureLA::fp_
const edm::FileInPath fp_
Definition: MeasureLA.h:56
g
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