CalibrationTrackSelectorFromDetIdList::CalibrationTrackSelectorFromDetIdList |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
CalibrationTrackSelectorFromDetIdList::~CalibrationTrackSelectorFromDetIdList |
( |
| ) |
|
|
override |
Definition at line 123 of file CalibrationTrackSelectorFromDetIdList.cc.
References alongMomentum, anyDirection, Exception, reco::Track::innerDetId(), reco::Track::innerPosition(), trajectoryStateTransform::innerStateOnSurface(), reco::TrackBase::momentum(), reco::Track::outerDetId(), reco::Track::outerPosition(), trajectoryStateTransform::outerStateOnSurface(), trajectoryStateTransform::persistentState(), edm::OwnVector< T, P >::push_back(), edm::OwnVector< T, P >::reserve(), SurveyInfoScenario_cff::seed, reco::Track::seedDirection(), reco::Track::seedRef(), theGeometry, and theMagField.
Referenced by produce().
130 throw cms::Exception(
"UnimplementedFeature") <<
"Cannot work with tracks that have 'anyDirecton' \n";
145 ownHits.
reserve(hitsEnd - hitsBegin);
146 for (; hitsBegin != hitsEnd; ++hitsBegin) {
147 ownHits.
push_back((*hitsBegin)->clone());
const edm::RefToBase< TrajectorySeed > & seedRef() const
edm::ESHandle< MagneticField > theMagField
edm::ESHandle< TrackerGeometry > theGeometry
const Vector & momentum() const
track momentum vector
const math::XYZPoint & outerPosition() const
position of the outermost hit
const math::XYZPoint & innerPosition() const
position of the innermost hit
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
const PropagationDirection & seedDirection() const
direction of how the hits were sorted in the original seed
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition at line 85 of file CalibrationTrackSelectorFromDetIdList.cc.
References detidsels_, edm::Event::getByToken(), hfClusterShapes_cfi::hits, LogDebug, m_label, makeCandidate(), eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), and l1t::tracks.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
91 auto const &
tracks = *trackCollectionHandle;
93 auto output = std::make_unique<TrackCandidateCollection>();
97 std::vector<const TrackingRecHit *>
hits;
99 bool saveTrack(
false);
101 for (
auto const &
hit : trk.recHits()) {
102 DetId detid =
hit->geographicalId();
105 if (detidsel.isSelected(detid)) {
106 LogDebug(
"CalibrationTrackSelectorFromDetIdList") <<
"Selected by selection " << detid;
113 hits.emplace_back(
hit);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< reco::TrackCollection > m_label
std::vector< DetIdSelector > detidsels_
TrackCandidate makeCandidate(const reco::Track &tk, std::vector< const TrackingRecHit * >::iterator hitsBegin, std::vector< const TrackingRecHit * >::iterator hitsEnd)
std::vector<DetIdSelector> CalibrationTrackSelectorFromDetIdList::detidsels_ |
|
private |
bool CalibrationTrackSelectorFromDetIdList::m_verbose |
|
private |