48 (
"GsfTrackModuleLabel"));
54 (
"PrimaryVertexLabel"));
73 produces<GsfPFRecTrackCollection>();
74 produces<GsfPFRecTrackCollection>(
"Secondary" ).setBranchAlias(
"secondary" );
99 string mvaWeightFileConvBremBarrelLowPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileBarrelLowPt");
100 string mvaWeightFileConvBremBarrelHighPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileBarrelHighPt");
101 string mvaWeightFileConvBremEndcapsLowPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileEndcapsLowPt");
102 string mvaWeightFileConvBremEndcapsHighPt = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFileEndcapsHighPt");
104 if(useConvBremFinder_) {
132 auto_ptr< GsfPFRecTrackCollection >
136 auto_ptr< GsfPFRecTrackCollection >
183 vector<Trajectory> tjvec(0);
187 tjvec= *(TrajectoryCollection.
product());
191 vector<reco::GsfPFRecTrack> selGsfPFRecTracks;
192 vector<reco::GsfPFRecTrack> primaryGsfPFRecTracks;
193 std::map<unsigned int, std::vector<reco::GsfPFRecTrack> > GsfPFMap;
196 for (
unsigned int igsf=0; igsf<gsftracks.size();igsf++) {
200 int kf_ind=
FindPfRef(PfRTkColl,gsftracks[igsf],
false);
211 bool isEcalDriven =
true;
212 bool isTrackerDriven =
true;
214 if (&(*trackRef->seedRef())==0) {
215 isEcalDriven =
false;
216 isTrackerDriven =
false;
220 if(SeedRef->caloCluster().
isNull())
221 isEcalDriven =
false;
222 if(SeedRef->ctfTrack().
isNull())
223 isTrackerDriven =
false;
226 if(isFifthStepTrack &&
228 isTrackerDriven ==
false &&
233 if(isFifthStepTrack &&
235 isEcalDriven ==
false &&
240 if(isFifthStepTrack &&
262 bool validgsfbrem =
false;
278 if(validgsfbrem && passSel)
279 selGsfPFRecTracks.push_back(
pftrack_);
283 unsigned int count_primary = 0;
284 if(selGsfPFRecTracks.size() > 0) {
285 for(
unsigned int ipfgsf=0; ipfgsf<selGsfPFRecTracks.size();ipfgsf++) {
287 vector<unsigned int> secondaries(0);
292 keepGsf =
resolveGsfTracks(selGsfPFRecTracks,ipfgsf,secondaries,theEcalClusters);
296 if(keepGsf ==
true) {
300 pfNuclears,pfConversions,pfV0,
302 theEcalClusters,selGsfPFRecTracks[ipfgsf])) {
304 for(
unsigned int ii = 0;
ii<convBremPFRecTracks.size();
ii++) {
305 selGsfPFRecTracks[ipfgsf].addConvBremPFRecTrackRef(convBremPFRecTracks[
ii]);
311 primaryGsfPFRecTracks.push_back(selGsfPFRecTracks[ipfgsf]);
317 unsigned int primGsfIndex = selGsfPFRecTracks[ipfgsf].trackId();
318 vector<reco::GsfPFRecTrack> trueGsfPFRecTracks;
319 if(secondaries.size() > 0) {
321 for(
unsigned int isecpfgsf=0; isecpfgsf<secondaries.size();isecpfgsf++) {
323 PFRecTrackRef refsecKF = selGsfPFRecTracks[(secondaries[isecpfgsf])].kfPFRecTrackRef();
325 unsigned int secGsfIndex = selGsfPFRecTracks[(secondaries[isecpfgsf])].trackId();
326 GsfTrackRef secGsfRef = selGsfPFRecTracks[(secondaries[isecpfgsf])].gsfTrackRef();
332 primGsfIndex, secGsfRef,
340 primGsfIndex, secGsfRef,
344 bool validgsfbrem =
false;
347 gsftracks[secGsfIndex],
352 gsftracks[secGsfIndex],
357 gsfPFRecTrackCollectionSecondary->push_back(
secpftrack_);
362 GsfPFMap.insert(pair<
unsigned int,std::vector<reco::GsfPFRecTrack> >(count_primary,trueGsfPFRecTracks));
363 trueGsfPFRecTracks.clear();
371 iEvent.
put(gsfPFRecTrackCollectionSecondary,
"Secondary");
377 for(
unsigned int iGSF = 0; iGSF<primaryGsfPFRecTracks.size();iGSF++){
378 gsfPFRecTrackCollection->push_back(primaryGsfPFRecTracks[iGSF]);
380 iEvent.
put(gsfPFRecTrackCollection);
382 selGsfPFRecTracks.clear();
384 primaryGsfPFRecTracks.clear();
390 std::vector<reco::GsfPFRecTrack>& gsfPFRecTrackPrimary,
391 const std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >& MapPrimSec) {
393 unsigned int csecgsf=0;
394 for (
std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >::const_iterator igsf = MapPrimSec.begin();
395 igsf != MapPrimSec.end(); igsf++,cgsf++) {
396 vector<reco::GsfPFRecTrack> SecGsfPF = igsf->second;
397 for (
unsigned int iSecGsf=0; iSecGsf < SecGsfPF.size(); iSecGsf++) {
399 gsfPFRecTrackPrimary[cgsf].addConvBremGsfPFRecTrackRef(refgprt);
413 if (&(*gsftk.
seedRef())==0)
return -1;
416 if (ElSeedRef->ctfTrack().
isNull()){
417 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
418 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
421 unsigned int ish_max=0;
425 for(;pft!=pftend;++pft){
428 float dph= fabs(pft->trackRef()->phi()-gsftk.
phi());
430 float det=fabs(pft->trackRef()->eta()-gsftk.
eta());
431 float dr =
sqrt(dph*dph+det*det);
434 pft->trackRef()->recHitsBegin();
436 pft->trackRef()->recHitsEnd();
440 for(;hhit!=hhit_end;++hhit){
441 if (!(*hhit)->isValid())
continue;
446 for(;hit!=hit_end;++hit){
447 if (!(hit->isValid()))
continue;
457 ((ish==ish_max)&&(dr<dr_min))){
467 if (ibest<0)
return -1;
469 if((ish_max==0) || (dr_min>0.05))
return -1;
470 if(otherColl && (ish_max==0))
return -1;
476 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
477 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
480 for(;pft!=pftend;++pft){
482 if (pft->trackRef()==ElSeedRef->ctfTrack()){
492 bool isFithStep =
false;
495 TrackRef kfref = pfKfTrack->trackRef();
496 unsigned int Algo = 0;
497 switch (kfref->algo()) {
498 case TrackBase::undefAlgorithm:
500 case TrackBase::iter0:
501 case TrackBase::iter1:
502 case TrackBase::iter2:
505 case TrackBase::iter3:
508 case TrackBase::iter4:
511 case TrackBase::iter5:
514 case TrackBase::iter6:
530 if (&(*gsftk.
seedRef())==0)
return false;
533 bool passCut =
false;
534 if (ElSeedRef->ctfTrack().
isNull()){
535 if(ElSeedRef->caloCluster().
isNull())
return passCut;
539 float caloEne = scRef->energy();
540 float feta = fabs(scRef->eta()-gsftk.
etaMode());
541 float fphi = fabs(scRef->phi()-gsftk.
phiMode());
556 vector<unsigned int> &secondaries,
559 bool n_keepGsf =
true;
563 if (&(*nGsfTrack->seedRef())==0)
return false;
569 float nPin = nGsfTrack->pMode();
570 if(inTSOS.isValid()){
572 nPin = ninnMom.
mag();
575 float neta = nGsfTrack->innerMomentum().eta();
576 float nphi = nGsfTrack->innerMomentum().phi();
582 cout <<
" PFElecTkProducer:: considering track " << nGsfTrack->pt()
583 <<
" eta,phi " << nGsfTrack->eta() <<
", " << nGsfTrack->phi() << endl;
586 for (
unsigned int igsf=0; igsf< GsfPFVec.size();igsf++) {
591 cout <<
" PFElecTkProducer:: and comparing with track " << iGsfTrack->pt()
592 <<
" eta,phi " << iGsfTrack->eta() <<
", " << iGsfTrack->phi() << endl;
594 float ieta = iGsfTrack->innerMomentum().eta();
595 float iphi = iGsfTrack->innerMomentum().phi();
596 float feta = fabs(neta - ieta);
597 float fphi = fabs(nphi - iphi);
602 if(feta < 0.5 && fabs(fphi) < 1.0) {
604 cout <<
" Entering angular superloose preselection " << endl;
608 float iPin = iGsfTrack->pMode();
611 iPin = i_innMom.
mag();
614 if (&(*iGsfTrack->seedRef())==0)
continue;
617 float SCEnergy = -1.;
619 bool areBothGsfEcalDriven =
false;;
620 bool isSameSC =
isSameEgSC(nElSeedRef,iElSeedRef,areBothGsfEcalDriven,SCEnergy);
623 if(areBothGsfEcalDriven ) {
625 float nEP = SCEnergy/nPin;
626 float iEP = SCEnergy/iPin;
628 cout <<
" Entering SAME supercluster case "
630 <<
" iEP " << iEP << endl;
638 bool isSameLayer =
false;
639 bool iGsfInnermostWithLostHits =
644 cout <<
" iGsf is InnerMostWithLostHits " << iGsfInnermostWithLostHits
645 <<
" isSameLayer " << isSameLayer << endl;
647 if (iGsfInnermostWithLostHits) {
651 else if(isSameLayer){
652 if(fabs(iEP-1) < fabs(nEP-1)) {
657 secondaries.push_back(igsf);
662 secondaries.push_back(igsf);
668 float minBremDphi =
minTangDist(GsfPFVec[ngsf],GsfPFVec[igsf]);
671 bool isBothGsfTrackerDriven =
false;
672 bool nEcalDriven =
false;
673 bool iEcalDriven =
false;
679 isBothGsfTrackerDriven,
686 bool isSameLayer =
false;
687 bool iGsfInnermostWithLostHits =
694 cout <<
" Sharing ECAL energy passed "
695 <<
" nEtot " << nETot
696 <<
" iEtot " << iETot << endl;
697 if(isBothGsfTrackerDriven)
698 cout <<
" Both Track are trackerDriven " << endl;
702 if (iGsfInnermostWithLostHits) {
706 else if(isSameLayer){
715 if(isBothGsfTrackerDriven ==
false) {
722 secondaries.push_back(igsf);
739 float nEP = ETot/nPin;
740 float iEP = ETot/iPin;
744 cout <<
" nETot " << nETot
745 <<
" iETot " << iETot
746 <<
" ETot " << ETot << endl
750 <<
" iEP " << iEP << endl;
753 if(fabs(iEP-1) < fabs(nEP-1)) {
758 secondaries.push_back(igsf);
763 secondaries.push_back(igsf);
768 bool secPushedBack =
false;
769 if(nEcalDriven ==
false && nETot == 0.) {
773 else if(iEcalDriven ==
false && iETot == 0.) {
774 secondaries.push_back(igsf);
775 secPushedBack =
true;
778 cout <<
" Close Tracks "
779 <<
" feta " << feta <<
" fabs(fphi) " << fabs(fphi)
780 <<
" minBremDphi " << minBremDphi
781 <<
" nETot " << nETot
782 <<
" iETot " << iETot
783 <<
" nLostHits " << nGsfTrack->trackerExpectedHitsInner().numberOfLostHits()
784 <<
" iLostHits " << iGsfTrack->trackerExpectedHitsInner().numberOfLostHits() << endl;
788 if (iGsfInnermostWithLostHits) {
792 else if(isSameLayer ==
false) {
793 if(secPushedBack ==
false)
794 secondaries.push_back(igsf);
798 else if(feta < 0.1 && minBremDphi < 0.2){
802 cout <<
" Close Tracks and failed all the conditions "
803 <<
" feta " << feta <<
" fabs(fphi) " << fabs(fphi)
804 <<
" minBremDphi " << minBremDphi
805 <<
" nETot " << nETot
806 <<
" iETot " << iETot
807 <<
" nLostHits " << nGsfTrack->trackerExpectedHitsInner().numberOfLostHits()
808 <<
" iLostHits " << iGsfTrack->trackerExpectedHitsInner().numberOfLostHits() << endl;
810 if(nEcalDriven ==
false && nETot == 0.) {
827 float minDphi = 1000.;
830 std::vector<reco::PFBrem> primPFBrem = primGsf.
PFRecBrem();
831 std::vector<reco::PFBrem> secPFBrem = secGsf.
PFRecBrem();
834 unsigned int cbrem = 0;
835 for (
unsigned isbrem = 0; isbrem < secPFBrem.size(); isbrem++) {
836 if(secPFBrem[isbrem].indTrajPoint() == 99)
continue;
839 if( ! atSecECAL.
isValid() )
continue;
842 unsigned int sbrem = 0;
843 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
844 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
847 if( ! atPrimECAL.
isValid() )
continue;
852 float dphi = fabs(primPhi - secPhi);
854 if(fabs(dphi) < minDphi) {
855 minDphi = fabs(dphi);
870 bool& bothGsfEcalDriven,
873 bool isSameSC =
false;
879 if(nscRef.
isNonnull() && iscRef.isNonnull()) {
880 bothGsfEcalDriven =
true;
881 if(nscRef == iscRef) {
884 SCEnergy = nscRef->energy();
896 bool& bothGsfTrackerDriven,
902 bool isSharingEnergy =
false;
905 bool oneEcalDriven =
true;
909 if(nSeedRef->caloCluster().
isNonnull()) {
911 nEnergy = scRef->energy();
913 gsfPfTrack = iGsfPFRecTrack;
915 else if(iSeedRef->caloCluster().
isNonnull()){
917 iEnergy = scRef->energy();
919 gsfPfTrack = nGsfPFRecTrack;
922 oneEcalDriven =
false;
928 vector<PFCluster> vecPFClusters;
929 vecPFClusters.clear();
931 for (PFClusterCollection::const_iterator clus = theEClus.begin();
932 clus != theEClus.end();
937 float deta = fabs(scRef->position().eta() - clust.
position().eta());
938 float dphi = fabs(scRef->position().phi() - clust.
position().phi());
943 if(deta < 0.5 && fabs(dphi) < 1.0) {
944 bool foundLink =
false;
950 iEnergy += clust.
energy();
952 nEnergy += clust.
energy();
953 vecPFClusters.push_back(clust);
957 if(foundLink ==
false) {
958 vector<PFBrem> primPFBrem = gsfPfTrack.
PFRecBrem();
959 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
960 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
966 iEnergy += clust.
energy();
968 nEnergy += clust.
energy();
969 vecPFClusters.push_back(clust);
976 if(vecPFClusters.size() > 0 ) {
977 for(
unsigned int pf = 0; pf < vecPFClusters.size(); pf++) {
980 isSharingEnergy =
true;
989 bothGsfTrackerDriven =
true;
990 vector<PFCluster> nPFCluster;
991 vector<PFCluster> iPFCluster;
996 for (PFClusterCollection::const_iterator clus = theEClus.begin();
997 clus != theEClus.end();
1007 if(ndeta < 0.5 && fabs(ndphi) < 1.0) {
1008 bool foundNLink =
false;
1013 nPFCluster.push_back(clust);
1014 nEnergy += clust.
energy();
1017 if(foundNLink ==
false) {
1018 const vector<PFBrem>& primPFBrem = nGsfPFRecTrack.
PFRecBrem();
1019 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1020 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1022 if(foundNLink ==
false) {
1026 nPFCluster.push_back(clust);
1027 nEnergy += clust.
energy();
1040 if(ideta < 0.5 && fabs(idphi) < 1.0) {
1041 bool foundILink =
false;
1045 iPFCluster.push_back(clust);
1046 iEnergy += clust.
energy();
1049 if(foundILink ==
false) {
1050 vector<PFBrem> primPFBrem = iGsfPFRecTrack.
PFRecBrem();
1051 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1052 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1054 if(foundILink ==
false) {
1057 iPFCluster.push_back(clust);
1058 iEnergy += clust.
energy();
1068 if(nPFCluster.size() > 0 && iPFCluster.size() > 0) {
1069 for(
unsigned int npf = 0; npf < nPFCluster.size(); npf++) {
1070 for(
unsigned int ipf = 0; ipf < iPFCluster.size(); ipf++) {
1073 isSharingEnergy =
true;
1083 return isSharingEnergy;
1096 int gsfHitCounter1 = 0 ;
1099 ( elHitsIt1 = nGsfTrack->recHitsBegin() ;
1100 elHitsIt1 != nGsfTrack->recHitsEnd() ;
1101 elHitsIt1++, gsfHitCounter1++ )
1102 {
if (((**elHitsIt1).isValid())) break ; }
1104 int gsfHitCounter2 = 0 ;
1107 ( elHitsIt2 = iGsfTrack->recHitsBegin() ;
1108 elHitsIt2 != iGsfTrack->recHitsEnd() ;
1109 elHitsIt2++, gsfHitCounter2++ )
1110 {
if (((**elHitsIt2).isValid())) break ; }
1112 uint32_t gsfHit1 = gsfHitPattern1.
getHitPattern(gsfHitCounter1) ;
1113 uint32_t gsfHit2 = gsfHitPattern2.
getHitPattern(gsfHitCounter2) ;
1120 else if (gsfHitPattern1.
getLayer(gsfHit1)!=gsfHitPattern2.
getLayer(gsfHit2))
1122 return (gsfHitPattern2.
getLayer(gsfHit2)<gsfHitPattern1.
getLayer(gsfHit1));
1135 unsigned int nLostHits = nGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1136 unsigned int iLostHits = iGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1138 if (nLostHits!=iLostHits) {
1139 return (nLostHits > iLostHits);
1173 vector <TString> weightfiles;
1179 FILE * fileConvBremID = fopen(weightfiles[
iter],
"r");
1180 if (fileConvBremID) {
1181 fclose(fileConvBremID);
1184 string err =
"PFElecTkProducer: cannot open weight file '";
1185 err += weightfiles[
iter];
1187 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
const math::XYZPoint & position() const
cluster centroid position
reconstructed track used as an input to particle flow
edm::EDGetTokenT< reco::PFRecTrackCollection > pfTrackLabel_
static bool overlap(const reco::CaloCluster &sc1, const reco::CaloCluster &sc, float minfrac=0.01, bool debug=false)
edm::EDGetTokenT< reco::GsfTrackCollection > gsfTrackLabel_
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 getByToken(EDGetToken token, Handle< PROD > &result) const
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::EDGetTokenT< reco::VertexCollection > 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.
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.
edm::EDGetTokenT< reco::PFV0Collection > pfV0_
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)
edm::EDGetTokenT< reco::PFDisplacedTrackerVertexCollection > pfNuclear_
const reco::PFTrajectoryPoint & extrapolatedPoint(unsigned layerid) 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
double mvaConvBremFinderIDBarrelHighPt_
T const * product() const
double mvaConvBremFinderIDEndcapsHighPt_
edm::EDGetTokenT< reco::PFConversionCollection > pfConv_
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
edm::EDGetTokenT< reco::PFClusterCollection > pfEcalClusters_
bool applyAngularGsfClean_
MultiTrajectoryStateTransform mtsTransform_
bool isInnerMost(const reco::GsfTrackRef &nGsfTrack, const reco::GsfTrackRef &iGsfTrack, bool &sameLayer)