30 produces<reco::PFRecTrackCollection>();
33 iConfig.
getParameter< vector < InputTag > >(
"TkColList");
38 (
"GsfTrackModuleLabel");
60 auto_ptr< reco::PFRecTrackCollection >
74 pv = &*vertex->begin();
79 e(0, 0) = 0.0015 * 0.0015;
80 e(1, 1) = 0.0015 * 0.0015;
94 <<
" cannot get GsfTracks (probably in HI events): "
95 <<
" please set GsfTracksInEvents = False in RecoParticleFlow/PFTracking/python/pfTrack_cfi.py" << endl;
97 gsftracks = *(gsftrackcoll.
product());
112 vector<Trajectory> Tj(0);
119 <<
" cannot get Trajectories of: "
121 <<
" please set TrajInEvents = False in RecoParticleFlow/PFTracking/python/pfTrack_cfi.py" << endl;
127 for(
unsigned int i=0;
i<Tk.size();
i++){
134 bool isMuCandidate =
false;
139 for(
unsigned j=0;
j<recMuons->size();
j++) {
142 if( muonref->track() == trackRef && muonref->isGlobalMuon()){
163 for (
unsigned int igsf=0; igsf<gsftracks.size();igsf++) {
165 if (gsfTrackRef->seedRef().
isNull())
continue;
168 if(ElSeedRef->ctfTrack() == trackRef) preId =
true;
197 pftrack.setSTIP(stip);
198 PfTrColl->push_back(pftrack);
224 pftrack.setSTIP(stip);
225 PfTrColl->push_back(pftrack);
230 iEvent.
put(PfTrColl);
T getParameter(std::string const &) const
reconstructed track used as an input to particle flow
PFTrackProducer(const edm::ParameterSet &)
Constructor.
std::vector< Track > TrackCollection
collection of Tracks
reco::TransientTrack build(const reco::Track *p) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
std::vector< edm::InputTag > tracksContainers_
U second(std::pair< T, U > const &p)
bool isNonnull() const
Checks for non-null.
bool isNull() const
Checks for null.
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool useQuality_
TRACK QUALITY.
std::vector< GsfTrack > GsfTrackCollection
collection of GsfTracks
math::XYZPoint Point
point in the space
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
edm::InputTag gsfTrackLabel_
static TrackQuality qualityByName(const std::string &name)
bool isValid() const
is this point valid ?
XYZVectorD XYZVector
spatial vector with cartesian internal representation
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
T const * product() const
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &) override
Produce the PFRecTrack collection.
reco::TrackBase::TrackQuality trackQuality_
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
std::vector< PFRecTrack > PFRecTrackCollection
collection of PFRecTrack objects
~PFTrackProducer()
Destructor.