|
|
Definition at line 11 of file GeneralTracksImporter.cc.
◆ GeneralTracksImporter()
◆ importToBlock()
Implements BlockElementImporterBase.
Definition at line 46 of file GeneralTracksImporter.cc.
50 elems.reserve(elems.size() +
tracks->size());
51 std::vector<bool> mask(
tracks->size(),
true);
57 auto itr = elems.begin();
58 while (
itr != elems.end()) {
82 auto TKs_end = std::partition(
84 auto btk_elems = elems.begin();
85 auto btrack =
tracks->cbegin();
86 auto etrack =
tracks->cend();
89 std::find_if(btk_elems, TKs_end, [&](
const ElementType&
a) {
return (
a->trackRef() ==
track->trackRef()); });
90 if (tk_elem != TKs_end) {
97 static_cast<reco::PFBlockElementTrack*>(tk_elem->get())->setMuonRef(muonref);
115 bool thisIsAPotentialMuon =
false;
124 if (thisIsAPotentialMuon) {
126 <<
"Potential Muon P " << pftrackref->trackRef()->p() <<
" pt " << pftrackref->trackRef()->p() << std::endl;
130 elems.emplace_back(trkElem);
133 elems.shrink_to_fit();
References a, cleanBadConvBrems_, reco::PFBlockElementTrack::convRefs(), reco::PFBlockElementTrack::displacedVertexRef(), HLT_2018_cff::distance, DPtovPtCut_, MillePedeFileConverter_cfg::e, PFTrackAlgoTools::goodPtResolution(), charmTagsComputerCvsB_cfi::idx, PFMuonAlgo::isLooseMuon(), PFMuonAlgo::isMuon(), edm::Ref< C, T, F >::isNull(), LogDebug, muAssocToTrack(), PDWG_BPHSkim_cff::muons, muons_, NHitCut_, pfmu_, reco::PFBlockElementTrack::setMuonRef(), src_, reco::PFBlockElement::T_FROM_DISP, reco::PFBlockElement::T_FROM_GAMMACONV, reco::PFBlockElement::TRACK, HLT_2018_cff::track, trackQuality_, reco::PFBlockElementTrack::trackRef(), PDWG_EXOHSCP_cff::tracks, reco::PFBlockElementTrack::trackType(), useIterTracking_, and reco::PFBlockElementTrack::V0Ref().
◆ muAssocToTrack()
◆ cleanBadConvBrems_
const bool GeneralTracksImporter::cleanBadConvBrems_ |
|
private |
◆ DPtovPtCut_
const std::vector<double> GeneralTracksImporter::DPtovPtCut_ |
|
private |
◆ muons_
◆ NHitCut_
const std::vector<unsigned> GeneralTracksImporter::NHitCut_ |
|
private |
◆ pfmu_
std::unique_ptr<PFMuonAlgo> GeneralTracksImporter::pfmu_ |
|
private |
◆ src_
◆ trackQuality_
◆ useIterTracking_
const bool GeneralTracksImporter::useIterTracking_ |
|
private |
bool trackType(TrackType trType) const override
edm::EDGetTokenT< reco::MuonCollection > muons_
const std::vector< unsigned > NHitCut_
edm::EDGetTokenT< reco::PFRecTrackCollection > src_
const VertexCompositeCandidateRef & V0Ref() const override
bool isNull() const
Checks for null.
const reco::TrackRef & trackRef() const override
const bool cleanBadConvBrems_
const bool useIterTracking_
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
int muAssocToTrack(const reco::TrackRef &trackref, const edm::Handle< reco::MuonCollection > &muonh) const
BlockElementImporterBase(const edm::ParameterSet &conf, edm::ConsumesCollector &sumes)
const PFDisplacedTrackerVertexRef & displacedVertexRef(TrackType trType) const override
void setMuonRef(const MuonRef &muref) override
\set reference to the Muon
std::vector< Muon > MuonCollection
collection of Muon objects
edm::Ref< MuonCollection > MuonRef
presistent reference to a Muon
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::Ref< PFRecTrackCollection > PFRecTrackRef
persistent reference to PFRecTrack objects
const std::vector< double > DPtovPtCut_
Container::value_type value_type
std::vector< std::pair< float, float > >::iterator itr
static TrackQuality qualityByName(const std::string &name)
T getParameter(std::string const &) const
std::unique_ptr< PFMuonAlgo > pfmu_
const reco::TrackBase::TrackQuality trackQuality_
static bool isMuon(const reco::PFBlockElement &elt)
std::vector< PFRecTrack > PFRecTrackCollection
collection of PFRecTrack objects
static bool isLooseMuon(const reco::PFBlockElement &elt)
const ConversionRefVector & convRefs() const override