|
|
Go to the documentation of this file.
4 #ifndef PhysicsTools_PatAlgos_PATPhotonProducer_h
5 #define PhysicsTools_PatAlgos_PATPhotonProducer_h
84 std::vector<edm::EDGetTokenT<edm::Association<reco::GenParticleCollection> > >
genMatchTokens_;
89 typedef std::vector<edm::Handle<edm::ValueMap<IsoDeposit> > >
IsoDepositMaps;
104 template <
typename T>
106 const char* psetName,
117 typedef std::pair<std::string, edm::InputTag>
NameTag;
136 template <
typename T>
138 const char* psetName,
143 if (iConfig.
exists(psetName)) {
146 if (depconf.
exists(
"tracker"))
148 if (depconf.
exists(
"ecal"))
150 if (depconf.
exists(
"hcal"))
152 if (depconf.
exists(
"pfAllParticles")) {
155 if (depconf.
exists(
"pfChargedHadrons")) {
159 if (depconf.
exists(
"pfChargedAll")) {
162 if (depconf.
exists(
"pfPUChargedHadrons")) {
166 if (depconf.
exists(
"pfNeutralHadrons")) {
170 if (depconf.
exists(
"pfPhotons")) {
173 if (depconf.
exists(
"user")) {
174 std::vector<edm::InputTag> userdeps = depconf.
getParameter<std::vector<edm::InputTag> >(
"user");
175 std::vector<edm::InputTag>::const_iterator it = userdeps.begin(), ed = userdeps.end();
177 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_
T getParameter(std::string const &) const
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_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_neutral_hadrons_
edm::EDGetTokenT< edm::ValueMap< float > > PUPPIIsolation_charged_hadrons_
edm::InputTag reducedBarrelRecHitCollection_
std::pair< std::string, edm::InputTag > NameTag
edm::InputTag reducedEndcapRecHitCollection_