55 LogInfo(
"PFElecTkProducer")<<
"PFElecTkProducer started";
58 (
"GsfTrackModuleLabel");
64 (
"PrimaryVertexLabel");
83 produces<GsfPFRecTrackCollection>();
84 produces<GsfPFRecTrackCollection>(
"Secondary" ).setBranchAlias(
"secondary" );
104 = iConfig.
getParameter<
double>(
"pf_convBremFinderID_mvaCut");
106 string mvaWeightFileConvBrem
107 = iConfig.
getParameter<
string>(
"pf_convBremFinderID_mvaWeightFile");
110 if(useConvBremFinder_)
133 <<
" in run "<<iEvent.
id().
run();
136 auto_ptr< GsfPFRecTrackCollection >
140 auto_ptr< GsfPFRecTrackCollection >
173 LogError(
"PFElecTkProducer")<<
" cannot get PFNuclear : "
175 <<
" please set useNuclear=False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
183 LogError(
"PFElecTkProducer")<<
" cannot get PFConversions : "
185 <<
" please set useConversions=False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
194 LogError(
"PFElecTkProducer")<<
" cannot get PFV0 : "
196 <<
" please set useV0=False RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
202 vector<Trajectory> tjvec(0);
207 <<
" cannot get Trajectories of : "
209 <<
" please set TrajInEvents = False in RecoParticleFlow/PFTracking/python/pfTrackElec_cfi.py" << endl;
211 tjvec= *(TrajectoryCollection.
product());
215 vector<reco::GsfPFRecTrack> selGsfPFRecTracks;
216 vector<reco::GsfPFRecTrack> primaryGsfPFRecTracks;
217 std::map<unsigned int, std::vector<reco::GsfPFRecTrack> > GsfPFMap;
220 for (
unsigned int igsf=0; igsf<gsftracks.size();igsf++) {
224 int kf_ind=
FindPfRef(PfRTkColl,gsftracks[igsf],
false);
235 bool isEcalDriven =
true;
236 bool isTrackerDriven =
true;
238 if (&(*trackRef->seedRef())==0) {
239 isEcalDriven =
false;
240 isTrackerDriven =
false;
244 if(SeedRef->caloCluster().
isNull())
245 isEcalDriven =
false;
246 if(SeedRef->ctfTrack().
isNull())
247 isTrackerDriven =
false;
250 if(isFifthStepTrack &&
252 isTrackerDriven ==
false &&
257 if(isFifthStepTrack &&
259 isEcalDriven ==
false &&
264 if(isFifthStepTrack &&
286 bool validgsfbrem =
false;
302 if(validgsfbrem && passSel)
303 selGsfPFRecTracks.push_back(
pftrack_);
307 unsigned int count_primary = 0;
308 if(selGsfPFRecTracks.size() > 0) {
309 for(
unsigned int ipfgsf=0; ipfgsf<selGsfPFRecTracks.size();ipfgsf++) {
311 vector<unsigned int> secondaries(0);
316 keepGsf =
resolveGsfTracks(selGsfPFRecTracks,ipfgsf,secondaries,theEcalClusters);
320 if(keepGsf ==
true) {
324 pfNuclears,pfConversions,pfV0,
326 theEcalClusters,selGsfPFRecTracks[ipfgsf])) {
328 for(
unsigned int ii = 0; ii<convBremPFRecTracks.size(); ii++) {
329 selGsfPFRecTracks[ipfgsf].addConvBremPFRecTrackRef(convBremPFRecTracks[ii]);
335 primaryGsfPFRecTracks.push_back(selGsfPFRecTracks[ipfgsf]);
341 unsigned int primGsfIndex = selGsfPFRecTracks[ipfgsf].trackId();
342 vector<reco::GsfPFRecTrack> trueGsfPFRecTracks;
343 if(secondaries.size() > 0) {
345 for(
unsigned int isecpfgsf=0; isecpfgsf<secondaries.size();isecpfgsf++) {
347 PFRecTrackRef refsecKF = selGsfPFRecTracks[(secondaries[isecpfgsf])].kfPFRecTrackRef();
349 unsigned int secGsfIndex = selGsfPFRecTracks[(secondaries[isecpfgsf])].trackId();
350 GsfTrackRef secGsfRef = selGsfPFRecTracks[(secondaries[isecpfgsf])].gsfTrackRef();
356 primGsfIndex, secGsfRef,
364 primGsfIndex, secGsfRef,
368 bool validgsfbrem =
false;
371 gsftracks[secGsfIndex],
376 gsftracks[secGsfIndex],
381 gsfPFRecTrackCollectionSecondary->push_back(
secpftrack_);
386 GsfPFMap.insert(pair<
unsigned int,std::vector<reco::GsfPFRecTrack> >(count_primary,trueGsfPFRecTracks));
387 trueGsfPFRecTracks.clear();
395 iEvent.
put(gsfPFRecTrackCollectionSecondary,
"Secondary");
401 for(
unsigned int iGSF = 0; iGSF<primaryGsfPFRecTracks.size();iGSF++){
402 gsfPFRecTrackCollection->push_back(primaryGsfPFRecTracks[iGSF]);
404 iEvent.
put(gsfPFRecTrackCollection);
406 selGsfPFRecTracks.clear();
408 primaryGsfPFRecTracks.clear();
414 std::vector<reco::GsfPFRecTrack>& gsfPFRecTrackPrimary,
415 const std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >& MapPrimSec) {
417 unsigned int csecgsf=0;
418 for (
std::map<
unsigned int, std::vector<reco::GsfPFRecTrack> >::const_iterator igsf = MapPrimSec.begin();
419 igsf != MapPrimSec.end(); igsf++,cgsf++) {
420 vector<reco::GsfPFRecTrack> SecGsfPF = igsf->second;
421 for (
unsigned int iSecGsf=0; iSecGsf < SecGsfPF.size(); iSecGsf++) {
423 gsfPFRecTrackPrimary[cgsf].addConvBremGsfPFRecTrackRef(refgprt);
437 if (&(*gsftk.
seedRef())==0)
return -1;
440 if (ElSeedRef->ctfTrack().
isNull()){
441 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
442 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
445 unsigned int ish_max=0;
449 for(;pft!=pftend;++pft){
452 float dph= fabs(pft->trackRef()->phi()-gsftk.
phi());
454 float det=fabs(pft->trackRef()->eta()-gsftk.
eta());
455 float dr =
sqrt(dph*dph+det*det);
458 pft->trackRef()->recHitsBegin();
460 pft->trackRef()->recHitsEnd();
464 for(;hhit!=hhit_end;++hhit){
465 if (!(*hhit)->isValid())
continue;
470 for(;hit!=hit_end;++hit){
471 if (!(hit->isValid()))
continue;
481 ((ish==ish_max)&&(dr<dr_min))){
491 if (ibest<0)
return -1;
493 if((ish_max==0) || (dr_min>0.05))
return -1;
494 if(otherColl && (ish_max==0))
return -1;
500 reco::PFRecTrackCollection::const_iterator pft=PfRTkColl.begin();
501 reco::PFRecTrackCollection::const_iterator pftend=PfRTkColl.end();
504 for(;pft!=pftend;++pft){
506 if (pft->trackRef()==ElSeedRef->ctfTrack()){
516 bool isFithStep =
false;
519 TrackRef kfref = pfKfTrack->trackRef();
520 unsigned int Algo = 0;
521 switch (kfref->algo()) {
522 case TrackBase::undefAlgorithm:
524 case TrackBase::iter0:
525 case TrackBase::iter1:
526 case TrackBase::iter2:
529 case TrackBase::iter3:
532 case TrackBase::iter4:
535 case TrackBase::iter5:
538 case TrackBase::iter6:
554 if (&(*gsftk.
seedRef())==0)
return false;
557 bool passCut =
false;
558 if (ElSeedRef->ctfTrack().
isNull()){
559 if(ElSeedRef->caloCluster().
isNull())
return passCut;
563 float caloEne = scRef->energy();
564 float feta = fabs(scRef->eta()-gsftk.
etaMode());
565 float fphi = fabs(scRef->phi()-gsftk.
phiMode());
580 vector<unsigned int> &secondaries,
583 bool n_keepGsf =
true;
587 if (&(*nGsfTrack->seedRef())==0)
return false;
593 float nPin = nGsfTrack->pMode();
594 if(inTSOS.isValid()){
596 nPin = ninnMom.
mag();
599 float neta = nGsfTrack->innerMomentum().eta();
600 float nphi = nGsfTrack->innerMomentum().phi();
606 cout <<
" PFElecTkProducer:: considering track " << nGsfTrack->pt()
607 <<
" eta,phi " << nGsfTrack->eta() <<
", " << nGsfTrack->phi() << endl;
610 for (
unsigned int igsf=0; igsf< GsfPFVec.size();igsf++) {
615 cout <<
" PFElecTkProducer:: and comparing with track " << iGsfTrack->pt()
616 <<
" eta,phi " << iGsfTrack->eta() <<
", " << iGsfTrack->phi() << endl;
618 float ieta = iGsfTrack->innerMomentum().eta();
619 float iphi = iGsfTrack->innerMomentum().phi();
620 float feta = fabs(neta - ieta);
621 float fphi = fabs(nphi - iphi);
626 if(feta < 0.5 && fabs(fphi) < 1.0) {
628 cout <<
" Entering angular superloose preselection " << endl;
632 float iPin = iGsfTrack->pMode();
635 iPin = i_innMom.
mag();
638 if (&(*iGsfTrack->seedRef())==0)
continue;
641 float SCEnergy = -1.;
643 bool areBothGsfEcalDriven =
false;;
644 bool isSameSC =
isSameEgSC(nElSeedRef,iElSeedRef,areBothGsfEcalDriven,SCEnergy);
647 if(areBothGsfEcalDriven ) {
649 float nEP = SCEnergy/nPin;
650 float iEP = SCEnergy/iPin;
652 cout <<
" Entering SAME supercluster case "
654 <<
" iEP " << iEP << endl;
662 bool isSameLayer =
false;
663 bool iGsfInnermostWithLostHits =
668 cout <<
" iGsf is InnerMostWithLostHits " << iGsfInnermostWithLostHits
669 <<
" isSameLayer " << isSameLayer << endl;
671 if (iGsfInnermostWithLostHits) {
675 else if(isSameLayer){
676 if(fabs(iEP-1) < fabs(nEP-1)) {
681 secondaries.push_back(igsf);
686 secondaries.push_back(igsf);
692 float minBremDphi =
minTangDist(GsfPFVec[ngsf],GsfPFVec[igsf]);
695 bool isBothGsfTrackerDriven =
false;
696 bool nEcalDriven =
false;
697 bool iEcalDriven =
false;
703 isBothGsfTrackerDriven,
710 bool isSameLayer =
false;
711 bool iGsfInnermostWithLostHits =
718 cout <<
" Sharing ECAL energy passed "
719 <<
" nEtot " << nETot
720 <<
" iEtot " << iETot << endl;
721 if(isBothGsfTrackerDriven)
722 cout <<
" Both Track are trackerDriven " << endl;
726 if (iGsfInnermostWithLostHits) {
730 else if(isSameLayer){
739 if(isBothGsfTrackerDriven ==
false) {
746 secondaries.push_back(igsf);
763 float nEP = ETot/nPin;
764 float iEP = ETot/iPin;
768 cout <<
" nETot " << nETot
769 <<
" iETot " << iETot
770 <<
" ETot " << ETot << endl
774 <<
" iEP " << iEP << endl;
777 if(fabs(iEP-1) < fabs(nEP-1)) {
782 secondaries.push_back(igsf);
787 secondaries.push_back(igsf);
792 bool secPushedBack =
false;
793 if(nEcalDriven ==
false && nETot == 0.) {
797 else if(iEcalDriven ==
false && iETot == 0.) {
798 secondaries.push_back(igsf);
799 secPushedBack =
true;
802 cout <<
" Close Tracks "
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;
812 if (iGsfInnermostWithLostHits) {
816 else if(isSameLayer ==
false) {
817 if(secPushedBack ==
false)
818 secondaries.push_back(igsf);
822 else if(feta < 0.1 && minBremDphi < 0.2){
826 cout <<
" Close Tracks and failed all the conditions "
827 <<
" feta " << feta <<
" fabs(fphi) " << fabs(fphi)
828 <<
" minBremDphi " << minBremDphi
829 <<
" nETot " << nETot
830 <<
" iETot " << iETot
831 <<
" nLostHits " << nGsfTrack->trackerExpectedHitsInner().numberOfLostHits()
832 <<
" iLostHits " << iGsfTrack->trackerExpectedHitsInner().numberOfLostHits() << endl;
834 if(nEcalDriven ==
false && nETot == 0.) {
851 float minDphi = 1000.;
854 std::vector<reco::PFBrem> primPFBrem = primGsf.
PFRecBrem();
855 std::vector<reco::PFBrem> secPFBrem = secGsf.
PFRecBrem();
858 unsigned int cbrem = 0;
859 for (
unsigned isbrem = 0; isbrem < secPFBrem.size(); isbrem++) {
860 if(secPFBrem[isbrem].indTrajPoint() == 99)
continue;
863 if( ! atSecECAL.
isValid() )
continue;
866 unsigned int sbrem = 0;
867 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
868 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
871 if( ! atPrimECAL.
isValid() )
continue;
876 float dphi = fabs(primPhi - secPhi);
878 if(fabs(dphi) < minDphi) {
879 minDphi = fabs(dphi);
894 bool& bothGsfEcalDriven,
897 bool isSameSC =
false;
903 if(nscRef.
isNonnull() && iscRef.isNonnull()) {
904 bothGsfEcalDriven =
true;
905 if(nscRef == iscRef) {
908 SCEnergy = nscRef->energy();
920 bool& bothGsfTrackerDriven,
926 bool isSharingEnergy =
false;
929 bool oneEcalDriven =
true;
933 if(nSeedRef->caloCluster().
isNonnull()) {
935 nEnergy = scRef->energy();
937 gsfPfTrack = iGsfPFRecTrack;
939 else if(iSeedRef->caloCluster().
isNonnull()){
941 iEnergy = scRef->energy();
943 gsfPfTrack = nGsfPFRecTrack;
946 oneEcalDriven =
false;
952 vector<PFCluster> vecPFClusters;
953 vecPFClusters.clear();
955 for (PFClusterCollection::const_iterator clus = theEClus.begin();
956 clus != theEClus.end();
961 float deta = fabs(scRef->position().eta() - clust.
position().eta());
962 float dphi = fabs(scRef->position().phi() - clust.
position().phi());
967 if(deta < 0.5 && fabs(dphi) < 1.0) {
968 bool foundLink =
false;
974 iEnergy += clust.
energy();
976 nEnergy += clust.
energy();
977 vecPFClusters.push_back(clust);
981 if(foundLink ==
false) {
982 vector<PFBrem> primPFBrem = gsfPfTrack.
PFRecBrem();
983 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
984 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
990 iEnergy += clust.
energy();
992 nEnergy += clust.
energy();
993 vecPFClusters.push_back(clust);
1000 if(vecPFClusters.size() > 0 ) {
1001 for(
unsigned int pf = 0; pf < vecPFClusters.size(); pf++) {
1004 isSharingEnergy =
true;
1013 bothGsfTrackerDriven =
true;
1014 vector<PFCluster> nPFCluster;
1015 vector<PFCluster> iPFCluster;
1020 for (PFClusterCollection::const_iterator clus = theEClus.begin();
1021 clus != theEClus.end();
1031 if(ndeta < 0.5 && fabs(ndphi) < 1.0) {
1032 bool foundNLink =
false;
1037 nPFCluster.push_back(clust);
1038 nEnergy += clust.
energy();
1041 if(foundNLink ==
false) {
1042 const vector<PFBrem>& primPFBrem = nGsfPFRecTrack.
PFRecBrem();
1043 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1044 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1046 if(foundNLink ==
false) {
1050 nPFCluster.push_back(clust);
1051 nEnergy += clust.
energy();
1064 if(ideta < 0.5 && fabs(idphi) < 1.0) {
1065 bool foundILink =
false;
1069 iPFCluster.push_back(clust);
1070 iEnergy += clust.
energy();
1073 if(foundILink ==
false) {
1074 vector<PFBrem> primPFBrem = iGsfPFRecTrack.
PFRecBrem();
1075 for(
unsigned ipbrem = 0; ipbrem < primPFBrem.size(); ipbrem++) {
1076 if(primPFBrem[ipbrem].indTrajPoint() == 99)
continue;
1078 if(foundILink ==
false) {
1081 iPFCluster.push_back(clust);
1082 iEnergy += clust.
energy();
1092 if(nPFCluster.size() > 0 && iPFCluster.size() > 0) {
1093 for(
unsigned int npf = 0; npf < nPFCluster.size(); npf++) {
1094 for(
unsigned int ipf = 0; ipf < iPFCluster.size(); ipf++) {
1097 isSharingEnergy =
true;
1107 return isSharingEnergy;
1120 int gsfHitCounter1 = 0 ;
1123 ( elHitsIt1 = nGsfTrack->recHitsBegin() ;
1124 elHitsIt1 != nGsfTrack->recHitsEnd() ;
1125 elHitsIt1++, gsfHitCounter1++ )
1126 {
if (((**elHitsIt1).isValid())) break ; }
1128 int gsfHitCounter2 = 0 ;
1131 ( elHitsIt2 = iGsfTrack->recHitsBegin() ;
1132 elHitsIt2 != iGsfTrack->recHitsEnd() ;
1133 elHitsIt2++, gsfHitCounter2++ )
1134 {
if (((**elHitsIt2).isValid())) break ; }
1136 uint32_t gsfHit1 = gsfHitPattern1.
getHitPattern(gsfHitCounter1) ;
1137 uint32_t gsfHit2 = gsfHitPattern2.
getHitPattern(gsfHitCounter2) ;
1144 else if (gsfHitPattern1.
getLayer(gsfHit1)!=gsfHitPattern2.
getLayer(gsfHit2))
1146 return (gsfHitPattern2.
getLayer(gsfHit2)<gsfHitPattern1.
getLayer(gsfHit1));
1159 unsigned int nLostHits = nGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1160 unsigned int iLostHits = iGsfTrack->trackerExpectedHitsInner().numberOfLostHits();
1162 if (nLostHits!=iLostHits) {
1163 return (nLostHits > iLostHits);
1198 if (fileConvBremID) {
1199 fclose(fileConvBremID);
1202 string err =
"PFElecTkProducer: cannot open weight file '";
1205 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.
bool useFifthStepForTrackDriven_
ConvBremPFTrackFinder * convBremFinder_
std::string path_mvaWeightFileConvBrem_
bool isFifthStep(reco::PFRecTrackRef pfKfTrack)
const std::vector< reco::PFBrem > & PFRecBrem() const
double phi() const
azimuthal angle of momentum vector
bool applySelection(reco::GsfTrack)
int FindPfRef(const reco::PFRecTrackCollection &PfRTkColl, reco::GsfTrack, bool)
~PFElecTkProducer()
Destructor.
bool momentumFromModeCartesian(const TrajectoryStateOnSurface tsos, GlobalVector &momentum) const
reco::GsfPFRecTrack secpftrack_
edm::InputTag gsfTrackLabel_
edm::InputTag primVtxLabel_
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
const MultiTrajectoryStateMode * mtsMode_
double mvaConvBremFinderID_
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
std::vector< GsfPFRecTrack > GsfPFRecTrackCollection
collection of GsfPFRecTrack objects
void calculatePositionREP()
computes posrep_ once and for all
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, reco::GsfPFRecTrack gsfpfrectk)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
const reco::GsfTrackRef & gsfTrackRef() const
recHitContainer::const_iterator const_iterator
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)
edm::RefToBase< TrajectorySeed > seedRef() const
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_
T const * product() const
std::vector< Trajectory > TrajectoryCollection
virtual void beginRun(edm::Run &, const edm::EventSetup &)
double etaMode() const
pseudorapidity of momentum vector from mode
bool useFifthStepForEcalDriven_
reco::GsfPFRecTrack pftrack_
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...
virtual void produce(edm::Event &, const edm::EventSetup &)
Produce the PFRecTrack collection.
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)