-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECAL esConsumes migration of Calibration packages #35107
Merged
cmsbuild
merged 16 commits into
cms-sw:master
from
thomreis:ecal-esconsumes-migration-calibration-pkg
Sep 3, 2021
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
70a8a1e
esConsumes migration SelectedElectronFEDListProducer
thomreis 3d1dde0
esConsumes migration ECALpedestalPCLHarvester.
thomreis 688dfcd
esConsumes migration ECALpedestalPCLworker.
thomreis 0e84d06
esConsumes migration of EcalEleCalibLooper.
thomreis 8afc1fb
Modernisation of ElectronCalibrationUniv.
thomreis 43172b0
Modernise InvRingCalib.
thomreis 97d66d5
Modernise EcalEleCalibLooper.
thomreis 9b54a4e
Modernise PhiSymmetryCalibration.
thomreis 5ef63d6
esConsumes migration PhiSymmetryCalibration_step2.
thomreis ec26c2b
esConsumes migration PhiSymmetryCalibration_step2_SM.
thomreis 5ade040
esConsumes migration of Pi0FixedMassWindowCalibration.
thomreis 315d590
esConsumes migration of ZeeCalibration.
thomreis 378159c
Apply code-checks and code-format.
thomreis 837b840
Remove unused conditions import from ES.
thomreis 1e2fe38
Replace getHandle calls with getData.
thomreis 7a77d78
Apply code-checks and code-format.
thomreis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ | |
#include "DataFormats/EgammaCandidates/interface/Electron.h" | ||
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h" | ||
#include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h" | ||
#include "Geometry/CaloGeometry/interface/CaloGeometry.h" | ||
#include "Geometry/Records/interface/CaloGeometryRecord.h" | ||
|
||
#include "CLHEP/Matrix/GenMatrix.h" | ||
#include "CLHEP/Matrix/Matrix.h" | ||
|
@@ -60,64 +62,64 @@ class EcalEleCalibLooper : public edm::EDLooper { | |
|
||
private: | ||
//! EcalBarrel Input Collection name | ||
edm::InputTag m_barrelAlCa; | ||
const edm::InputTag m_barrelAlCa; | ||
//! EcalEndcap Input Collection name | ||
edm::InputTag m_endcapAlCa; | ||
const edm::InputTag m_endcapAlCa; | ||
//! To take the electrons | ||
edm::InputTag m_ElectronLabel; | ||
|
||
//! reconstruction window size | ||
int m_recoWindowSidex; | ||
int m_recoWindowSidey; | ||
const int m_recoWindowSidex; | ||
const int m_recoWindowSidey; | ||
|
||
//! eta size of the sub-matrix | ||
int m_etaWidth; //PG sub matrix size and borders | ||
const int m_etaWidth; //PG sub matrix size and borders | ||
//! eta size of the additive border to the sub-matrix | ||
// int m_etaBorder ; //FIXME | ||
//! phi size of the sub-matrix | ||
int m_phiWidthEB; | ||
const int m_phiWidthEB; | ||
//! phi size of the additive border to the sub-matrix | ||
// int m_phiBorderEB //FIXME; | ||
Comment on lines
81
to
82
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this commented out code expected to be used? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not know. I just did the esConsumes migration and I do not use this code otherwise. |
||
|
||
//! eta start of the region of interest | ||
int m_etaStart; //PG ECAL region to be calibrated | ||
const int m_etaStart; //PG ECAL region to be calibrated | ||
//! eta end of the region of interest | ||
int m_etaEnd; | ||
const int m_etaEnd; | ||
//! phi start of the region of interest | ||
int m_phiStartEB; | ||
const int m_phiStartEB; | ||
//! phi end of the region of interest | ||
int m_phiEndEB; | ||
const int m_phiEndEB; | ||
//!DS For the EE | ||
int m_radStart; | ||
int m_radEnd; | ||
int m_radWidth; | ||
const int m_radStart; | ||
const int m_radEnd; | ||
const int m_radWidth; | ||
//FIXME int m_radBorder ; | ||
int m_phiStartEE; | ||
int m_phiEndEE; | ||
int m_phiWidthEE; | ||
const int m_phiStartEE; | ||
const int m_phiEndEE; | ||
const int m_phiWidthEE; | ||
|
||
//! maximum number of events per crystal | ||
int m_maxSelectedNumPerXtal; | ||
const int m_maxSelectedNumPerXtal; | ||
|
||
//! single blocks calibrators | ||
std::vector<VEcalCalibBlock *> m_EcalCalibBlocks; | ||
//! minimum energy per crystal cut | ||
double m_minEnergyPerCrystal; | ||
const double m_minEnergyPerCrystal; | ||
//! maximum energy per crystal cut | ||
double m_maxEnergyPerCrystal; | ||
const double m_maxEnergyPerCrystal; | ||
//! minimum coefficient accepted (RAW) | ||
double m_minCoeff; | ||
const double m_minCoeff; | ||
//! maximum coefficient accepted (RAW) | ||
double m_maxCoeff; | ||
const double m_maxCoeff; | ||
//! to exclude the blocksolver | ||
int m_usingBlockSolver; | ||
const int m_usingBlockSolver; | ||
|
||
//!the maps of recalib coeffs | ||
EcalIntercalibConstantMap m_barrelMap; | ||
EcalIntercalibConstantMap m_endcapMap; | ||
|
||
//! DS sets the number of loops to do | ||
unsigned int m_loops; | ||
//! To take the electrons | ||
edm::InputTag m_ElectronLabel; | ||
const unsigned int m_loops; | ||
//The map Filler | ||
VFillMap *m_MapFiller; | ||
|
||
|
@@ -136,6 +138,13 @@ class EcalEleCalibLooper : public edm::EDLooper { | |
std::map<int, int> m_xtalNumOfHits; | ||
|
||
bool isfirstcall_; | ||
|
||
//! ED token | ||
const edm::EDGetTokenT<EBRecHitCollection> m_ebRecHitToken; | ||
const edm::EDGetTokenT<EERecHitCollection> m_eeRecHitToken; | ||
const edm::EDGetTokenT<reco::GsfElectronCollection> m_gsfElectronToken; | ||
//! ES token | ||
const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> m_geometryToken; | ||
}; | ||
#endif | ||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this commented out code expected to be used?