32 static std::map<std::string,EEA::ElectronEffectiveAreaType>
EEA_type();
33 static std::map<std::string,EEA::ElectronEffectiveAreaTarget>
EEA_target();
40 : gsfElectronTag( edm::
InputTag(
"" ) )
41 , pfElectronTag( edm::
InputTag(
"" ) )
42 , patElectronTag( edm::
InputTag(
"" ) )
43 , rhoIsoToken( consumes<double>( config.getParameter<edm::
InputTag>(
"rhoIso") ) )
44 , modeEEA( EEA_type()[ config.getParameter<std::
string>(
"EffectiveAreaType") ] )
45 , targetEEA( EEA_target()[ config.getParameter<std::
string>(
"EffectiveAreaTarget") ] )
53 produces<CandDoubleMap>();
68 std::vector<double> gsfCorrectionsEA;
70 for ( reco::GsfElectronCollection::const_iterator it = gsfElectrons->begin(); it != gsfElectrons->end(); ++it)
72 filler.
insert(gsfElectrons, gsfCorrectionsEA.begin(), gsfCorrectionsEA.end() );
78 std::vector<double> pfCorrectionsEA;
80 for ( reco::PFCandidateCollection::const_iterator it = pfElectrons->begin(); it != pfElectrons->end(); ++it)
82 filler.
insert( pfElectrons, pfCorrectionsEA.begin(), pfCorrectionsEA.end() );
88 std::vector<double> patCorrectionsEA;
90 for ( pat::ElectronCollection::const_iterator it = patElectrons->begin(); it != patElectrons->end(); ++it)
92 filler.
insert( patElectrons, patCorrectionsEA.begin(), patCorrectionsEA.end() );
106 std::map<std::string,ElectronEffectiveArea::ElectronEffectiveAreaType>
109 std::map<std::string,EEA::ElectronEffectiveAreaType>
m;
115 std::map<std::string,ElectronEffectiveArea::ElectronEffectiveAreaTarget>
118 std::map<std::string,EEA::ElectronEffectiveAreaTarget >
m;
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
static std::map< std::string, EEA::ElectronEffectiveAreaTarget > EEA_target()
static std::map< std::string, EEA::ElectronEffectiveAreaType > EEA_type()
#define DEFINE_FWK_MODULE(type)
void insert(const H &h, I begin, I end)
static Double_t GetElectronEffectiveArea(ElectronEffectiveAreaType type, Double_t SCEta, ElectronEffectiveAreaTarget EffectiveAreaTarget=kEleEAData2011)
edm::EDGetTokenT< pat::ElectronCollection > patElectronToken
ElectronEffectiveAreaTarget
const EEA::ElectronEffectiveAreaType modeEEA
ElectronEffectiveArea EEA
edm::InputTag gsfElectronTag
virtual bool filter(edm::Event &, const edm::EventSetup &)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
ElectronIsolatorFromEffectiveArea(const edm::ParameterSet &)
edm::ValueMap< double > CandDoubleMap
edm::InputTag patElectronTag
edm::EDGetTokenT< reco::PFCandidateCollection > pfElectronToken
edm::EDGetTokenT< double > rhoIsoToken
ElectronEffectiveAreaType
const EEA::ElectronEffectiveAreaTarget targetEEA
edm::InputTag pfElectronTag
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectronToken