24 unsigned int newCalib =
28 boost::shared_ptr<pftools::PFClusterCalibration>
41 clusterCalibration->setCorrections(lowEP0, lowEP1, globalP0, globalP1);
43 unsigned int allowNegative
44 = iConfig.
getParameter<
unsigned int>(
"pfcluster_allowNegative");
45 clusterCalibration->setAllowNegativeEnergy(allowNegative);
47 unsigned int doCorrection
48 = iConfig.
getParameter<
unsigned int>(
"pfcluster_doCorrection");
49 clusterCalibration->setDoCorrection(doCorrection);
52 = iConfig.
getParameter<
double>(
"pfcluster_barrelEndcapEtaDiv");
53 clusterCalibration->setBarrelBoundary(barrelEta);
64 std::vector<std::string>*
names = clusterCalibration->getKnownSectorNames();
65 for(std::vector<std::string>::iterator
i = names->begin();
i != names->end(); ++
i) {
66 std::string sector = *
i;
67 std::vector<double> params
69 clusterCalibration->setEvolutionParameters(sector, params);
73 unsigned int doEtaCorrection = iConfig.
getParameter<
unsigned int>(
"pfcluster_doEtaCorrection");
74 clusterCalibration->setDoEtaCorrection(doEtaCorrection);
76 std::vector<double> etaCorrectionParams =
77 iConfig.
getParameter<std::vector<double> >(
"pfcluster_etaCorrection");
78 clusterCalibration->setEtaCorrectionParameters(etaCorrectionParams);
93 calibHF_eta_step = iConfig.
getParameter<std::vector<double> >(
"calibHF_eta_step");
94 calibHF_a_EMonly = iConfig.
getParameter<std::vector<double> >(
"calibHF_a_EMonly");
95 calibHF_b_HADonly = iConfig.
getParameter<std::vector<double> >(
"calibHF_b_HADonly");
96 calibHF_a_EMHAD = iConfig.
getParameter<std::vector<double> >(
"calibHF_a_EMHAD");
97 calibHF_b_EMHAD = iConfig.
getParameter<std::vector<double> >(
"calibHF_b_EMHAD");
98 boost::shared_ptr<PFEnergyCalibrationHF>
99 thepfEnergyCalibrationHF (
new PFEnergyCalibrationHF(calibHF_use,calibHF_eta_step,calibHF_a_EMonly,calibHF_b_HADonly,calibHF_a_EMHAD,calibHF_b_EMHAD) ) ;
117 if( useEGammaElectrons_) {
122 = iConfig.
getParameter<std::string>(
"pf_electron_output_col");
127 usePFSCEleCalib = iConfig.
getParameter<
bool>(
"usePFSCEleCalib");
128 calibPFSCEle_barrel = iConfig.
getParameter<std::vector<double> >(
"calibPFSCEle_barrel");
129 calibPFSCEle_endcap = iConfig.
getParameter<std::vector<double> >(
"calibPFSCEle_endcap");
130 boost::shared_ptr<PFSCEnergyCalibration>
144 produces<reco::PFCandidateCollection>();
145 produces<reco::PFCandidateCollection>(
"CleanedHF");
146 produces<reco::PFCandidateCollection>(
"CleanedCosmicsMuons");
147 produces<reco::PFCandidateCollection>(
"CleanedTrackerAndGlobalMuons");
148 produces<reco::PFCandidateCollection>(
"CleanedFakeMuons");
149 produces<reco::PFCandidateCollection>(
"CleanedPunchThroughMuons");
150 produces<reco::PFCandidateCollection>(
"CleanedPunchThroughNeutralHadrons");
151 produces<reco::PFCandidateCollection>(
"AddedMuonsAndHadrons");
154 if (usePFElectrons_) {
171 = iConfig.
getParameter<
double>(
"pf_calib_ECAL_HCAL_eslope");
173 = iConfig.
getParameter<
double>(
"pf_calib_ECAL_HCAL_hslope");
175 = iConfig.
getParameter<
double>(
"pf_calib_ECAL_HCAL_offset");
182 = iConfig.
getParameter<
double>(
"pf_calib_HCAL_damping");
188 string mvaWeightFileEleID
189 = iConfig.
getParameter<
string>(
"pf_electronID_mvaWeightFile");
191 bool applyCrackCorrectionsForElectrons
192 = iConfig.
getParameter<
bool>(
"pf_electronID_crackCorrection");
194 string path_mvaWeightFileEleID;
197 path_mvaWeightFileEleID =
edm::FileInPath ( mvaWeightFileEleID.c_str() ).fullPath();
210 = iConfig.
getParameter<
bool>(
"usePFNuclearInteractions");
225 boost::shared_ptr<PFEnergyCalibration>
247 pfAlgo_->setParameters( nSigmaECAL,
251 thepfEnergyCalibrationHF,
255 pfAlgo_->setPFEleParameters(mvaEleCut,
256 path_mvaWeightFileEleID,
258 thePFSCEnergyCalibration,
259 sumEtEcalIsoForEgammaSC_barrel,
260 sumEtEcalIsoForEgammaSC_endcap,
261 coneEcalIsoForEgammaSC,
262 sumPtTrackIsoForEgammaSC_barrel,
263 sumPtTrackIsoForEgammaSC_endcap,
264 nTrackIsoForEgammaSC,
265 coneTrackIsoForEgammaSC,
266 applyCrackCorrectionsForElectrons,
269 useEGammaSupercluster);
275 pfAlgo_->setDisplacedVerticesParameters(rejectTracks_Bad,
277 usePFNuclearInteractions,
286 if (usePFNuclearInteractions)
287 pfAlgo_->setCandConnectorParameters( iCfgCandConnector );
290 std::vector<double> muonHCAL
291 = iConfig.
getParameter<std::vector<double> >(
"muon_HCAL");
292 std::vector<double> muonECAL
293 = iConfig.
getParameter<std::vector<double> >(
"muon_ECAL");
294 assert ( muonHCAL.size() == 2 && muonECAL.size() == 2 );
303 std::vector<double> factors45
304 = iConfig.
getParameter<std::vector<double> >(
"factors_45");
305 assert ( factors45.size() == 2 );
311 pfAlgo_->setPFMuonAndFakeParameters(muonHCAL,
329 = iConfig.
getParameter<
double>(
"minSignificanceReduction");
336 pfAlgo_->setPostHFCleaningParameters(postHFCleaning,
340 minSignificanceReduction,
346 = iConfig.
getParameter< std::vector<edm::InputTag> >(
"cleanedHF");
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
tuple coneTrackIsoForEgammaSC
tuple coneEcalIsoForEgammaSC
tuple sumEtEcalIsoForEgammaSC_barrel
std::auto_ptr< PFAlgo > pfAlgo_
particle flow algorithm
tuple usePFNuclearInteractions
tuple sumEtEcalIsoForEgammaSC_endcap
edm::InputTag inputTagMuons_
std::vector< edm::InputTag > inputTagCleanedHF_
bool useVerticesForNeutral_
tuple rejectTracks_Step45
tuple minSignificanceReduction
tuple nTrackIsoForEgammaSC
tuple calibPFSCEle_barrel
tuple sumPtTrackIsoForEgammaSC_endcap
edm::InputTag inputTagBlocks_
edm::InputTag inputTagEgammaElectrons_
std::string electronOutputCol_
tuple calibPFSCEle_endcap
std::string electronExtraOutputCol_
tuple useEGammaSupercluster
tuple sumPtTrackIsoForEgammaSC_barrel
static const HistoName names[]