Definition at line 32 of file ShallowSimTracksProducer.cc.
References genericTrackCandidates_cff::associations, LCToCPAssociation_cfi::associator, associator_token_, ALCARECOTkAlJpsiMuMu_cff::charge, TrackingParticle::charge(), run3scouting_cff::dsz, PVValHelper::dxy, PVValHelper::eta, TrackingParticle::eta(), shallow::findTrackIndex(), edm::Ref< C, T, F >::get(), mps_fire::i, oniaPATMuonsWithTrigger_cff::matches, eostools::move(), trackerHitRTTI::multi, TrackingParticle::p(), TrackingParticle::parentVertex(), TrackingParticle::pdgId(), phi, TrackingParticle::phi(), TrackingVertex::position(), Prefix, DiDispStaMuonMonitor_cfi::pt, TrackingParticle::pt(), run3scouting_cff::qoverp, findQualityFiles::size, Suffix, TrackingParticle::theta(), theta(), HLT_2024v14_cff::track, muonClassificationByHits_cfi::trackingParticles, trackingParticles_token_, DiMuonV_cfg::tracks, tracks_token_, btvMC_cff::vx, btvMC_cff::vy, and btvMC_cff::vz.
41 auto multi = std::make_unique<std::vector<unsigned>>(
size, 0);
42 auto type = std::make_unique<std::vector<int>>(
size, 0);
43 auto charge = std::make_unique<std::vector<float>>(
size, 0);
44 auto momentum = std::make_unique<std::vector<float>>(
size, -1);
45 auto pt = std::make_unique<std::vector<float>>(
size, -1);
46 auto theta = std::make_unique<std::vector<double>>(
size, -1000);
47 auto phi = std::make_unique<std::vector<double>>(
size, -1000);
48 auto eta = std::make_unique<std::vector<double>>(
size, -1000);
49 auto dxy = std::make_unique<std::vector<double>>(
size, -1000);
50 auto dsz = std::make_unique<std::vector<double>>(
size, -1000);
51 auto qoverp = std::make_unique<std::vector<double>>(
size, -1000);
52 auto vx = std::make_unique<std::vector<double>>(
size, -1000);
53 auto vy = std::make_unique<std::vector<double>>(
size, -1000);
54 auto vz = std::make_unique<std::vector<double>>(
size, -1000);
69 momentum->at(
i) = tparticle->
p();
70 pt->at(
i) = tparticle->
pt();
const edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > associator_token_
double p() const
Magnitude of momentum vector. Note this is taken from the first SimTrack only.
int findTrackIndex(const edm::Handle< edm::View< reco::Track > > &h, const reco::Track *t)
std::tuple< layerClusterToCaloParticle, caloParticleToLayerCluster > association
double eta() const
Momentum pseudorapidity. Note this is taken from the first SimTrack only.
const LorentzVector & position() const
const TrackingVertexRef & parentVertex() const
double phi() const
Momentum azimuthal angle. Note this is taken from the first SimTrack only.
T const * get() const
Returns C++ pointer to the item.
Monte Carlo truth information used for tracking validation.
double theta() const
Momentum polar angle. Note this is taken from the first SimTrack only.
double pt() const
Transverse momentum. Note this is taken from the first SimTrack only.
const edm::EDGetTokenT< edm::View< reco::Track > > tracks_token_
Geom::Theta< T > theta() const
const edm::EDGetTokenT< TrackingParticleCollection > trackingParticles_token_
float charge() const
Electric charge. Note this is taken from the first SimTrack only.