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