46 bool trackSelected(
unsigned char mask,
unsigned char qual) {
47 return mask & 1<<qual;
55 calculateDrSingleCollection_(pset.getUntrackedParameter<bool>(
"calculateDrSingleCollection")),
56 doPlotsOnlyForTruePV_(pset.getUntrackedParameter<bool>(
"doPlotsOnlyForTruePV")),
57 doSummaryPlots_(pset.getUntrackedParameter<bool>(
"doSummaryPlots")),
58 doSimPlots_(pset.getUntrackedParameter<bool>(
"doSimPlots")),
59 doSimTrackPlots_(pset.getUntrackedParameter<bool>(
"doSimTrackPlots")),
60 doRecoTrackPlots_(pset.getUntrackedParameter<bool>(
"doRecoTrackPlots")),
61 dodEdxPlots_(pset.getUntrackedParameter<bool>(
"dodEdxPlots")),
62 doPVAssociationPlots_(pset.getUntrackedParameter<bool>(
"doPVAssociationPlots")),
63 doSeedPlots_(pset.getUntrackedParameter<bool>(
"doSeedPlots")),
64 doMVAPlots_(pset.getUntrackedParameter<bool>(
"doMVAPlots")),
65 simPVMaxZ_(pset.getUntrackedParameter<double>(
"simPVMaxZ"))
92 for(
size_t iIter=0; iIter<
labelToken.size(); ++iIter) {
95 if(mvaPSet.exists(labels.
module)) {
98 return std::make_tuple(consumes<MVACollection>(edm::InputTag(tag,
"MVAValues")),
99 consumes<QualityMaskCollection>(edm::InputTag(tag,
"QualityMasks")));
180 const auto minColl = -0.5;
181 const auto maxColl =
label.size()-0.5;
182 const auto nintColl =
label.size();
185 TH1 *
h = me->getTH1();
186 for(
size_t i=0;
i<
label.size(); ++
i) {
187 h->GetXaxis()->SetBinLabel(
i+1,
label[
i].
label().c_str());
203 for (
unsigned int ww=0;ww<
associators.size();ww++){
210 h_assoc_coll.push_back(binLabels( ibook.
book1D(
"num_assoc(simToReco)_coll",
"N of associated (simToReco) tracks vs track collection", nintColl, minColl, maxColl) ));
211 h_simul_coll.push_back(binLabels( ibook.
book1D(
"num_simul_coll",
"N of simulated tracks vs track collection", nintColl, minColl, maxColl) ));
213 h_assoc_coll_allPt.push_back(binLabels( ibook.
book1D(
"num_assoc(simToReco)_coll_allPt",
"N of associated (simToReco) tracks vs track collection", nintColl, minColl, maxColl) ));
214 h_simul_coll_allPt.push_back(binLabels( ibook.
book1D(
"num_simul_coll_allPt",
"N of simulated tracks vs track collection", nintColl, minColl, maxColl) ));
218 h_reco_coll.push_back(binLabels( ibook.
book1D(
"num_reco_coll",
"N of reco track vs track collection", nintColl, minColl, maxColl) ));
219 h_assoc2_coll.push_back(binLabels( ibook.
book1D(
"num_assoc(recoToSim)_coll",
"N of associated (recoToSim) tracks vs track collection", nintColl, minColl, maxColl) ));
220 h_looper_coll.push_back(binLabels( ibook.
book1D(
"num_duplicate_coll",
"N of associated (recoToSim) looper tracks vs track collection", nintColl, minColl, maxColl) ));
221 h_pileup_coll.push_back(binLabels( ibook.
book1D(
"num_pileup_coll",
"N of associated (recoToSim) pileup tracks vs track collection", nintColl, minColl, maxColl) ));
225 for (
unsigned int www=0;www<
label.size();www++){
232 dirName+=algo.
label()+
"_";
235 if (dirName.find(
"Tracks")<dirName.length()){
236 dirName.replace(dirName.find(
"Tracks"),6,
"");
239 if (assoc.find(
"Track")<assoc.length()){
240 assoc.replace(assoc.find(
"Track"),5,
"");
277 if(eff.
id() != fake.
id()) {
278 throw cms::Exception(
"Configuration") <<
"Efficiency and fake TrackingParticle (refs) point to different collections (eff " << eff.
id() <<
" fake " << fake.
id() <<
"). This is not supported. Efficiency TP set must be the same or a subset of the fake TP set.";
284 for(
const auto& ref: fake) {
285 fakeKeys.
insert(ref.key());
288 for(
const auto& ref: eff) {
289 if(!fakeKeys.
has(ref.key())) {
290 throw cms::Exception(
"Configuration") <<
"Efficiency TrackingParticle " << ref.key() <<
" is not found from the set of fake TPs. This is not supported. The efficiency TP set must be the same or a subset of the fake TP set.";
297 for(
const auto& simV: *htv) {
298 if(simV.eventId().bunchCrossing() != 0)
continue;
299 if(simV.eventId().event() != 0)
continue;
300 return &(simV.position());
313 auto pvPtr = hvertex->refAt(0);
314 if(pvPtr->isFake() || pvPtr->ndof() < 0)
317 auto pvFound = v_r2s.find(pvPtr);
318 if(pvFound == v_r2s.end())
321 for(
const auto& vertexRefQuality: pvFound->val) {
324 return &(pvPtr->position());
335 std::vector<std::tuple<TrackingParticle::Vector, TrackingParticle::Point> >& momVert_tPCeff,
336 std::vector<size_t>& selected_tPCeff)
const {
337 selected_tPCeff.reserve(tPCeff.
size());
338 momVert_tPCeff.reserve(tPCeff.
size());
341 for(
size_t j=0; j<tPCeff.
size(); ++j) {
347 histoProducerAlgo_->fill_generic_simTrack_histos(momentum, vertex, tpr->eventId().bunchCrossing());
349 if(tpr->eventId().bunchCrossing() == 0)
353 selected_tPCeff.push_back(j);
354 momVert_tPCeff.emplace_back(momentum, vertex);
360 for(
auto const& tpr: tPCeff) {
374 selected_tPCeff.push_back(j);
377 momVert_tPCeff.emplace_back(momentum, vertex);
389 const std::vector<size_t>& selected_tPCeff,
391 float etaL[tPCeff.
size()], phiL[tPCeff.
size()];
392 size_t n_selTP_dr = 0;
393 for(
size_t iTP: selected_tPCeff) {
395 auto const& tp2 = *(tPCeff[iTP]);
396 auto &&
p = tp2.momentum();
397 etaL[iTP] = etaFromXYZ(
p.x(),
p.y(),
p.z());
398 phiL[iTP] = atan2f(
p.y(),
p.x());
400 for(
size_t iTP1: selected_tPCeff) {
401 auto const& tp = *(tPCeff[iTP1]);
405 float eta = etaL[iTP1];
406 float phi = phiL[iTP1];
407 for(
size_t iTP2: selected_tPCeff) {
409 if (iTP1==iTP2) {
continue;}
410 auto dR_tmp =
reco::deltaR2(eta, phi, etaL[iTP2], phiL[iTP2]);
411 if (dR_tmp<dR) dR=dR_tmp;
421 float etaL[trackCollectionDr.
size()];
422 float phiL[trackCollectionDr.
size()];
423 bool validL[trackCollectionDr.
size()];
424 for (
auto const & track2 : trackCollectionDr) {
425 auto &&
p = track2.momentum();
426 etaL[
i] = etaFromXYZ(
p.x(),
p.y(),
p.z());
427 phiL[
i] = atan2f(
p.y(),
p.x());
432 auto const &
track = trackCollection[
i];
435 auto &&
p =
track.momentum();
436 float eta = etaFromXYZ(
p.x(),
p.y(),
p.z());
437 float phi = atan2f(
p.y(),
p.x());
439 if(!validL[j])
continue;
450 using namespace reco;
452 LogDebug(
"TrackValidator") <<
"\n====================================================" <<
"\n" 453 <<
"Analyzing new event" <<
"\n" 454 <<
"====================================================\n" <<
"\n";
460 auto parametersDefinerTP = parametersDefinerTPHandle->
clone();
478 if(!tp_effic_refvector) {
480 for(
size_t i=0,
size=TPCollectionHeff->size();
i<
size; ++
i) {
483 tmpTPeffPtr = &tmpTPeff;
487 tmpTPeffPtr = TPCollectionHeffRefVector.
product();
492 for(
size_t i=0,
size=TPCollectionHfake->size();
i<
size; ++
i) {
495 tmpTPfakePtr = &tmpTPfake;
500 tmpTPfakePtr = TPCollectionHfakeRefVector.
product();
506 ensureEffIsSubsetOfFake(tPCeff, tPCfake);
512 parametersDefinerTP->initEvent(simHitsTPAssoc);
523 if(!theSimPVPosition)
return;
539 thePVposition =
nullptr;
543 event.getByToken(
bsSrc,recoBeamSpotHandle);
550 for (
unsigned int puinfo_ite=0;puinfo_ite<(*puinfoH).size();++puinfo_ite){
551 if ((*puinfoH)[puinfo_ite].getBunchCrossing()==0){
552 puinfo=(*puinfoH)[puinfo_ite];
560 const auto& nLayers_tPCeff = *tpNLayersH;
563 const auto& nPixelLayers_tPCeff = *tpNLayersH;
566 const auto& nStripMonoAndStereoLayers_tPCeff = *tpNLayersH;
586 std::vector<size_t> selected_tPCeff;
587 std::vector<std::tuple<TrackingParticle::Vector, TrackingParticle::Point>> momVert_tPCeff;
592 size_t n_selTP_dr =
tpDR(tPCeff, selected_tPCeff, dR_tPCeff);
602 std::vector<const edm::ValueMap<reco::DeDxData> *> v_dEdx;
608 v_dEdx.push_back(dEdx1Handle.
product());
609 v_dEdx.push_back(dEdx2Handle.
product());
612 std::vector<const MVACollection *> mvaCollections;
613 std::vector<const QualityMaskCollection *> qualityMaskCollections;
614 std::vector<float> mvaValues;
617 for (
unsigned int ww=0;ww<
associators.size();ww++){
625 simRecCollPFull = simtorecoCollectionH.
product();
629 recSimCollP = recotosimCollectionH.
product();
635 recSimCollP = &recSimCollL;
638 for (
unsigned int www=0;www<
label.size();www++, w++){
650 LogTrace(
"TrackValidator") <<
"Analyzing " 651 <<
label[www] <<
" with " 664 LogTrace(
"TrackValidator") <<
"Calling associateRecoToSim method" <<
"\n";
666 recSimCollP = &recSimCollL;
667 LogTrace(
"TrackValidator") <<
"Calling associateSimToReco method" <<
"\n";
675 simRecCollP = &simRecCollL;
683 simRecCollP = &simRecCollL;
694 event.getByToken(std::get<0>(tokenTpl), hmva);
695 event.getByToken(std::get<1>(tokenTpl), hqual);
697 mvaCollections.push_back(hmva.
product());
698 qualityMaskCollections.push_back(hqual.
product());
699 if(mvaCollections.back()->size() != trackCollection.
size()) {
700 throw cms::Exception(
"Configuration") <<
"Inconsistency in track collection and MVA sizes. Track collection " << www <<
" has " << trackCollection.
size() <<
" tracks, whereas the MVA " << (mvaCollections.size()-1) <<
" for it has " << mvaCollections.back()->size() <<
" entries. Double-check your configuration.";
702 if(qualityMaskCollections.back()->size() != trackCollection.
size()) {
703 throw cms::Exception(
"Configuration") <<
"Inconsistency in track collection and quality mask sizes. Track collection " << www <<
" has " << trackCollection.
size() <<
" tracks, whereas the quality mask " << (qualityMaskCollections.size()-1) <<
" for it has " << qualityMaskCollections.back()->size() <<
" entries. Double-check your configuration.";
714 LogTrace(
"TrackValidator") <<
"\n# of TrackingParticles: " << tPCeff.
size() <<
"\n";
719 for(
size_t i=0;
i<selected_tPCeff.size(); ++
i) {
720 size_t iTP = selected_tPCeff[
i];
724 auto const& momVert = momVert_tPCeff[
i];
732 double dR=dR_tPCeff[iTP];
746 if(theSimPVPosition) {
754 momentumTP = std::get<TrackingParticle::Vector>(momVert);
755 vertexTP = std::get<TrackingParticle::Point>(momVert);
775 unsigned int selectsLoose = mvaCollections.size();
776 unsigned int selectsHP = mvaCollections.size();
777 if(simRecColl.
find(tpr) != simRecColl.
end()){
778 auto const & rt = simRecColl[tpr];
782 matchedTrackPointer = rt.begin()->first.get();
783 LogTrace(
"TrackValidator") <<
"TrackingParticle #" << st
784 <<
" with pt=" <<
sqrt(momentumTP.perp2())
785 <<
" associated with quality:" << rt.begin()->second <<
"\n";
794 for(
size_t imva=0; imva<mvaCollections.size(); ++imva) {
795 const auto&
mva = *(mvaCollections[imva]);
796 const auto& qual = *(qualityMaskCollections[imva]);
798 auto iMatch = rt.begin();
799 float maxMva =
mva[iMatch->first.key()];
800 for(; iMatch!=rt.end(); ++iMatch) {
801 auto itrk = iMatch->first.key();
809 mvaValues.push_back(maxMva);
815 <<
"TrackingParticle #" << st
816 <<
" with pt,eta,phi: " 817 <<
sqrt(momentumTP.perp2()) <<
" , " 818 << momentumTP.eta() <<
" , " 819 << momentumTP.phi() <<
" , " 820 <<
" NOT associated to any reco::Track" <<
"\n";
827 int nSimLayers = nLayers_tPCeff[tpr];
828 int nSimPixelLayers = nPixelLayers_tPCeff[tpr];
829 int nSimStripMonoAndStereoLayers = nStripMonoAndStereoLayers_tPCeff[tpr];
830 histoProducerAlgo_->fill_recoAssociated_simTrack_histos(w,tp,momentumTP,vertexTP,dxySim,dzSim,dxyPVSim,dzPVSim,nSimHits,nSimLayers,nSimPixelLayers,nSimStripMonoAndStereoLayers,matchedTrackPointer,puinfo.
getPU_NumInteractions(),
dR, thePVposition, theSimPVPosition, mvaValues, selectsLoose, selectsHP);
835 if (matchedTrackPointer) {
841 if (matchedTrackPointer) {
858 LogTrace(
"TrackValidator") <<
"\n# of reco::Tracks with " 859 <<
label[www].process()<<
":" 860 <<
label[www].label()<<
":" 861 <<
label[www].instance()
862 <<
": " << trackCollection.
size() <<
"\n";
867 int seed_fit_failed = 0;
868 size_t n_selTrack_dr = 0;
873 trackCollectionDr = trackCollectionForDrCalculation.
product();
876 trackDR(trackCollection, *trackCollectionDr, dR_trk);
884 bool isSigSimMatched(
false);
885 bool isSimMatched(
false);
886 bool isChargeMatched(
true);
887 int numAssocRecoTracks = 0;
889 double sharedFraction = 0.;
892 isSimMatched = tpFound != recSimColl.
end();
894 const auto& tp = tpFound->val;
895 nSimHits = tp[0].first->numberOfTrackerHits();
896 sharedFraction = tp[0].second;
897 if (tp[0].
first->charge() !=
track->charge()) isChargeMatched =
false;
898 if(simRecColl.
find(tp[0].first) != simRecColl.
end()) numAssocRecoTracks = simRecColl[tp[0].
first].
size();
900 for (
unsigned int tp_ite=0;tp_ite<tp.size();++tp_ite){
903 isSigSimMatched =
true;
908 LogTrace(
"TrackValidator") <<
"reco::Track #" << rT <<
" with pt=" <<
track->pt()
909 <<
" associated with quality:" << tp.begin()->second <<
"\n";
911 LogTrace(
"TrackValidator") <<
"reco::Track #" << rT <<
" with pt=" <<
track->pt()
912 <<
" NOT associated to any TrackingParticle" <<
"\n";
918 unsigned int selectsLoose = mvaCollections.size();
919 unsigned int selectsHP = mvaCollections.size();
921 for(
size_t imva=0; imva<mvaCollections.size(); ++imva) {
922 const auto&
mva = *(mvaCollections[imva]);
923 const auto& qual = *(qualityMaskCollections[imva]);
924 mvaValues.push_back(
mva[
i]);
934 histoProducerAlgo_->fill_generic_recoTrack_histos(w,*
track, ttopo, bs.
position(), thePVposition, theSimPVPosition, isSimMatched,isSigSimMatched, isChargeMatched, numAssocRecoTracks, puinfo.
getPU_NumInteractions(), nSimHits, sharedFraction,
dR, mvaValues, selectsLoose, selectsHP);
941 if(numAssocRecoTracks>1) {
944 if(!isSigSimMatched) {
955 if (!isSimMatched)
continue;
979 int chargeTP = tpr->charge();
990 mvaCollections.clear();
991 qualityMaskCollections.clear();
1000 LogTrace(
"TrackValidator") <<
"Collection " << www <<
"\n" 1001 <<
"Total Simulated (selected): " << n_selTP_dr <<
"\n" 1002 <<
"Total Reconstructed (selected): " << n_selTrack_dr <<
"\n" 1003 <<
"Total Reconstructed: " << rT <<
"\n" 1004 <<
"Total Associated (recoToSim): " << at <<
"\n" 1005 <<
"Total Fakes: " << rT-at <<
"\n";
void trackDR(const edm::View< reco::Track > &trackCollection, const edm::View< reco::Track > &trackCollectionDr, DynArray< float > &dR_trk) const
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::ValueMap< reco::DeDxData > > m_dEdx1Tag
T getUntrackedParameter(std::string const &, T const &) const
std::vector< edm::InputTag > associators
edm::EDGetTokenT< SimHitTPAssociationProducer::SimHitTPAssociationList > _simHitTpMapTag
int event() const
get the contents of the subdetector field (should be protected?)
std::vector< MonitorElement * > h_reco_coll
bool trackFromSeedFitFailed(const reco::Track &track)
bool ignoremissingtkcollection_
std::vector< edm::EDGetTokenT< reco::SimToRecoCollection > > associatormapStRs
edm::EDGetTokenT< std::vector< PileupSummaryInfo > > label_pileupinfo
CosmicTrackingParticleSelector cosmictpSelector
Vector momentum() const
spatial momentum vector
const_iterator end() const
last iterator over the map (read only)
edm::EDGetTokenT< TrackingParticleCollection > label_tp_effic
std::vector< MonitorElement * > h_simul_coll
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< TrackingParticleRefVector > label_tp_fake_refvector
const_iterator find(const key_type &k) const
find element with specified reference key
std::vector< std::vector< std::tuple< edm::EDGetTokenT< MVACollection >, edm::EDGetTokenT< QualityMaskCollection > > > > mvaQualityCollectionTokens_
edm::EDGetTokenT< TrackingParticleRefVector > label_tp_effic_refvector
void analyze(const edm::Event &, const edm::EventSetup &) override
Method called once per event.
edm::EDGetTokenT< edm::ValueMap< unsigned int > > tpNStripStereoLayersToken_
def replace(string, replacements)
edm::EDGetTokenT< edm::ValueMap< unsigned int > > tpNLayersToken_
def setup(process, global_tag, zero_tesla=False)
edm::EDGetTokenT< TrackingVertexCollection > label_tv
T_AssociationMap associationMapFilterValues(const T_AssociationMap &map, const T_RefVector &valueRefs)
TrackingParticleSelector dRtpSelector
TrackingParticleSelector dRtpSelectorNoPtCut
trackCollectionForDrCalculation
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 >
std::vector< edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > > associatorTokens
bool empty() const
Is the RefVector empty.
const bool doPlotsOnlyForTruePV_
const reco::Vertex::Point * getRecoPVPosition(const edm::Event &event, const edm::Handle< TrackingVertexCollection > &htv) const
void tpParametersAndSelection(const TrackingParticleRefVector &tPCeff, const ParametersDefinerForTP ¶metersDefinerTP, const edm::Event &event, const edm::EventSetup &setup, const reco::BeamSpot &bs, std::vector< std::tuple< TrackingParticle::Vector, TrackingParticle::Point > > &momVert_tPCeff, std::vector< size_t > &selected_tPCeff) const
static std::unique_ptr< RecoTrackSelectorBase > makeRecoTrackSelectorFromTPSelectorParameters(const edm::ParameterSet &pset, const edm::InputTag &beamSpotTag, edm::ConsumesCollector &iC)
edm::EDGetTokenT< reco::BeamSpot > bsSrc
RefToBase< value_type > refAt(size_type i) const
math::XYZPointD Point
point in the space
std::vector< MonitorElement * > h_looper_coll
edm::EDGetTokenT< edm::ValueMap< unsigned int > > tpNPixelLayersToken_
math::XYZTLorentzVectorD LorentzVector
std::vector< MonitorElement * > h_pileup_coll
SingleObjectSelector< TrackingParticleCollection,::TrackingParticleSelector > TrackingParticleSelector
std::vector< MonitorElement * > h_assoc_coll
bool has(unsigned int index) const
Check if an element (=index) is in the set.
edm::Ref< edm::HepMCProduct, HepMC::GenParticle > GenParticleRef
std::vector< edm::InputTag > label
ProductID id() const
Accessor for product ID.
std::vector< edm::EDGetTokenT< reco::RecoToSimCollection > > associatormapRtSs
auto dz(const T_Vertex &vertex, const T_Momentum &momentum, const T_Point &point)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
size_t tpDR(const TrackingParticleRefVector &tPCeff, const std::vector< size_t > &selected_tPCeff, DynArray< float > &dR_tPCeff) const
int bunchCrossing() const
get the detector field from this detid
TrackingParticleSelector tpSelector
MonitorElement * book1D(Args &&...args)
Abs< T >::type abs(const T &t)
virtual TrackingParticle::Vector momentum(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vtx, const LorentzVector &lv) const
edm::EDGetTokenT< edm::View< reco::Track > > labelTokenForDrCalculation
math::XYZPoint Point
point in the space
void initEvent(edm::Handle< SimHitTPAssociationProducer::SimHitTPAssociationList > simHitsTPAssocToSet) const
virtual std::unique_ptr< ParametersDefinerForTP > clone() const
MultiTrackValidator(const edm::ParameterSet &pset)
Constructor.
ObjectSelector< CosmicTrackingParticleSelector > CosmicTrackingParticleSelector
std::unique_ptr< MTVHistoProducerAlgoForTracker > histoProducerAlgo_
const bool doSummaryPlots_
std::string parametersDefiner
std::vector< MonitorElement * > h_assoc_coll_allPt
void setCurrentFolder(const std::string &fullpath)
T const * product() const
reco::RecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Method called to book the DQM histograms.
edm::EDGetTokenT< reco::VertexToTrackingVertexAssociator > vertexAssociatorToken_
std::unique_ptr< RecoTrackSelectorBase > dRTrackSelector
const int getPU_NumInteractions() const
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
void labelsForToken(EDGetToken iToken, Labels &oLabels) const
const bool doPVAssociationPlots_
EncodedEventId eventId() const
Signal source, crossing number.
Point vertex() const
Parent vertex position.
edm::EDGetTokenT< edm::View< reco::Vertex > > recoVertexToken_
const EncodedEventId & eventId() const
const bool calculateDrSingleCollection_
auto dxy(const T_Vertex &vertex, const T_Momentum &momentum, const T_Point &point)
std::vector< MonitorElement * > h_simul_coll_allPt
void push_back(const RefToBase< T > &)
std::vector< MonitorElement * > h_assoc2_coll
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
size_type size() const
Size of the RefVector.
Monte Carlo truth information used for tracking validation.
void insert(unsigned int index)
Insert an element (=index) to the set.
bool isUninitialized() const
const Point & position() const
position
#define declareDynArray(T, n, x)
int numberOfTrackerHits() const
The number of hits in the tracker. Hits on overlaps in the same layer count separately.
reco::SimToRecoCollection associateSimToReco(const edm::Handle< edm::View< reco::Track > > &tCH, const edm::Handle< TrackingParticleCollection > &tPCH) const
compare reco to sim the handle of reco::Track and TrackingParticle collections
std::vector< edm::EDGetTokenT< edm::View< reco::Track > > > labelToken
math::XYZVectorD Vector
point in the space
reco::VertexRecoToSimCollection associateRecoToSim(const edm::Handle< edm::View< reco::Vertex > > &vCH, const edm::Handle< TrackingVertexCollection > &tVCH) const
compare reco to sim the handle of reco::Vertex and TrackingVertex collections
void reserve(unsigned int size)
Reserve memory for the set.
edm::EDGetTokenT< TrackingParticleCollection > label_tp_fake
edm::Ref< TrackingParticleCollection > TrackingParticleRef
const bool doRecoTrackPlots_
edm::EDGetTokenT< edm::ValueMap< reco::DeDxData > > m_dEdx2Tag
virtual ~MultiTrackValidator()
Destructor.
virtual TrackingParticle::Point vertex(const edm::Event &iEvent, const edm::EventSetup &iSetup, const Charge ch, const Point &vtx, const LorentzVector &lv) const
const TrackingVertex::LorentzVector * getSimPVPosition(const edm::Handle< TrackingVertexCollection > &htv) const
const bool parametersDefinerIsCosmic_
const bool doSimTrackPlots_