CMS 3D CMS Logo

PhiSymmetryCalibration_step2.h
Go to the documentation of this file.
8 
9 class TH1F;
10 class TH2F;
11 
13 public:
16 
17  void beginJob() override;
18  void endJob() override;
19 
20  void analyze(const edm::Event&, const edm::EventSetup&) override;
21 
22  void fillHistos();
23  void fillConstantsHistos();
24  void setupResidHistos();
25  void outResidHistos();
26 
27  void setUp(const edm::EventSetup& setup);
28 
29  void readEtSums();
30 
31 private:
32  // Transverse energy sum arrays
38 
41 
44 
47 
50 
51  // calibration const not corrected for k
54 
55  // calibration constants not multiplied by old ones
58 
60 
61  std::vector<DetId> barrelCells;
62  std::vector<DetId> endcapCells;
63 
64  bool firstpass_;
66 
69 
72 
75 
78 
82 
84  std::vector<TH1F*> miscal_resid_barl_histos;
85  std::vector<TH2F*> correl_barl_histos;
86 
87  std::vector<TH1F*> miscal_resid_endc_histos;
88  std::vector<TH2F*> correl_endc_histos;
89 };
kBarlRings
static const int kBarlRings
Definition: EcalGeomPhiSymHelper.h:7
EcalGeomPhiSymHelper.h
ESHandle.h
PhiSymmetryCalibration_step2::esumMean_barl_
double esumMean_barl_[kBarlRings]
Definition: PhiSymmetryCalibration_step2.h:45
EcalIntercalibConstants.h
PhiSymmetryCalibration_step2::nhits_barl_
unsigned int nhits_barl_[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration_step2.h:39
PhiSymmetryCalibration_step2::initialmiscalibfile_
std::string initialmiscalibfile_
Definition: PhiSymmetryCalibration_step2.h:81
PhiSymmetryCalibration_step2::firstpass_
bool firstpass_
Definition: PhiSymmetryCalibration_step2.h:64
PhiSymmetryCalibration_step2::fillHistos
void fillHistos()
Definition: PhiSymmetryCalibration_step2.cc:379
PhiSymmetryCalibration_step2::setupResidHistos
void setupResidHistos()
Definition: PhiSymmetryCalibration_step2.cc:777
EDAnalyzer.h
EcalGeomPhiSymHelper
Definition: EcalGeomPhiSymHelper.h:19
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
PhiSymmetryCalibration_step2::epsilon_M_barl
float epsilon_M_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration_step2.h:56
kEndcWedgesY
static const int kEndcWedgesY
Definition: EcalGeomPhiSymHelper.h:12
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
PhiSymmetryCalibration_step2::oldcalibfile_
std::string oldcalibfile_
Definition: PhiSymmetryCalibration_step2.h:68
PhiSymmetryCalibration_step2::~PhiSymmetryCalibration_step2
~PhiSymmetryCalibration_step2() override
Definition: PhiSymmetryCalibration_step2.cc:21
PhiSymmetryCalibration_step2::epsilon_M_endc
float epsilon_M_endc[kEndcWedgesX][kEndcWedgesY][kSides]
Definition: PhiSymmetryCalibration_step2.h:57
PhiSymmetryCalibration_step2::PhiSymmetryCalibration_step2
PhiSymmetryCalibration_step2(const edm::ParameterSet &iConfig)
Definition: PhiSymmetryCalibration_step2.cc:23
PhiSymmetryCalibration_step2::barrelCells
std::vector< DetId > barrelCells
Definition: PhiSymmetryCalibration_step2.h:61
PhiSymmetryCalibration_step2::rawconst_barl
float rawconst_barl[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration_step2.h:52
PhiSymmetryCalibration_step2::etsum_endc_uncorr
double etsum_endc_uncorr[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration_step2.h:35
PhiSymmetryCalibration_step2::k_barl_
double k_barl_[kBarlRings]
Definition: PhiSymmetryCalibration_step2.h:48
PhiSymmetryCalibration_step2::outResidHistos
void outResidHistos()
Definition: PhiSymmetryCalibration_step2.cc:803
PhiSymmetryCalibration_step2::etsum_barl_
double etsum_barl_[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration_step2.h:33
PhiSymmetryCalibration_step2::reiteration_
bool reiteration_
Definition: PhiSymmetryCalibration_step2.h:67
PhiSymmetryCalibration_step2::statusThreshold_
int statusThreshold_
Definition: PhiSymmetryCalibration_step2.h:65
ProducerBase.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PhiSymmetryCalibration_step2::endcapCells
std::vector< DetId > endcapCells
Definition: PhiSymmetryCalibration_step2.h:62
PhiSymmetryCalibration_step2::etsumMean_endc_
double etsumMean_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration_step2.h:37
PhiSymmetryCalibration_step2::correl_endc_histos
std::vector< TH2F * > correl_endc_histos
Definition: PhiSymmetryCalibration_step2.h:88
edm::ParameterSet
Definition: ParameterSet.h:47
PhiSymmetryCalibration_step2
Definition: PhiSymmetryCalibration_step2.h:12
Event.h
PhiSymmetryCalibration_step2::have_initial_miscalib_
bool have_initial_miscalib_
Definition: PhiSymmetryCalibration_step2.h:80
PhiSymmetryCalibration_step2::k_endc_
double k_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration_step2.h:49
PhiSymmetryCalibration_step2::oldCalibs_
EcalIntercalibConstants oldCalibs_
the old calibration constants (when reiterating, the last ones derived)
Definition: PhiSymmetryCalibration_step2.h:71
PhiSymmetryCalibration_step2::miscal_resid_barl_histos
std::vector< TH1F * > miscal_resid_barl_histos
res miscalib histos
Definition: PhiSymmetryCalibration_step2.h:84
PhiSymmetryCalibration_step2::miscal_resid_endc_histos
std::vector< TH1F * > miscal_resid_endc_histos
Definition: PhiSymmetryCalibration_step2.h:87
PhiSymmetryCalibration_step2::nhits_endc_
unsigned int nhits_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration_step2.h:40
PhiSymmetryCalibration_step2::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: PhiSymmetryCalibration_step2.cc:32
edm::EventSetup
Definition: EventSetup.h:58
kEndcEtaRings
static const int kEndcEtaRings
Definition: EcalGeomPhiSymHelper.h:14
PhiSymmetryCalibration_step2::setUp
void setUp(const edm::EventSetup &setup)
Definition: PhiSymmetryCalibration_step2.cc:39
kSides
static const int kSides
Definition: EcalGeomPhiSymHelper.h:9
PhiSymmetryCalibration_step2::correl_barl_histos
std::vector< TH2F * > correl_barl_histos
Definition: PhiSymmetryCalibration_step2.h:85
kEndcWedgesX
static const int kEndcWedgesX
Definition: EcalGeomPhiSymHelper.h:11
PhiSymmetryCalibration_step2::miscalib_
EcalIntercalibConstants miscalib_
initial miscalibration applied if any)
Definition: PhiSymmetryCalibration_step2.h:77
PhiSymmetryCalibration_step2::readEtSums
void readEtSums()
Definition: PhiSymmetryCalibration_step2.cc:748
PhiSymmetryCalibration_step2::esum_barl_
double esum_barl_[kBarlRings][kBarlWedges][kSides]
Definition: PhiSymmetryCalibration_step2.h:42
PhiSymmetryCalibration_step2::newCalibs_
EcalIntercalibConstants newCalibs_
calib constants that we are going to calculate
Definition: PhiSymmetryCalibration_step2.h:74
EventSetup.h
kBarlWedges
static const int kBarlWedges
Definition: EcalGeomPhiSymHelper.h:8
PhiSymmetryCalibration_step2::rawconst_endc
float rawconst_endc[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration_step2.h:53
PhiSymmetryCalibration_step2::beginJob
void beginJob() override
Definition: PhiSymmetryCalibration_step2.cc:98
PhiSymmetryCalibration_step2::endJob
void endJob() override
Definition: PhiSymmetryCalibration_step2.cc:123
edm::Event
Definition: Event.h:73
PhiSymmetryCalibration_step2::esum_endc_
double esum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration_step2.h:43
PhiSymmetryCalibration_step2::esumMean_endc_
double esumMean_endc_[kEndcEtaRings]
Definition: PhiSymmetryCalibration_step2.h:46
PhiSymmetryCalibration_step2::fillConstantsHistos
void fillConstantsHistos()
Definition: PhiSymmetryCalibration_step2.cc:287
PhiSymmetryCalibration_step2::e_
EcalGeomPhiSymHelper e_
Definition: PhiSymmetryCalibration_step2.h:59
PhiSymmetryCalibration_step2::etsumMean_barl_
double etsumMean_barl_[kBarlRings]
Definition: PhiSymmetryCalibration_step2.h:36
PhiSymmetryCalibration_step2::etsum_endc_
double etsum_endc_[kEndcWedgesX][kEndcWedgesX][kSides]
Definition: PhiSymmetryCalibration_step2.h:34