43 #include <Math/Point3D.h>
50 using namespace reco ;
100 : inputCfg(inputConfig),
101 strategyCfg(strategyConfig),
103 cutsCfgPflow(cutsConfigPflow),
105 recHitsCfg(recHitsConfig),
108 superClusterErrorFunction(superClusterErrorFunc),
109 crackCorrectionFunction(crackCorrectionFunc)
115 delete hcalHelperPflow ;
147 : cacheIDGeom(0), cacheIDTopo(0), cacheIDTDGeom(0), cacheIDMagField(0),
154 delete constraintAtVtx ;
155 delete mtsTransform ;
174 void retreiveOriginalTrackCollections
206 :
event(0), beamspot(0),
207 originalCtfTrackCollectionRetreived(
false),
208 originalGsfTrackCollectionRetreived(
false),
209 tkIsolation03(0), tkIsolation04(0),
210 hadDepth1Isolation03(0), hadDepth1Isolation04(0),
211 hadDepth2Isolation03(0), hadDepth2Isolation04(0),
212 ecalBarrelHitsMeta(0), ecalEndcapHitsMeta(0),
213 ecalBarrelIsol03(0), ecalBarrelIsol04(0),
214 ecalEndcapIsol03(0), ecalEndcapIsol04(0)
221 delete tkIsolation03 ;
222 delete tkIsolation04 ;
223 delete hadDepth1Isolation03 ;
224 delete hadDepth1Isolation04 ;
225 delete hadDepth2Isolation03 ;
226 delete hadDepth2Isolation04 ;
227 delete ecalBarrelHitsMeta ;
228 delete ecalEndcapHitsMeta ;
229 delete ecalBarrelIsol03 ;
230 delete ecalBarrelIsol04 ;
231 delete ecalEndcapIsol03 ;
232 delete ecalEndcapIsol04 ;
234 GsfElectronPtrCollection::const_iterator it ;
243 if ((!originalCtfTrackCollectionRetreived)&&(ctfTrack.
isNonnull()))
245 event->get(ctfTrack.
id(),originalCtfTracks) ;
246 originalCtfTrackCollectionRetreived =
true ;
248 if ((!originalGsfTrackCollectionRetreived)&&(gsfTrack.
isNonnull()))
250 event->get(gsfTrack.
id(),originalGsfTracks) ;
251 originalGsfTrackCollectionRetreived =
true ;
303 gsfTrackRef(coreRef->gsfTrack()),
304 superClusterRef(coreRef->superCluster()),
305 ctfTrackRef(coreRef->ctfTrack()), shFracInnerHits(coreRef->ctfGsfOverlap()),
314 if (!ctfTrackRef.isNull())
return ;
318 shFracInnerHits = 0 ;
322 const HitPattern & gsfHitPattern = gsfTrackRef->hitPattern() ;
324 unsigned int counter ;
325 TrackCollection::const_iterator ctfTkIter ;
326 for ( ctfTkIter = ctfTrackCollection->begin() , counter = 0 ;
327 ctfTkIter != ctfTrackCollection->end() ; ctfTkIter++, counter++ )
330 double dEta = gsfTrackRef->eta() - ctfTkIter->eta() ;
331 double dPhi = gsfTrackRef->phi() - ctfTkIter->phi() ;
332 double pi = acos(-1.);
336 if (
sqrt(dEta*dEta + dPhi*dPhi) > 0.3) continue ;
338 unsigned int shared = 0 ;
339 int gsfHitCounter = 0 ;
340 int numGsfInnerHits = 0 ;
341 int numCtfInnerHits = 0 ;
344 const HitPattern & ctfHitPattern = ctfTkIter->hitPattern() ;
347 for ( elHitsIt = gsfTrackRef->recHitsBegin() ;
348 elHitsIt != gsfTrackRef->recHitsEnd() ;
349 elHitsIt++, gsfHitCounter++ )
351 if (!((**elHitsIt).isValid()))
355 uint32_t gsfHit = gsfHitPattern.
getHitPattern(gsfHitCounter) ;
363 int ctfHitsCounter = 0 ;
364 numCtfInnerHits = 0 ;
366 for ( ctfHitsIt = ctfTkIter->recHitsBegin() ;
367 ctfHitsIt != ctfTkIter->recHitsEnd() ;
368 ctfHitsIt++, ctfHitsCounter++ )
370 if(!((**ctfHitsIt).isValid()))
373 uint32_t ctfHit = ctfHitPattern.
getHitPattern(ctfHitsCounter);
391 if ((numGsfInnerHits==0)||(numCtfInnerHits==0))
394 if ( static_cast<float>(shared)/
min(numGsfInnerHits,numCtfInnerHits) > shFracInnerHits )
396 shFracInnerHits =
static_cast<float>(shared)/
min(numGsfInnerHits, numCtfInnerHits);
397 ctfTrackRef =
TrackRef(currentCtfTracks,counter);
417 int chargeGsf = gsfTrackRef->charge() ;
419 info.
isGsfCtfConsistent = (ctfTrackRef.isNonnull()&&((chargeGsf*ctfTrackRef->charge())>0)) ;
426 { charge = ctfTrackRef->charge() ; }
435 float dphimin = 1.e30 ;
436 for (
CaloCluster_iterator bc=superClusterRef->clustersBegin(); bc!=superClusterRef->clustersEnd(); bc++)
438 GlobalPoint posclu((*bc)->position().x(),(*bc)->position().y(),(*bc)->position().z()) ;
440 if (!tempTSOS.isValid()) tempTSOS=outTSOS ;
458 if (!innTSOS.isValid())
return false;
465 if (!vtxTSOS.isValid()) vtxTSOS=innTSOS;
469 if (!outTSOS.isValid())
return false;
473 GlobalPoint(superClusterRef->seed()->position().x(),
474 superClusterRef->seed()->position().y(),
475 superClusterRef->seed()->position().z()));
476 if (!seedTSOS.isValid()) seedTSOS=outTSOS;
480 if (!sclTSOS.isValid()) sclTSOS=outTSOS;
507 double scale = superClusterRef->energy()/vtxMom.mag() ;
510 superClusterRef->energy() ) ;
518 int detector = seedXtalId.
subdetId() ;
523 std::vector<int> recHitFlagsToBeExcluded ;
524 std::vector<int> recHitSeverityToBeExcluded ;
539 std::vector<float> covariances =
EcalClusterTools::covariances(seedCluster,recHits,topology,geometry,recHitFlagsToBeExcluded,recHitSeverityToBeExcluded,severityLevelAlgo) ;
540 std::vector<float> localCovariances =
EcalClusterTools::localCovariances(seedCluster,recHits,topology,recHitFlagsToBeExcluded,recHitSeverityToBeExcluded,severityLevelAlgo) ;
544 showerShape.
e1x5 =
EcalClusterTools::e1x5(seedCluster,recHits,topology,recHitFlagsToBeExcluded,recHitSeverityToBeExcluded,severityLevelAlgo) ;
546 showerShape.
e5x5 =
EcalClusterTools::e5x5(seedCluster,recHits,topology,recHitFlagsToBeExcluded,recHitSeverityToBeExcluded,severityLevelAlgo) ;
547 showerShape.
r9 =
EcalClusterTools::e3x3(seedCluster,recHits,topology,recHitFlagsToBeExcluded,recHitSeverityToBeExcluded,severityLevelAlgo)/theClus->rawEnergy() ;
584 :
generalData_(
new GeneralData(inputCfg,strategyCfg,cutsCfg,cutsCfgPflow,hcalCfg,hcalCfgPflow,isoCfg,recHitsCfg,superClusterErrorFunction,crackCorrectionFunction)),
600 bool updateField(
false);
607 bool updateGeometry(
false);
609 updateGeometry =
true;
614 if ( updateField || updateGeometry ) {
652 GsfElectronPtrCollection::const_iterator it ;
657 { outEle.push_back(**it) ; }
663 {
throw cms::Exception(
"GsfElectronAlgo|InternalError")<<
"unexpected event data" ; }
690 float extRadiusSmall=0.3, extRadiusLarge=0.4 ;
696 float egHcalIsoConeSizeOutSmall=0.3, egHcalIsoConeSizeOutLarge=0.4;
698 int egHcalDepth1=1, egHcalDepth2=2;
738 {
throw cms::Exception(
"GsfElectronAlgo|InternalError")<<
"lacking event data" ; }
745 LogTrace(
"GsfElectronAlgo") <<
"========== " << title <<
" ==========";
748 GsfElectronPtrCollection::const_iterator it ;
751 LogTrace(
"GsfElectronAlgo") <<
"Electron with charge, pt, eta, phi: " << (*it)->charge() <<
" , "
752 << (*it)->pt() <<
" , " << (*it)->eta() <<
" , " << (*it)->phi();
754 LogTrace(
"GsfElectronAlgo") <<
"=================================================";
760 {
throw cms::Exception(
"GsfElectronAlgo|InternalError")<<
"unexpected electron data" ; }
763 for (
unsigned int i=0 ;
i<coreCollection->size() ; ++
i )
767 bool coreFound =
false ;
768 GsfElectronPtrCollection::const_iterator itrEle ;
774 if ((*itrEle)->core()==coreRef)
780 if (coreFound) continue ;
783 if (coreRef->superCluster().
isNull())
continue ;
804 GsfElectronCollection::const_iterator oldElectron ;
806 ( oldElectron = oldElectrons->begin() ;
807 oldElectron != oldElectrons->end() ;
811 const GsfTrackRef oldElectronGsfTrackRef = oldCoreRef->gsfTrack() ;
813 for ( icore=0 ; icore<newCores->size() ; ++icore )
815 if (oldElectronGsfTrackRef==(*newCores)[icore].gsfTrack())
829 GsfElectronCollection::const_iterator pfElectron ;
831 GsfElectronPtrCollection::iterator el ;
852 ( pfElectron = pfElectrons->begin() ; pfElectron != pfElectrons->end() ; pfElectron++ )
854 if (pfElectron->gsfTrack()==(*el)->gsfTrack())
858 edm::LogWarning(
"GsfElectronProducer")<<
"associated pfGsfElectron already found" ;
863 (*el)->setPfIsolationVariables(pfElectron->pfIsolationVariables()) ;
864 (*el)->setMvaInput(pfElectron->mvaInput()) ;
865 (*el)->setMvaOutput(pfElectron->mvaOutput()) ;
866 if ((*el)->ecalDrivenSeed())
867 { (*el)->setP4(GsfElectron::P4_PFLOW_COMBINATION,pfElectron->p4(GsfElectron::P4_PFLOW_COMBINATION),pfElectron->p4Error(GsfElectron::P4_PFLOW_COMBINATION),
false) ; }
869 { (*el)->setP4(GsfElectron::P4_PFLOW_COMBINATION,pfElectron->p4(GsfElectron::P4_PFLOW_COMBINATION),pfElectron->p4Error(GsfElectron::P4_PFLOW_COMBINATION),
true) ; }
870 double noCutMin = -999999999. ;
871 if ((*el)->mva()<noCutMin) {
throw cms::Exception(
"GsfElectronAlgo|UnexpectedMvaValue")<<
"unexpected MVA value: "<<(*el)->mva() ; }
880 if (!((*el)->pflowSuperCluster().isNull()))
884 (*el)->setPfShowerShape(pflowShowerShape) ;
886 else if ((*el)->passingPflowPreselection())
887 {
edm::LogError(
"GsfElectronCoreProducer")<<
"Preselected tracker driven GsfTrack with no associated pflow SuperCluster." ; }
894 if (sc->clustersSize()>1)
897 (*el)->setPfSuperClusterFbrem((sc->energy()-(*first)->energy())/sc->energy()) ;
900 { (*el)->setPfSuperClusterFbrem(0.) ; }
916 LogTrace(
"GsfElectronAlgo")<<
"========== removed not preselected "<<ei<<
"/"<<emax<<
"==========" ;
930 bool eg = ele->
core()->ecalDrivenSeed() ;
931 bool pf = ele->
core()->trackerDrivenSeed() && !ele->
core()->ecalDrivenSeed() ;
932 if (eg&&pf) {
throw cms::Exception(
"GsfElectronAlgo|BothEcalAndPureTrackerDriven")<<
"An electron cannot be both egamma and purely pflow" ; }
933 if ((!eg)&&(!pf)) {
throw cms::Exception(
"GsfElectronAlgo|NeitherEcalNorPureTrackerDriven")<<
"An electron cannot be neither egamma nor purely pflow" ; }
938 double etValue = ele->
superCluster()->energy()/cosh(etaValue) ;
939 LogTrace(
"GsfElectronAlgo") <<
"Et : " << etValue ;
942 LogTrace(
"GsfElectronAlgo") <<
"Et criteria are satisfied";
946 LogTrace(
"GsfElectronAlgo") <<
"E/p : " << eopValue ;
951 LogTrace(
"GsfElectronAlgo") <<
"E/p criteria are satisfied";
958 bool HoEveto =
false ;
962 LogTrace(
"GsfElectronAlgo") <<
"H/E criteria are satisfied";
966 LogTrace(
"GsfElectronAlgo") <<
"delta eta : " << deta ;
969 LogTrace(
"GsfElectronAlgo") <<
"Delta eta criteria are satisfied";
973 LogTrace(
"GsfElectronAlgo") <<
"delta phi : " << dphi;
976 LogTrace(
"GsfElectronAlgo") <<
"Delta phi criteria are satisfied";
982 LogTrace(
"GsfElectronAlgo") <<
"Sigma ieta ieta criteria are satisfied";
988 LogTrace(
"GsfElectronAlgo") <<
"Fiducial flags criteria are satisfied";
996 {
throw cms::Exception(
"GsfElectronAlgo|NotElectronSeed")<<
"The GsfTrack seed is not an ElectronSeed ?!" ; }
998 {
if (elseed->subDet2()==6)
return ; }
1003 LogTrace(
"GsfElectronAlgo") <<
"TIP criterion is satisfied" ;
1005 LogTrace(
"GsfElectronAlgo") <<
"All cut based criteria are satisfied" ;
1013 if (ele->
core()->ecalDrivenSeed())
1019 {
LogTrace(
"GsfElectronAlgo") <<
"Main mva criterion is satisfied" ; }
1123 int detector = seedXtalId.
subdetId() ;
1154 {
throw cms::Exception(
"GsfElectronAlgo|UnknownXtalRegion")<<
"createElectron(): do not know if it is a barrel or endcap seed cluster !!!!" ; }
1182 ConversionInfo conversionInfo = conversionFinder.getConversionInfo
1186 conversionVars.
flags = conversionInfo.
flag() ;
1187 conversionVars.
dist = conversionInfo.
dist() ;
1188 conversionVars.
dcot = conversionInfo.
dcot() ;
1190 if ((conversionVars.
flags==0)
or(conversionVars.
flags==1))
1192 else if ((conversionVars.
flags==2)
or(conversionVars.
flags==3))
1203 tcMatching, tkExtra, ctfInfo,
1204 fiducialFlags,showerShape,
1207 ele->
setP4(GsfElectron::P4_FROM_SUPER_CLUSTER,momentum,0,
true) ;
1221 if (sc->clustersSize()>1)
1238 if (ele->
core()->ecalDrivenSeed())
1252 if (ele->
core()->ecalDrivenSeed())
1286 LogTrace(
"GsfElectronAlgo")<<
"Constructed new electron with energy "<< ele->
p4().e() ;
1301 GsfElectronPtrCollection::iterator e1, e2 ;
1315 (*e1)->clearAmbiguousGsfTracks() ;
1316 (*e1)->setAmbiguous(
false) ;
1329 GsfPFRecTrackCollection::const_iterator gsfPfRecTrack ;
1330 for ( gsfPfRecTrack=gsfPfRecTrackCollection->begin() ;
1331 gsfPfRecTrack!=gsfPfRecTrackCollection->end() ;
1334 if (gsfPfRecTrack->gsfTrackRef()==(*e1)->gsfTrack())
1338 edm::LogWarning(
"GsfElectronAlgo")<<
"associated gsfPfRecTrack already found" ;
1343 const std::vector<reco::GsfPFRecTrackRef> & duplicates(gsfPfRecTrack->convBremGsfPFRecTrackRef()) ;
1344 std::vector<reco::GsfPFRecTrackRef>::const_iterator duplicate ;
1345 for ( duplicate = duplicates.begin() ; duplicate != duplicates.end() ; duplicate ++ )
1346 { (*e1)->addAmbiguousGsfTrack((*duplicate)->gsfTrackRef()) ; }
1360 if ((*e1)->ambiguous())
continue ;
1361 if ( ignoreNotPreselected && !
isPreselected(*e1) )
continue ;
1366 <<
"Blessing electron with E/P " << (*e1)->eSuperClusterOverP()
1367 <<
", cluster " << scRef1.
get()
1368 <<
" & track " << (*e1)->gsfTrack().get() ;
1375 if ((*e2)->ambiguous())
continue ;
1376 if ( ignoreNotPreselected && !
isPreselected(*e2) )
continue ;
1382 bool sameCluster =
false ;
1384 { sameCluster = (scRef1==scRef2) ; }
1402 <<
"Discarding electron with E/P " << (*e2)->eSuperClusterOverP()
1403 <<
", cluster " << scRef2.
get()
1404 <<
" and track " << (*e2)->gsfTrack().get() ;
1405 (*e1)->addAmbiguousGsfTrack((*e2)->gsfTrack()) ;
1406 (*e2)->setAmbiguous(
true) ;
1408 else if ((*e1)->gsfTrack()==(*e2)->gsfTrack())
1411 <<
"Forgetting electron with E/P " << (*e2)->eSuperClusterOverP()
1412 <<
", cluster " << scRef2.
get()
1413 <<
" and track " << (*e2)->gsfTrack().get() ;
1414 (*e2)->setAmbiguous(
true) ;
1427 LogTrace(
"GsfElectronAlgo")<<
"========== remove ambiguous "<<ei<<
"/"<<emax<<
"==========" ;
1428 if ((*eitr)->ambiguous())
TrajectoryStateOnSurface constrainAtBeamSpot(const reco::GsfTrack &, const reco::BeamSpot &) const
(multi)TSOS after including the beamspot
CaloClusterPtr electronCluster() const
ElectronHcalHelper * hcalHelperPflow
edm::Handle< reco::TrackCollection > originalCtfTracks
unsigned long long cacheIdentifier() const
edm::Handle< reco::ElectronSeedCollection > seeds
const MultiTrajectoryStateMode * mtsMode
bool isPreselected(reco::GsfElectron *ele)
const math::XYZPoint & position() const
cluster centroid position
void setTrackFbrem(float fbrem)
edm::Handle< edm::ValueMap< float > > pfMva
void setP4(P4Kind kind, const LorentzVector &p4, float p4Error, bool setCandidate)
GeneralData * generalData_
const CutsConfiguration cutsCfgPflow
static bool isNextToEtaBoundary(EBDetId id)
EgammaTowerIsolation * hadDepth1Isolation04Bc
reco::GsfTrackRef conversionPartnerGsfTk() const
bool originalGsfTrackCollectionRetreived
void setPassCutBasedPreselection(bool flag)
bool positionFromModeCartesian(const TrajectoryStateOnSurface tsos, GlobalPoint &position) const
double intRadiusEcalEndcaps
unsigned long long cacheIDGeom
std::vector< int > recHitSeverityToBeExcludedEndcaps
unsigned ambClustersOverlapStrategy
void readEvent(const edm::Event &)
EgammaTowerIsolation * hadDepth1Isolation03Bc
double radiusOfConversion() const
void clonePreviousElectrons()
const LorentzVector & p4(P4Kind kind) const
float eSuperClusterOverP() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
void retreiveOriginalTrackCollections(const reco::TrackRef &, const reco::GsfTrackRef &)
bool ecalDrivenEcalErrorFromClassBasedParameterization
float hcalDepth2OverEcal() const
void doSeverityChecks(const EcalRecHitCollection *const recHits, const std::vector< int > v)
double getEtSum(const reco::Candidate *emObject) const
const IsolationConfiguration isoCfg
double intRadiusEcalBarrel
unsigned ambSortingStrategy
void calculateShowerShape(const reco::SuperClusterRef &, bool pflow, reco::GsfElectron::ShowerShape &)
void beginEvent(edm::Event &)
unsigned long long cacheIDTopo
GeneralData(const InputTagsConfiguration &, const StrategyConfiguration &, const CutsConfiguration &cutsCfg, const CutsConfiguration &cutsCfgPflow, const ElectronHcalHelper::Configuration &hcalCfg, const ElectronHcalHelper::Configuration &hcalCfgPflow, const IsolationConfiguration &, const EcalRecHitsConfiguration &, EcalClusterFunctionBaseClass *superClusterErrorFunction, EcalClusterFunctionBaseClass *crackCorrectionFunction)
double maxSigmaIetaIetaEndcaps
TrajectoryStateOnSurface sclTSOS
const EcalRecHitsConfiguration recHitsCfg
Geom::Phi< T > phi() const
EventSetupData * eventSetupData_
Global3DPoint GlobalPoint
std::vector< Track > TrackCollection
collection of Tracks
edm::Handle< EcalRecHitCollection > endcapRecHits
double hcalESumDepth2BehindClusters(const std::vector< CaloTowerDetId > &towers)
std::vector< CaloTowerDetId > hcalTowersBehindClusters(const reco::SuperCluster &sc)
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
double maxDeltaEtaEndcaps
void checkSetup(const edm::EventSetup &)
bool passingCutBasedPreselection() const
float deltaEtaSuperClusterAtVtx
bool passingMvaPreselection() const
float deltaPhiSuperClusterAtVtx
void computeCharge(int &charge, reco::GsfElectron::ChargeInfo &info)
bool momentumFromModeCartesian(const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const
void checkCtfTrack(edm::Handle< reco::TrackCollection > currentCtfTracks)
float hcalDepth1TowerSumEt
double hcalESumDepth1BehindClusters(const std::vector< CaloTowerDetId > &towers)
const InputTagsConfiguration inputCfg
edm::ESHandle< EcalSeverityLevelAlgo > sevLevel
TrajectoryStateOnSurface innTSOS
void doFlagChecks(const std::vector< int > v)
float hcalDepth1TowerSumEtBc
std::vector< GsfElectron > GsfElectronCollection
collection of GsfElectron objects
EgammaTowerIsolation * hadDepth1Isolation03
const StrategyConfiguration strategyCfg
double getTowerEtSum(const reco::Candidate *, const std::vector< CaloTowerDetId > *detIdToExclude=0) const
edm::ESHandle< CaloTopology > caloTopo
reco::TrackRef conversionPartnerCtfTk() const
void setSuperClusterFbrem(float fbrem)
CaloClusterPtr electronCluster
static bool stripTIDHitFilter(uint32_t pattern)
EgammaRecHitIsolation * ecalBarrelIsol04
TrajectoryStateOnSurface constrainedVtxTSOS
virtual float getValue(const reco::BasicCluster &, const EcalRecHitCollection &) const =0
bool isGsfCtfScPixConsistent
EgammaTowerIsolation * hadDepth2Isolation03
EgammaTowerIsolation * hadDepth1Isolation04
bool isNonnull() const
Checks for non-null.
ElectronTkIsolation * tkIsolation03
void setUseNumCrystals(bool b=true)
float deltaEtaSuperClusterTrackAtVtx() const
std::vector< int > recHitSeverityToBeExcludedBarrel
void setCorrectedEcalEnergyError(float newEnergyError)
bool isNull() const
Checks for null.
float sigmaIetaIeta() const
float eSeedClusterOverPout
void simpleParameterizationUncertainty(reco::GsfElectron &)
unsigned long long cacheSevLevel
void setCutBasedPreselectionFlag(reco::GsfElectron *ele, const reco::BeamSpot &)
double dPhi(double phi1, double phi2)
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
EgammaRecHitIsolation * ecalEndcapIsol03
EgammaTowerIsolation * hadDepth2Isolation03Bc
RealType normalized_phi(RealType phi)
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
GsfConstraintAtVertex * constraintAtVtx
static bool isNextToPhiBoundary(EBDetId id)
edm::Handle< EcalRecHitCollection > barrelRecHits
float deltaPhiSuperClusterTrackAtVtx() const
std::vector< GsfElectronCore > GsfElectronCoreCollection
void correct(reco::GsfElectron &, TrajectoryStateOnSurface &)
static bool pixelHitFilter(uint32_t pattern)
float hcalOverEcal() const
void setPassMvaPreselection(bool flag)
bool pureTrackerDrivenEcalErrorFromSimpleParameterization
std::vector< CaloTowerDetId > hcalTowersBehindClusters
float deltaEtaSeedClusterAtCalo
const MultiTrajectoryStateTransform * mtsTransform
static bool isNextToRingBoundary(EEDetId id)
std::list< reco::GsfElectron * > GsfElectronPtrCollection
bool originalCtfTrackCollectionRetreived
double hcalESumDepth2(const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=0)
double energy() const
cluster energy
const CutsConfiguration cutsCfg
ElectronHcalHelper * hcalHelper
const reco::BeamSpot * beamspot
edm::ESHandle< MagneticField > magField
GsfElectronPtrCollection * electrons
CaloClusterPtr getEleBasicCluster(const MultiTrajectoryStateTransform *)
static bool isNextToDBoundary(EEDetId id)
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
double maxDeltaPhiEndcaps
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< int > recHitFlagsToBeExcludedBarrel
void setIsolation04(const IsolationVariables &dr04)
unsigned long long cacheIDMagField
void classify(reco::GsfElectron &)
EgammaTowerIsolation * hadDepth2Isolation04Bc
unsigned long long cacheIDTDGeom
edm::Handle< reco::GsfElectronCollection > previousElectrons
float hcalDepth2TowerSumEtBc
float hcalDepth1OverEcal() const
void classBasedParameterizationEnergy(reco::GsfElectron &, const reco::BeamSpot &bs)
EgammaRecHitIsolation * ecalBarrelIsol03
reco::TrackRef ctfTrackRef
edm::Handle< reco::GsfElectronCollection > pflowElectrons
EcalRecHitMetaCollection * ecalBarrelHitsMeta
bool isGsfScPixConsistent
GsfElectronAlgo(const InputTagsConfiguration &, const StrategyConfiguration &, const CutsConfiguration &cutsCfg, const CutsConfiguration &cutsCfgPflow, const ElectronHcalHelper::Configuration &hcalCfg, const ElectronHcalHelper::Configuration &hcalCfgPflow, const IsolationConfiguration &, const EcalRecHitsConfiguration &, EcalClusterFunctionBaseClass *superClusterErrorFunction, EcalClusterFunctionBaseClass *crackCorrectionFunction)
std::vector< int > recHitFlagsToBeExcludedEndcaps
float hcalDepth2TowerSumEt
EcalClusterFunctionBaseClass * superClusterErrorFunction
double maxSigmaIetaIetaBarrel
REF castTo() const
cast to a concrete type
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
void setPflowPreselectionFlag(reco::GsfElectron *ele)
const MvaOutput & mvaOutput() const
T const * product() const
const reco::GsfTrackRef gsfTrackRef
bool ecalDrivenEcalEnergyFromClassBasedParameterization
void ele_convert(const Type1 &obj1, Type2 &obj2)
T const * product() const
float hcalDepth2OverEcalBc
bool calculateTSOS(const MultiTrajectoryStateTransform *, GsfConstraintAtVertex *)
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual GsfElectronCoreRef core() const
float deltaEtaEleClusterAtCalo
double getPtTracks(const reco::GsfElectron *) const
TrajectoryStateOnSurface seedTSOS
float hcalDepth1OverEcalBc
void refineWithPflow(reco::GsfElectron &)
void setIsolation03(const IsolationVariables &dr03)
ESHandle< TrackerGeometry > geometry
edm::Handle< reco::GsfTrackCollection > originalGsfTracks
float eEleClusterOverPout
EgammaTowerIsolation * hadDepth2Isolation04
void setVetoClustered(bool b=true)
const reco::GsfElectronCoreRef coreRef
float deltaPhiEleClusterAtCalo
edm::Handle< reco::TrackCollection > currentCtfTracks
edm::ESHandle< CaloGeometry > caloGeom
EcalClusterFunctionBaseClass * crackCorrectionFunction
void removeAmbiguousElectrons()
double hcalESumDepth1(const reco::SuperCluster &, const std::vector< CaloTowerDetId > *excludeTowers=0)
void displayInternalElectrons(const std::string &title) const
void setPassPflowPreselection(bool flag)
EgammaRecHitIsolation * ecalEndcapIsol04
void removeNotPreselectedElectrons()
const reco::SuperClusterRef superClusterRef
TrajectoryStateOnSurface eleTSOS
float deltaPhiSeedClusterAtCalo
const Point & position() const
position
TrajectoryStateOnSurface outTSOS
ElectronData(const reco::GsfElectronCoreRef &core, const reco::BeamSpot &bs)
void copyElectrons(reco::GsfElectronCollection &)
ProductID id() const
Accessor for product ID.
ElectronTkIsolation * tkIsolation04
ElectronData * electronData_
edm::ESHandle< TrackerGeometry > trackerHandle
void setAmbiguityData(bool ignoreNotPreselected=true)
T const * get() const
Returns C++ pointer to the item.
uint32_t getHitPattern(int position) const
virtual void init(const edm::EventSetup &es)=0
edm::Handle< reco::GsfElectronCoreCollection > coreElectrons
GlobalVector vtxMomWithConstraint
int ietaAbs() const
get the absolute value of the crystal ieta
void classBasedParameterizationUncertainty(reco::GsfElectron &)
edm::Handle< CaloTowerCollection > towers
void calculateMode(const MultiTrajectoryStateMode *mtsMode)
math::PtEtaPhiELorentzVectorF LorentzVector
EcalRecHitMetaCollection * ecalEndcapHitsMeta
Global3DVector GlobalVector
void checkSetup(const edm::EventSetup &)
edm::Handle< reco::GsfPFRecTrackCollection > gsfPfRecTracks
TrajectoryStateOnSurface vtxTSOS
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack
static bool stripTIBHitFilter(uint32_t pattern)
Candidate::LorentzVector calculateMomentum()
bool passingPflowPreselection() const
const reco::BeamSpot beamSpot