107 bool useConvBremPFRecTracks = iConfig.
getParameter<
bool>(
"useConvBremPFRecTracks");
113 produces<reco::PFBlockCollection>();
121 std::vector<double> DPtovPtCut
122 = iConfig.
getParameter<std::vector<double> >(
"pf_DPtoverPt_Cut");
123 if (DPtovPtCut.size()!=5)
125 edm::LogError(
"MisConfiguration")<<
" vector pf_DPtoverPt_Cut has to be of size 5";
129 std::vector<unsigned> NHitCut
130 = iConfig.
getParameter<std::vector<unsigned> >(
"pf_NHit_Cut");
131 if (NHitCut.size()!=5)
133 edm::LogError(
"MisConfiguration")<<
" vector pf_NHit_Cut has to be of size 5";
140 int nuclearInteractionsPurity
141 = iConfig.
getParameter<
unsigned>(
"nuclearInteractionsPurity");
144 std::vector<double> EGPhotonSelectionCuts ;
147 EGPhotonSelectionCuts = iConfig.
getParameter<std::vector<double> >(
"PhotonSelectionCuts");
151 if (nuclearInteractionsPurity > 3 || nuclearInteractionsPurity < 1) {
152 nuclearInteractionsPurity = 1;
153 edm::LogInfo(
"PFBlockProducer") <<
"NI purity not properly implemented. Set it to the strongest level " << nuclearInteractionsPurity << endl;
155 vector<string> securityLevel;
156 securityLevel.push_back(
"isNucl"); securityLevel.push_back(
"isNucl && isNuclLoose"); securityLevel.push_back(
"isNucl && isNuclLoose && isNuclKink");
157 edm::LogInfo(
"PFBlockProducer") <<
"NI interactions are corrected in PFlow for " << securityLevel[nuclearInteractionsPurity-1].c_str() << endl;
163 useConvBremPFRecTracks,
165 nuclearInteractionsPurity,
167 EGPhotonSelectionCuts,
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag inputTagPFNuclear_
edm::InputTag inputTagPFClustersECAL_
edm::InputTag inputTagPFConversions_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
edm::InputTag inputTagPFClustersHO_
edm::InputTag inputTagPFClustersPS_
edm::InputTag inputTagRecTracks_
bool useV0_
switch on/off V0
edm::InputTag inputTagPFClustersHFEM_
edm::InputTag inputTagPFClustersHCAL_
edm::InputTag inputTagSCBarrel_
edm::InputTag inputTagGsfRecTracks_
PFBlockAlgo pfBlockAlgo_
Particle flow block algorithm.
bool usePFatHLT_
Particle Flow at HLT ?
void setDebug(bool debug)
sets debug printout flag
edm::InputTag inputTagPFClustersHFHAD_
edm::InputTag inputTagRecMuons_
bool useEGPhotons_
use EG photons ?
bool useSuperClusters_
use SuperClusters ?
void setParameters(std::vector< double > &DPtovPtCut, std::vector< unsigned > &NHitCut, bool useConvBremPFRecTracks, bool useIterTracking, int nuclearInteractionsPurity, bool useEGPhotons, std::vector< double > &photonSelectionCuts, bool useSuperClusters)
edm::InputTag inputTagConvBremGsfRecTracks_
bool useConvBremGsfTracks_
switch on/off Conversions Brem Recovery
edm::InputTag inputTagPFV0_
bool useKDTreeTrackEcalLinker_
bool useNuclear_
use NuclearInteractions ?
edm::InputTag inputTagEGPhotons_
void setUseOptimization(bool useKDTreeTrackEcalLinker)
edm::InputTag inputTagSCEndcap_
bool useConversions_
switch on/off Conversions