31 if( !conversionsHandle.
isValid() ) {
33 if( !conversionsHandle.
isValid() )
35 <<
" failed to find a standard AOD or miniAOD conversions collection " << std::endl;
50 {
"electronMVAVariableHelper:kfhits" , 0},
51 {
"electronMVAVariableHelper:kfchi2" , 1},
52 {
"electronMVAVariableHelper:convVtxFitProb", 2},
53 {
"fixedGridRhoFastjetAll" , 3}
82 return std::vector<float> {
98 {
"photonIDValueMapProducer:phoPhotonIsolation" , 0},
99 {
"photonIDValueMapProducer:phoChargedIsolation" , 1},
100 {
"photonIDValueMapProducer:phoWorstChargedIsolation" , 2},
101 {
"photonIDValueMapProducer:phoWorstChargedIsolationConeVeto" , 3},
102 {
"photonIDValueMapProducer:phoWorstChargedIsolationConeVetoPVConstr", 4},
103 {
"egmPhotonIsolation:gamma-DR030-" , 5},
104 {
"egmPhotonIsolation:h+-DR030-" , 6},
105 {
"fixedGridRhoFastjetAll" , 7},
106 {
"fixedGridRhoAll" , 8}
const std::vector< edm::EDGetToken > tokens_
static std::vector< float > getExtraVars(reco::GsfElectron const &ele, reco::ConversionCollection const *conversions, reco::BeamSpot const *beamSpot, double rho)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
static float getVariableFromValueMapToken(edm::Ptr< ParticleType > const &particlePtr, edm::EDGetToken const &token, edm::Event const &iEvent)
MVAVariableHelper(edm::ConsumesCollector &&cc)
static float getVariableFromDoubleToken(edm::EDGetToken const &token, const edm::Event &iEvent)
std::vector< edm::EDGetTokenT< int > > tokens_
const std::vector< float > getAuxVariables(edm::Ptr< ParticleType > const &particlePtr, const edm::Event &iEvent) const
T const * product() const