SiStripLorentzAngleCalibrationHistograms

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#ifndef CalibTracker_SiStripLorentzAngle_SiStripLorentzAngleCalibrationStruct_h
#define CalibTracker_SiStripLorentzAngle_SiStripLorentzAngleCalibrationStruct_h

// system includes
#include <map>
#include <vector>

// user includes
#include "DQMServices/Core/interface/DQMStore.h"
#include "CalibFormats/SiStripObjects/interface/SiStripHashedDetId.h"

struct SiStripLorentzAngleCalibrationHistograms {
public:
  SiStripLorentzAngleCalibrationHistograms() = default;

  // B field
  std::string bfield_;

  // APV mode
  std::string apvmode_;

  std::map<uint32_t, int> orientation_;
  std::map<uint32_t, float> la_db_;
  std::map<uint32_t, std::string> moduleLocationType_;

  // histogramming
  std::map<std::string, dqm::reco::MonitorElement*> h1_;
  std::map<std::string, dqm::reco::MonitorElement*> h2_;
  std::map<std::string, dqm::reco::MonitorElement*> p_;

  // These are vectors since std:map::find is expensive
  // we're going to profit of the dense indexing offered by
  // SiStripHashedDetId and index the histogram position
  // with the natural booking order
  SiStripHashedDetId hash_;

  std::vector<dqm::reco::MonitorElement*> h2_ct_w_m_;
  std::vector<dqm::reco::MonitorElement*> h2_ct_var2_m_;
  std::vector<dqm::reco::MonitorElement*> h2_ct_var3_m_;

  std::vector<dqm::reco::MonitorElement*> h2_t_w_m_;
  std::vector<dqm::reco::MonitorElement*> h2_t_var2_m_;
  std::vector<dqm::reco::MonitorElement*> h2_t_var3_m_;

  std::map<std::string, dqm::reco::MonitorElement*> hp_;

  dqm::reco::MonitorElement* h2_byLayerLA_;
  dqm::reco::MonitorElement* h2_byLayerDiff_;

  // info
  std::map<std::string, int> nlayers_;
  std::vector<std::string> modtypes_;
  std::map<std::string, float> la_;
};

#endif