|
|
Go to the documentation of this file.
4 #ifndef PhysicsTools_PatAlgos_PATPhotonProducer_h
5 #define PhysicsTools_PatAlgos_PATPhotonProducer_h
88 std::vector<edm::EDGetTokenT<edm::Association<reco::GenParticleCollection> > >
genMatchTokens_;
93 typedef std::vector<edm::Handle<edm::ValueMap<IsoDeposit> > >
IsoDepositMaps;
108 template <
typename T>
110 const char* psetName,
121 typedef std::pair<std::string, edm::InputTag>
NameTag;
140 template <
typename T>
142 const char* psetName,
147 if (iConfig.
exists(psetName)) {
150 if (depconf.
exists(
"tracker"))
152 if (depconf.
exists(
"ecal"))
154 if (depconf.
exists(
"hcal"))
156 if (depconf.
exists(
"pfAllParticles")) {
159 if (depconf.
exists(
"pfChargedHadrons")) {
163 if (depconf.
exists(
"pfChargedAll")) {
166 if (depconf.
exists(
"pfPUChargedHadrons")) {
170 if (depconf.
exists(
"pfNeutralHadrons")) {
174 if (depconf.
exists(
"pfPhotons")) {
177 if (depconf.
exists(
"user")) {
178 std::vector<edm::InputTag> userdeps = depconf.
getParameter<std::vector<edm::InputTag> >(
"user");
179 std::vector<edm::InputTag>::const_iterator it = userdeps.begin(), ed = userdeps.end();
181 for (; it != ed; ++it, ++
key) {
edm::EDGetTokenT< reco::GsfElectronCollection > electronToken_
pat::helper::MultiIsolator isolator_
edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollectionToken_
std::vector< IsolationLabel > IsolationLabels
edm::EDGetTokenT< edm::View< reco::Photon > > photonToken_
bool embedPreshowerClusters_
edm::EDGetTokenT< edm::ValueMap< float > > ecalPFClusterIsoT_
std::vector< std::pair< pat::IsolationKeys, float > > IsolationValuePairs
IsolationLabels isolationValueLabels_
std::vector< edm::Handle< edm::ValueMap< IsoDeposit > > > IsoDepositMaps
pat::PATUserDataHelper< pat::Photon > userDataHelper_
pat::helper::EfficiencyLoader efficiencyLoader_
pat::helper::KinResolutionsLoader resolutionLoader_
IsolationLabels isoDepositLabels_
~PATPhotonProducer() override
std::vector< edm::EDGetTokenT< edm::ValueMap< IsoDeposit > > > isoDepositTokens_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< pat::IsolationKeys, edm::InputTag > IsolationLabel
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
pat::helper::MultiIsolator::IsolationValuePairs isolatorTmpStorage_
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< reco::BeamSpot > beamLineToken_
std::vector< edm::EDGetTokenT< edm::ValueMap< double > > > isolationValueTokens_
PATPhotonProducer(const edm::ParameterSet &iConfig)
const CaloTopology * ecalTopology_
std::vector< edm::Handle< edm::ValueMap< double > > > IsolationValueMaps
GreaterByEt< Photon > eTComparator_
Produces the pat::Photon.
std::vector< edm::EDGetTokenT< edm::ValueMap< Bool_t > > > photIDTokens_
std::vector< NameTag > photIDSrcs_
std::vector< edm::EDGetTokenT< edm::Association< reco::GenParticleCollection > > > genMatchTokens_
IsolationKeys
Enum defining isolation keys.
const CaloGeometry * ecalGeometry_
edm::EDGetTokenT< edm::ValueMap< float > > hcalPFClusterIsoT_
edm::EDGetTokenT< reco::ConversionCollection > hConversionsToken_
void readIsolationLabels(const edm::ParameterSet &iConfig, const char *psetName, IsolationLabels &labels, std::vector< edm::EDGetTokenT< edm::ValueMap< T > > > &tokens)
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_photons_
edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollectionToken_
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_neutral_hadrons_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_charged_hadrons_
edm::InputTag reducedBarrelRecHitCollection_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
std::pair< std::string, edm::InputTag > NameTag
edm::InputTag reducedEndcapRecHitCollection_