55 LogInfo(
"PFElecTkProducer")<<
"PFElecTkProducer started";
58 (
"GsfTrackModuleLabel");
64 (
"PrimaryVertexLabel");
83 produces<GsfPFRecTrackCollection>();
84 produces<GsfPFRecTrackCollection>(
"Secondary" ).setBranchAlias(
"secondary" );
109 string mvaWeightFileConvBremBarrelLowPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileBarrelLowPt");
110 string mvaWeightFileConvBremBarrelHighPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileBarrelHighPt");
111 string mvaWeightFileConvBremEndcapsLowPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileEndcapsLowPt");
112 string mvaWeightFileConvBremEndcapsHighPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileEndcapsHighPt");
114 if(useConvBremFinder_) {
140 <<
" in run "<<iEvent.
id().
run();
143 auto_ptr< GsfPFRecTrackCollection >
147 auto_ptr< GsfPFRecTrackCollection >
180 LogError(
"PFElecTkProducer")<<
" cannot get PFNuclear : "
182 <<
" please set useNuclear=False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
190 LogError(
"PFElecTkProducer")<<
" cannot get PFConversions : "
192 <<
" please set useConversions=False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
201 LogError(
"PFElecTkProducer")<<
" cannot get PFV0 : "
203 <<
" please set useV0=False RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
209 vector<Trajectory> tjvec(0);
214 <<
" cannot get Trajectories of : "
216 <<
" please set TrajInEvents = False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
218 tjvec= *(TrajectoryCollection.
product());
222 vector<reco::GsfPFRecTrack> selGsfPFRecTracks;
223 vector<reco::GsfPFRecTrack> primaryGsfPFRecTracks;
224 std::map<unsigned int, std::vector<reco::GsfPFRecTrack> > GsfPFMap;
227 for (
unsigned int igsf=0; igsf<gsftracks.size();igsf++) {
231 int kf_ind=
FindPfRef(PfRTkColl,gsftracks[igsf],
false);
242 bool isEcalDriven =
true;
243 bool isTrackerDriven =
true;
245 if (&(*trackRef->seedRef())==0) {
246 isEcalDriven =
false;
247 isTrackerDriven =
false;
251 if(SeedRef->caloCluster().
isNull())
252 isEcalDriven =
false;
253 if(SeedRef->ctfTrack().
isNull())
254 isTrackerDriven =
false;
257 if(isFifthStepTrack &&
259 isTrackerDriven ==
false &&
264 if(isFifthStepTrack &&
266 isEcalDriven ==
false &&
271 if(isFifthStepTrack &&
293 bool validgsfbrem =
false;
309 if(validgsfbrem && passSel)
310 selGsfPFRecTracks.push_back(
pftrack_);
314 unsigned int count_primary = 0;
315 if(selGsfPFRecTracks.size() > 0) {
316 for(
unsigned int ipfgsf=0; ipfgsf<selGsfPFRecTracks.size();ipfgsf++) {
318 vector<unsigned int> secondaries(0);
323 keepGsf =
resolveGsfTracks(selGsfPFRecTracks,ipfgsf,secondaries,theEcalClusters);
327 if(keepGsf ==
true) {
331 pfNuclears,pfConversions,pfV0,
333 theEcalClusters,selGsfPFRecTracks[ipfgsf])) {
335 for(
unsigned int ii = 0;
ii<convBremPFRecTracks.size();
ii++) {
336 selGsfPFRecTracks[ipfgsf].addConvBremPFRecTrackRef(convBremPFRecTracks[
ii]);
342 primaryGsfPFRecTracks.push_back(selGsfPFRecTracks[ipfgsf]);
348 unsigned int primGsfIndex = selGsfPFRecTracks[ipfgsf].trackId();
349 vector<reco::GsfPFRecTrack> trueGsfPFRecTracks;
350 if(secondaries.size() > 0) {
352 for(
unsigned int isecpfgsf=0; isecpfgsf<secondaries.size();isecpfgsf++) {
354 PFRecTrackRef refsecKF = selGsfPFRecTracks[(secondaries[isecpfgsf])].kfPFRecTrackRef();
356 unsigned int secGsfIndex = selGsfPFRecTracks[(secondaries[isecpfgsf])].trackId();
357 GsfTrackRef secGsfRef = selGsfPFRecTracks[(secondaries[isecpfgsf])].gsfTrackRef();
363 primGsfIndex, secGsfRef,
371 primGsfIndex, secGsfRef,
375 bool validgsfbrem =
false;
378 gsftracks[secGsfIndex],
383 gsftracks[secGsfIndex],
388 gsfPFRecTrackCollectionSecondary->push_back(
secpftrack_);
393 GsfPFMap.insert(pair<
unsigned int,std::vector<reco::GsfPFRecTrack> >(count_primary,trueGsfPFRecTracks));
394 trueGsfPFRecTracks.clear();
402 iEvent.
put(gsfPFRecTrackCollectionSecondary,
"Secondary");
408 for(
unsigned int iGSF = 0; iGSF<primaryGsfPFRecTracks.size();iGSF++){
409 gsfPFRecTrackCollection->push_back(primaryGsfPFRecTracks[iGSF]);
411 iEvent.
put(gsfPFRecTrackCollection);
413 selGsfPFRecTracks.clear();
415 primaryGsfPFRecTracks.clear();
421 std::vector<reco::GsfPFRecTrack>& gsfPFRecTrackPrimary,
422 const std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >& MapPrimSec) {
424 unsigned int csecgsf=0;
425 for (
std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >::const_iterator igsf = MapPrimSec.begin();
426 igsf != MapPrimSec.end(); igsf++,cgsf++) {
427 vector<reco::GsfPFRecTrack> SecGsfPF = igsf->second;
428 for (
unsigned int iSecGsf=0; iSecGsf < SecGsfPF.size(); iSecGsf++) {
430 gsfPFRecTrackPrimary[cgsf].addConvBremGsfPFRecTrackRef(refgprt);
444 if (&(*gsftk.
seedRef())==0)
return -1;
447 if (ElSeedRef->ctfTrack().
isNull()){
448 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
449 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
452 unsigned int ish_max=0;
456 for(;pft!=pftend;++pft){
459 float dph= fabs(pft->trackRef()->phi()-gsftk.
phi());
461 float det=fabs(pft->trackRef()->eta()-gsftk.
eta());
462 float dr =
sqrt(dph*dph+det*det);
465 pft->trackRef()->recHitsBegin();
467 pft->trackRef()->recHitsEnd();
471 for(;hhit!=hhit_end;++hhit){
472 if (!(*hhit)->isValid())
continue;
477 for(;hit!=hit_end;++hit){
478 if (!(hit->isValid()))
continue;
488 ((ish==ish_max)&&(dr<dr_min))){
498 if (ibest<0)
return -1;
500 if((ish_max==0) || (dr_min>0.05))
return -1;
501 if(otherColl && (ish_max==0))
return -1;
507 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
508 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
511 for(;pft!=pftend;++pft){
513 if (pft->trackRef()==ElSeedRef->ctfTrack()){
523 bool isFithStep =
false;
526 TrackRef kfref = pfKfTrack->trackRef();
527 unsigned int Algo = 0;
528 switch (kfref->algo()) {
529 case TrackBase::undefAlgorithm:
531 case TrackBase::iter0:
532 case TrackBase::iter1:
533 case TrackBase::iter2:
536 case TrackBase::iter3:
539 case TrackBase::iter4:
542 case TrackBase::iter5:
545 case TrackBase::iter6:
561 if (&(*gsftk.
seedRef())==0)
return false;
564 bool passCut =
false;
565 if (ElSeedRef->ctfTrack().
isNull()){
566 if(ElSeedRef->caloCluster().
isNull())
return passCut;
570 float caloEne = scRef->energy();
571 float feta = fabs(scRef->eta()-gsftk.
etaMode());
572 float fphi = fabs(scRef->phi()-gsftk.
phiMode());
587 vector<unsigned int> &secondaries,
590 bool n_keepGsf =
true;
594 if (&(*nGsfTrack->seedRef())==0)
return false;
600 float nPin = nGsfTrack->pMode();
601 if(inTSOS.isValid()){
603 nPin = ninnMom.
mag();
606 float neta = nGsfTrack->innerMomentum().eta();
607 float nphi = nGsfTrack->innerMomentum().phi();
613 cout <<
" PFElecTkProducer:: considering track " << nGsfTrack->pt()
614 <<
" eta,phi " << nGsfTrack->eta() <<
", " << nGsfTrack->phi() << endl;
617 for (
unsigned int igsf=0; igsf< GsfPFVec.size();igsf++) {
622 cout <<
" PFElecTkProducer:: and comparing with track " << iGsfTrack->pt()
623 <<
" eta,phi " << iGsfTrack->eta() <<
", " << iGsfTrack->phi() << endl;
625 float ieta = iGsfTrack->innerMomentum().eta();
626 float iphi = iGsfTrack->innerMomentum().phi();
627 float feta = fabs(neta - ieta);
628 float fphi = fabs(nphi - iphi);
633 if(feta < 0.5 && fabs(fphi) < 1.0) {
635 cout <<
" Entering angular superloose preselection " << endl;
639 float iPin = iGsfTrack->pMode();
642 iPin = i_innMom.
mag();
645 if (&(*iGsfTrack->seedRef())==0)
continue;
648 float SCEnergy = -1.;
650 bool areBothGsfEcalDriven =
false;;
651 bool isSameSC =
isSameEgSC(nElSeedRef,iElSeedRef,areBothGsfEcalDriven,SCEnergy);
654 if(areBothGsfEcalDriven ) {
656 float nEP = SCEnergy/nPin;
657 float iEP = SCEnergy/iPin;
659 cout <<
" Entering SAME supercluster case "
661 <<
" iEP " << iEP << endl;
669 bool isSameLayer =
false;
670 bool iGsfInnermostWithLostHits =
675 cout <<
" iGsf is InnerMostWithLostHits " << iGsfInnermostWithLostHits
676 <<
" isSameLayer " << isSameLayer << endl;
678 if (iGsfInnermostWithLostHits) {
682 else if(isSameLayer){
683 if(fabs(iEP-1) < fabs(nEP-1)) {
688 secondaries.push_back(igsf);
693 secondaries.push_back(igsf);
699 float minBremDphi =
minTangDist(GsfPFVec[ngsf],GsfPFVec[igsf]);
702 bool isBothGsfTrackerDriven =
false;
703 bool nEcalDriven =
false;
704 bool iEcalDriven =
false;
710 isBothGsfTrackerDriven,
717 bool isSameLayer =
false;
718 bool iGsfInnermostWithLostHits =
725 cout <<
" Sharing ECAL energy passed "
726 <<
" nEtot " << nETot
727 <<
" iEtot " << iETot << endl;
728 if(isBothGsfTrackerDriven)
729 cout <<
" Both Track are trackerDriven " << endl;
733 if (iGsfInnermostWithLostHits) {
737 else if(isSameLayer){
746 if(isBothGsfTrackerDriven ==
false) {
753 secondaries.push_back(igsf);
770 float nEP = ETot/nPin;
771 float iEP = ETot/iPin;
775 cout <<
" nETot " << nETot
776 <<
" iETot " << iETot
777 <<
" ETot " << ETot << endl
781 <<
" iEP " << iEP << endl;
784 if(fabs(iEP-1) < fabs(nEP-1)) {
789 secondaries.push_back(igsf);
794 secondaries.push_back(igsf);
799 bool secPushedBack =
false;
800 if(nEcalDriven ==
false && nETot == 0.) {
804 else if(iEcalDriven ==
false && iETot == 0.) {
805 secondaries.push_back(igsf);
806 secPushedBack =
true;
809 cout <<
" Close Tracks "
810 <<
" feta " << feta <<
" fabs(fphi) " << fabs(fphi)
811 <<
" minBremDphi " << minBremDphi
812 <<
" nETot " << nETot
813 <<
" iETot " << iETot
814 <<
" nLostHits " << nGsfTrack->trackerExpectedHitsInner().numberOfLostHits()
815 <<
" iLostHits " << iGsfTrack->trackerExpectedHitsInner().numberOfLostHits() << endl;
819 if (iGsfInnermostWithLostHits) {
823 else if(isSameLayer ==
false) {
824 if(secPushedBack ==
false)
825 secondaries.push_back(igsf);
829 else if(feta < 0.1 && minBremDphi < 0.2){
833 cout <<
" Close Tracks and failed all the conditions "
834 <<
" feta " << feta <<
" fabs(fphi) " << fabs(fphi)
835 <<
" minBremDphi " << minBremDphi
836 <<
" nETot " << nETot
837 <<
" iETot " << iETot
838 <<
" nLostHits " << nGsfTrack->trackerExpectedHitsInner().numberOfLostHits()
839 <<
" iLostHits " << iGsfTrack->trackerExpectedHitsInner().numberOfLostHits() << endl;
841 if(nEcalDriven ==
false && nETot == 0.) {
858 float minDphi = 1000.;
861 std::vector<reco::PFBrem> primPFBrem = primGsf.
PFRecBrem();
862 std::vector<reco::PFBrem> secPFBrem = secGsf.
PFRecBrem();
865 unsigned int cbrem = 0;
866 for (
unsigned isbrem = 0; isbrem < secPFBrem.size(); isbrem++) {
867 if(secPFBrem[isbrem].indTrajPoint() == 99)
continue;
870 if( ! atSecECAL.
isValid() )
continue;
873 unsigned int sbrem = 0;
874 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
875 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
878 if( ! atPrimECAL.
isValid() )
continue;
883 float dphi = fabs(primPhi - secPhi);
885 if(fabs(dphi) < minDphi) {
886 minDphi = fabs(dphi);
901 bool& bothGsfEcalDriven,
904 bool isSameSC =
false;
910 if(nscRef.
isNonnull() && iscRef.isNonnull()) {
911 bothGsfEcalDriven =
true;
912 if(nscRef == iscRef) {
915 SCEnergy = nscRef->energy();
927 bool& bothGsfTrackerDriven,
933 bool isSharingEnergy =
false;
936 bool oneEcalDriven =
true;
940 if(nSeedRef->caloCluster().
isNonnull()) {
942 nEnergy = scRef->energy();
944 gsfPfTrack = iGsfPFRecTrack;
946 else if(iSeedRef->caloCluster().
isNonnull()){
948 iEnergy = scRef->energy();
950 gsfPfTrack = nGsfPFRecTrack;
953 oneEcalDriven =
false;
959 vector<PFCluster> vecPFClusters;
960 vecPFClusters.clear();
962 for (PFClusterCollection::const_iterator clus = theEClus.begin();
963 clus != theEClus.end();
968 float deta = fabs(scRef->position().eta() - clust.
position().eta());
969 float dphi = fabs(scRef->position().phi() - clust.
position().phi());
974 if(deta < 0.5 && fabs(dphi) < 1.0) {
975 bool foundLink =
false;
981 iEnergy += clust.
energy();
983 nEnergy += clust.
energy();
984 vecPFClusters.push_back(clust);
988 if(foundLink ==
false) {
989 vector<PFBrem> primPFBrem = gsfPfTrack.
PFRecBrem();
990 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
991 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
997 iEnergy += clust.
energy();
999 nEnergy += clust.
energy();
1000 vecPFClusters.push_back(clust);
1007 if(vecPFClusters.size() > 0 ) {
1008 for(
unsigned int pf = 0; pf < vecPFClusters.size(); pf++) {
1011 isSharingEnergy =
true;
1020 bothGsfTrackerDriven =
true;
1021 vector<PFCluster> nPFCluster;
1022 vector<PFCluster> iPFCluster;
1027 for (PFClusterCollection::const_iterator clus = theEClus.begin();
1028 clus != theEClus.end();
1038 if(ndeta < 0.5 && fabs(ndphi) < 1.0) {
1039 bool foundNLink =
false;
1044 nPFCluster.push_back(clust);
1045 nEnergy += clust.
energy();
1048 if(foundNLink ==
false) {
1049 const vector<PFBrem>& primPFBrem = nGsfPFRecTrack.
PFRecBrem();
1050 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1051 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1053 if(foundNLink ==
false) {
1057 nPFCluster.push_back(clust);
1058 nEnergy += clust.
energy();
1071 if(ideta < 0.5 && fabs(idphi) < 1.0) {
1072 bool foundILink =
false;
1076 iPFCluster.push_back(clust);
1077 iEnergy += clust.
energy();
1080 if(foundILink ==
false) {
1081 vector<PFBrem> primPFBrem = iGsfPFRecTrack.
PFRecBrem();
1082 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1083 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1085 if(foundILink ==
false) {
1088 iPFCluster.push_back(clust);
1089 iEnergy += clust.
energy();
1099 if(nPFCluster.size() > 0 && iPFCluster.size() > 0) {
1100 for(
unsigned int npf = 0; npf < nPFCluster.size(); npf++) {
1101 for(
unsigned int ipf = 0; ipf < iPFCluster.size(); ipf++) {
1104 isSharingEnergy =
true;
1114 return isSharingEnergy;
1127 int gsfHitCounter1 = 0 ;
1130 ( elHitsIt1 = nGsfTrack->recHitsBegin() ;
1131 elHitsIt1 != nGsfTrack->recHitsEnd() ;
1132 elHitsIt1++, gsfHitCounter1++ )
1133 {
if (((**elHitsIt1).isValid())) break ; }
1135 int gsfHitCounter2 = 0 ;
1138 ( elHitsIt2 = iGsfTrack->recHitsBegin() ;
1139 elHitsIt2 != iGsfTrack->recHitsEnd() ;
1140 elHitsIt2++, gsfHitCounter2++ )
1141 {
if (((**elHitsIt2).isValid())) break ; }
1143 uint32_t gsfHit1 = gsfHitPattern1.
getHitPattern(gsfHitCounter1) ;
1144 uint32_t gsfHit2 = gsfHitPattern2.
getHitPattern(gsfHitCounter2) ;
1151 else if (gsfHitPattern1.
getLayer(gsfHit1)!=gsfHitPattern2.
getLayer(gsfHit2))
1153 return (gsfHitPattern2.
getLayer(gsfHit2)<gsfHitPattern1.
getLayer(gsfHit1));
1166 unsigned int nLostHits = nGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1167 unsigned int iLostHits = iGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1169 if (nLostHits!=iLostHits) {
1170 return (nLostHits > iLostHits);
1204 vector <TString> weightfiles;
1209 for(uint iter = 0;iter<weightfiles.size();iter++){
1210 FILE * fileConvBremID = fopen(weightfiles[iter],
"r");
1211 if (fileConvBremID) {
1212 fclose(fileConvBremID);
1215 string err =
"PFElecTkProducer: cannot open weight file '";
1216 err += weightfiles[iter];
1218 throw invalid_argument( err );
const REPPoint & positionREP() const
trajectory position in (rho, eta, phi) base
bool trajinev_
Trajectory of GSfTracks in the event?
T getParameter(std::string const &) const
EventNumber_t event() const
const math::XYZPoint & position() const
cluster centroid position
reconstructed track used as an input to particle flow
static bool overlap(const reco::CaloCluster &sc1, const reco::CaloCluster &sc, float minfrac=0.01, bool debug=false)
void createGsfPFRecTrackRef(const edm::OrphanHandle< reco::GsfPFRecTrackCollection > &gsfPfHandle, std::vector< reco::GsfPFRecTrack > &gsfPFRecTrackPrimary, const std::map< unsigned int, std::vector< reco::GsfPFRecTrack > > &MapPrimSec)
static uint32_t getLayer(uint32_t pattern)
const TrackExtraRef & extra() const
reference to "extra" object
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
double mvaConvBremFinderIDEndcapsLowPt_
bool useFifthStepForTrackDriven_
std::string path_mvaWeightFileConvBremEndcapsLowPt_
ConvBremPFTrackFinder * convBremFinder_
bool isFifthStep(reco::PFRecTrackRef pfKfTrack)
const std::vector< reco::PFBrem > & PFRecBrem() const
double phi() const
azimuthal angle of momentum vector
bool applySelection(const reco::GsfTrack &)
~PFElecTkProducer()
Destructor.
bool momentumFromModeCartesian(const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const
reco::GsfPFRecTrack secpftrack_
edm::InputTag gsfTrackLabel_
edm::InputTag primVtxLabel_
std::string path_mvaWeightFileConvBremBarrelHighPt_
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
const MultiTrajectoryStateMode * mtsMode_
double mvaConvBremFinderIDBarrelLowPt_
const std::vector< reco::PFRecTrackRef > & getConvBremPFRecTracks()
bool isSameEgSC(const reco::ElectronSeedRef &nSeedRef, const reco::ElectronSeedRef &iSeedRef, bool &bothGsfEcalDriven, float &SCEnergy)
bool isNonnull() const
Checks for non-null.
PFElecTkProducer(const edm::ParameterSet &)
Constructor.
edm::InputTag pfEcalClusters_
bool isNull() const
Checks for null.
double eta() const
pseudorapidity of momentum vector
bool foundConvBremPFRecTrack(const edm::Handle< reco::PFRecTrackCollection > &thePfRecTrackCol, const edm::Handle< reco::VertexCollection > &primaryVertex, const edm::Handle< reco::PFDisplacedTrackerVertexCollection > &pfNuclears, const edm::Handle< reco::PFConversionCollection > &pfConversions, const edm::Handle< reco::PFV0Collection > &pfV0, bool useNuclear, bool useConversions, bool useV0, const reco::PFClusterCollection &theEClus, const reco::GsfPFRecTrack &gsfpfrectk)
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
void calculatePositionREP()
computes posrep_ once and for all
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const reco::GsfTrackRef & gsfTrackRef() const
recHitContainer::const_iterator const_iterator
std::string path_mvaWeightFileConvBremEndcapsHighPt_
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
static uint32_t getSubStructure(uint32_t pattern)
const reco::PFTrajectoryPoint & extrapolatedPoint(unsigned layerid) const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double energy() const
cluster energy
bool isInnerMostWithLostHits(const reco::GsfTrackRef &nGsfTrack, const reco::GsfTrackRef &iGsfTrack, bool &sameLayer)
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
int FindPfRef(const reco::PFRecTrackCollection &PfRTkColl, const reco::GsfTrack &, bool)
edm::RefToBase< TrajectorySeed > seedRef() const
std::string path_mvaWeightFileConvBremBarrelLowPt_
bool resolveGsfTracks(const std::vector< reco::GsfPFRecTrack > &GsfPFVec, unsigned int ngsf, std::vector< unsigned int > &secondaries, const reco::PFClusterCollection &theEClus)
bool isValid() const
is this point valid ?
XYZVectorD XYZVector
spatial vector with cartesian internal representation
T const * product() const
edm::InputTag pfTrackLabel_
double mvaConvBremFinderIDBarrelHighPt_
T const * product() const
double mvaConvBremFinderIDEndcapsHighPt_
std::vector< Trajectory > TrajectoryCollection
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
double etaMode() const
pseudorapidity of momentum vector from mode
bool useFifthStepForEcalDriven_
reco::GsfPFRecTrack pftrack_
virtual void produce(edm::Event &, const edm::EventSetup &) override
Produce the PFRecTrack collection.
double phiMode() const
azimuthal angle of momentum vector from mode
bool useConvBremFinder_
Conv Brem Finder.
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
bool isSharingEcalEnergyWithEgSC(const reco::GsfPFRecTrack &nGsfPFRecTrack, const reco::GsfPFRecTrack &iGsfPFRecTrack, const reco::ElectronSeedRef &nSeedRef, const reco::ElectronSeedRef &iSeedRef, const reco::PFClusterCollection &theEClus, bool &bothGsfTrackerDriven, bool &nEcalDriven, bool &iEcalDriven, float &nEnergy, float &iEnergy)
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
uint32_t getHitPattern(int position) const
static double testTrackAndClusterByRecHit(const reco::PFRecTrack &track, const reco::PFCluster &cluster, bool isBrem=false, bool debug=false)
float minTangDist(const reco::GsfPFRecTrack &primGsf, const reco::GsfPFRecTrack &secGsf)
std::vector< PFRecTrack > PFRecTrackCollection
collection of PFRecTrack objects
bool applyAngularGsfClean_
MultiTrajectoryStateTransform mtsTransform_
bool isInnerMost(const reco::GsfTrackRef &nGsfTrack, const reco::GsfTrackRef &iGsfTrack, bool &sameLayer)