Go to the documentation of this file. 1 #ifndef CALIBRATION_ECALCALIBALGOS_ZEECALIBRATION
2 #define CALIBRATION_ECALCALIBALGOS_ZEECALIBRATION
51 #include "TGraphErrors.h"
113 void fillEleInfo(std::vector<HepMC::GenParticle*>&
a, std::map<HepMC::GenParticle*, const reco::GsfElectron*>&
b);
117 const std::vector<HepMC::GenParticle*>& mcEle,
118 std::map<HepMC::GenParticle*, const reco::GsfElectron*>& myMCmap);
122 float EvalDR(
float Eta,
float Eta_ref,
float Phi,
float Phi_ref);
132 std::pair<DetId, double>
getHottestDetId(
const std::vector<std::pair<DetId, float> >& mySCRecHits,
193 std::shared_ptr<EcalIntercalibConstants>
ical;
307 Int_t
BBZN,
EBZN,
EEZN,
BBZN_gg,
EBZN_gg,
EEZN_gg,
BBZN_tt,
EBZN_tt,
EEZN_tt,
BBZN_t0,
EBZN_t0,
EEZN_t0;
TH1F * h1_reco_ZMassCorr_
virtual void produce(edm::Event &, const edm::EventSetup &)
Dummy implementation (job done in duringLoop)
float computeCoefficientDistanceAtIteration(float v1[250], float v2[250], int size)
int SILVER_ELECTRONS_IN_BARREL
TH1F * h1_occupancyBarrel_
std::vector< std::string > hlNames_
int TOTAL_ELECTRONS_IN_BARREL
std::string rechitProducer_
double fEtaEndcapGood(double scEta) const
TH1F * h1_occupancyVsEtaGold_
TH1F * h1_eventsAfterBorderSelection_
double sigmaErrorArray[50]
std::string RecalibBarrelHits_
TH1F * h1_occupancyVsEtaCrack_
std::string erechitProducer_
TH1F * h1_reco_ZMassGood_
std::string outputFileName_
TH2F * h2_xtalRecalibCoeffBarrel_[25]
bool aTriggerResults[200]
edm::InputTag hlTriggerResults_
std::string scIslandCollection_
std::vector< unsigned int > hlErrors_
TH2F * h2_fEtaEndcapGood_
TH2F * h2_zMassDiffVsLoop_
void beginOfJob() override
Called at beginning of job.
TH1F * h1_occupancyVsEta_
ZeeCalibration(const edm::ParameterSet &iConfig)
Constructor.
double coefficientDistanceAtIteration[50]
std::string erechitCollection_
int CRACK_ELECTRONS_IN_ENDCAP
int TOTAL_ELECTRONS_IN_ENDCAP
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
TH1F * h1_occupancyVsEtaShower_
TH1F * h1_electronCosTheta_TK_
std::string electronCollection_
int ringNumberCorrector(int k)
TH1F * h1_occupancyVsEtaSilver_
int BARREL_ELECTRONS_BEFORE_BORDER_CUT
void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
edm::ParameterSet theParameterSet
std::string rechitCollection_
std::shared_ptr< EcalIntercalibConstants > ical
void fillMCmap(const std::vector< const reco::GsfElectron * > *electronCollection, const std::vector< HepMC::GenParticle * > &mcEle, std::map< HepMC::GenParticle *, const reco::GsfElectron * > &myMCmap)
~ZeeCalibration() override
Destructor.
void fillMCInfo(HepMC::GenParticle *mcele)
int CRACK_ELECTRONS_IN_BARREL
TH2F * h2_iterations_[25]
TH2F * h2_coeffVsEtaGrouped_
TH1F * h_ESCcorrEtrue_[25]
TH1F * h1_reco_ZMassCorrEE_
std::string scIslandProducer_
int SHOWER_ELECTRONS_IN_BARREL
TH1F * h1_weightSumMeanEndcap_
virtual std::shared_ptr< EcalIntercalibConstants > produceEcalIntercalibConstants(const EcalIntercalibConstantsRcd &iRecord)
Produce Ecal interCalibrations.
float EvalDPhi(float Phi, float Phi_ref)
TH1F * h1_preshowerOverSC_
TH1F * h1_reco_ZMassCorrBB_
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
std::pair< DetId, double > getHottestDetId(const std::vector< std::pair< DetId, float > > &mySCRecHits, const EBRecHitCollection *ebhits, const EERecHitCollection *eehits)
TH2F * h2_xtalRecalibCoeffEndcapPlus_[25]
TH1F * h1_electronCosTheta_SC_
TH2F * h2_xtalMiscalibCoeffEndcapMinus_
double fEtaBarrelGood(double scEta) const
TH2F * h2_xtalMiscalibCoeffBarrel_
TH1F * h1_eleERecoOverEtrue_
ZeeRescaleFactorPlots * myZeeRescaleFactorPlots_
float initCalibCoeff[250]
std::vector< unsigned int > hlAccept_
TH2F * h2_xtalRecalibCoeffEndcapMinus_[25]
std::vector< unsigned int > hlWasRun_
ZIterativeAlgorithmWithFit * theAlgorithm_
TH2F * h2_fEtaBarrelGood_
char aTriggerNames[200][30]
float calibCoeffError[250]
int SILVER_ELECTRONS_IN_ENDCAP
unsigned int electronSelection_
TH1F * h1_eventsBeforeEWKSelection_
double getEtaCorrection(const reco::GsfElectron *)
TH2F * h2_xtalMiscalibCoeffEndcapPlus_
TH1F * h1_electronCosTheta_SC_TK_
double fEtaBarrelBad(double scEta) const
TH1F * h1_eventsBeforeBorderSelection_
void endOfJob() override
Called at end of job.
std::string electronProducer_
bool xtalIsOnModuleBorder(EBDetId myEBDetId)
TH2F * h_ESCEtrueVsEta_[25]
int GOLDEN_ELECTRONS_IN_ENDCAP
double fEtaEndcapBad(double scEta) const
int GOLDEN_ELECTRONS_IN_BARREL
std::string scCollection_
TH1F * h1_eventsAfterEWKSelection_
void fillEleInfo(std::vector< HepMC::GenParticle * > &a, std::map< HepMC::GenParticle *, const reco::GsfElectron * > &b)
TH1F * h1_weightSumMeanBarrel_
TH1F * h1_borderElectronClassification_
TH2F * h_ESCcorrEtrueVsEta_[25]
float EvalDR(float Eta, float Eta_ref, float Phi, float Phi_ref)
TH1F * h1_occupancyEndcap_
int SHOWER_ELECTRONS_IN_ENDCAP
int BARREL_ELECTRONS_AFTER_BORDER_CUT