35 std::vector<edm::EDGetTokenT<edm::View<reco::Track>>>
seedTokens_;
42 beamSpotToken_(consumes(iConfig.getParameter<
edm::
InputTag>(
"beamSpot"))),
43 lstPixelSeedInputPutToken_(produces()),
44 lstPixelSeedsPutToken_(produces()) {
46 [&](
const edm::InputTag&
tag) { return consumes<edm::View<reco::Track>>(tag); });
54 desc.add<std::vector<edm::InputTag>>(
"seedTracks",
55 std::vector<edm::InputTag>{
edm::InputTag(
"lstInitialStepSeedTracks"),
80 std::vector<int>
see_q;
84 for (
size_t iColl = 0; iColl <
seedTokens_.size(); ++iColl) {
100 for (
size_t iSeed = 0; iSeed < seedTrackRefs.
size(); ++iSeed) {
101 auto const& seedTrackRef = seedTrackRefs[iSeed];
102 auto const& seedTrack = *seedTrackRef;
103 auto const& seedRef = seedTrack.seedRef();
104 auto const&
seed = *seedRef;
106 if (seedRef.id() !=
id)
108 <<
"All tracks in 'TracksFromSeeds' collection should point to seeds in the same collection. Now the " 109 "element 0 had ProductID " 110 <<
id <<
" while the element " << seedTrackRef.key() <<
" had " << seedTrackRef.id() <<
".";
119 std::vector<int> hitIdx;
120 for (
auto const&
hit :
seed.recHits()) {
121 int subid =
hit.geographicalId().subdetId();
126 hitIdx.push_back(clusterKey);
128 throw cms::Exception(
"LSTPixelSeedInputProducer") <<
"Not pixel hits found!";
133 see_px.push_back(seedFitOk ? seedTrack.px() : 0);
134 see_py.push_back(seedFitOk ? seedTrack.py() : 0);
135 see_pz.push_back(seedFitOk ? seedTrack.pz() : 0);
136 see_dxy.push_back(seedFitOk ? seedTrack.dxy(
bs.position()) : 0);
137 see_dz.push_back(seedFitOk ? seedTrack.dz(
bs.position()) : 0);
138 see_ptErr.push_back(seedFitOk ? seedTrack.ptError() : 0);
139 see_etaErr.push_back(seedFitOk ? seedTrack.etaError() : 0);
146 see_q.push_back(seedTrack.charge());
148 see_seeds.push_back(
seed);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const std::vector< int > & see_q()
T getParameter(std::string const &) const
const std::vector< float > & see_py()
bool trackFromSeedFitFailed(const reco::Track &track)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const std::vector< float > & see_stateTrajGlbX()
const std::vector< float > & see_stateTrajGlbY()
const std::vector< float > & see_ptErr()
const GlobalTrajectoryParameters & globalParameters() const
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
const std::vector< float > & see_stateTrajGlbPz()
const std::vector< float > & see_stateTrajGlbPy()
key_type key() const
Accessor for product key.
ClusterPixelRef cluster_pixel() const
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual const Surface * surface() const
const std::vector< float > & see_stateTrajGlbPx()
#define DEFINE_FWK_MODULE(type)
virtual OmniClusterRef const & firstClusterRef() const =0
const std::vector< float > & see_dz()
const std::vector< float > & see_etaErr()
const std::vector< float > & see_px()
const std::vector< float > & see_dxy()
void push_back(const RefToBase< T > &)
const std::vector< float > & see_pz()
const std::vector< float > & see_stateTrajGlbZ()
const std::vector< std::vector< int > > & see_hitIdx()