|
|
◆ CalibrationTrackSelectorFromDetIdList()
CalibrationTrackSelectorFromDetIdList::CalibrationTrackSelectorFromDetIdList |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 67 of file CalibrationTrackSelectorFromDetIdList.cc.
68 :
geometryToken_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord, edm::Transition::BeginRun>()),
69 magFieldToken_(esConsumes<MagneticField, IdealMagneticFieldRecord, edm::Transition::BeginRun>()),
71 std::vector<edm::ParameterSet> selconfigs = iConfig.
getParameter<std::vector<edm::ParameterSet>>(
"selections");
73 for (std::vector<edm::ParameterSet>::const_iterator selconfig = selconfigs.begin(); selconfig != selconfigs.end();
81 produces<TrackCandidateCollection>();
References detidsels_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_label, m_verbose, and corrVsCorr::selection.
◆ ~CalibrationTrackSelectorFromDetIdList()
CalibrationTrackSelectorFromDetIdList::~CalibrationTrackSelectorFromDetIdList |
( |
| ) |
|
|
override |
◆ beginRun()
◆ makeCandidate()
Definition at line 129 of file CalibrationTrackSelectorFromDetIdList.cc.
136 throw cms::Exception(
"UnimplementedFeature") <<
"Cannot work with tracks that have 'anyDirecton' \n";
151 ownHits.
reserve(hitsEnd - hitsBegin);
152 for (; hitsBegin != hitsEnd; ++hitsBegin) {
153 ownHits.
push_back((*hitsBegin)->clone());
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(), fileCollector::seed, reco::Track::seedDirection(), reco::Track::seedRef(), theGeometry, and theMagField.
Referenced by produce().
◆ produce()
◆ detidsels_
std::vector<DetIdSelector> CalibrationTrackSelectorFromDetIdList::detidsels_ |
|
private |
◆ geometryToken_
◆ m_label
◆ m_verbose
bool CalibrationTrackSelectorFromDetIdList::m_verbose |
|
private |
◆ magFieldToken_
◆ theGeometry
◆ theMagField
const math::XYZPoint & outerPosition() const
position of the outermost hit
T const * product() const
edm::ESHandle< MagneticField > theMagField
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::TrackCollection > m_label
TrackCandidate makeCandidate(const reco::Track &tk, std::vector< const TrackingRecHit * >::iterator hitsBegin, std::vector< const TrackingRecHit * >::iterator hitsEnd)
edm::ESHandle< TrackerGeometry > theGeometry
const PropagationDirection & seedDirection() const
direction of how the hits were sorted in the original seed
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
const math::XYZPoint & innerPosition() const
position of the innermost hit
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
constexpr uint32_t rawId() const
get the raw id
const edm::RefToBase< TrajectorySeed > & seedRef() const
T getParameter(std::string const &) const
const DetIdContainer & detIds() const override
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
const Vector & momentum() const
track momentum vector
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
std::vector< DetIdSelector > detidsels_