45 #include "HepMC/GenRanges.h" 46 #include "CLHEP/Units/PhysicalConstants.h" 107 static constexpr
double rBTL_ = 110.0;
108 static constexpr
double zETL_ = 290.0;
206 trackMinPt_(iConfig.getParameter<double>(
"trackMinimumPt")),
207 trackMaxBtlEta_(iConfig.getParameter<double>(
"trackMaximumBtlEta")),
208 trackMinEtlEta_(iConfig.getParameter<double>(
"trackMinimumEtlEta")),
209 trackMaxEtlEta_(iConfig.getParameter<double>(
"trackMaximumEtlEta")),
210 optionalPlots_(iConfig.getUntrackedParameter<
bool>(
"optionalPlots")) {
234 mtdgeoToken_ = esConsumes<MTDGeometry, MTDDigiGeometryRecord>();
250 const MTDTopology* topology = topologyHandle.product();
252 bool topo1Dis =
false;
253 bool topo2Dis =
false;
263 std::unordered_map<uint32_t, MTDHit> m_btlHits;
264 std::unordered_map<uint32_t, MTDHit> m_etlHits;
265 std::unordered_map<uint32_t, std::set<unsigned long int>> m_btlTrkPerCell;
266 std::unordered_map<uint32_t, std::set<unsigned long int>> m_etlTrkPerCell;
280 const auto& primRecoVtx = *(RecVertexHandle.product()->begin());
285 double zsim =
convertMmToCm((*(
mc->vertices_begin()))->position().z());
286 double tsim = (*(
mc->vertices_begin()))->position().t() * CLHEP::mm / CLHEP::c_light;
292 s2r_ = simToRecoH.product();
295 r2s_ = recoToSimH.product();
298 std::unordered_set<unsigned long int> mtdTrackId;
300 std::unordered_set<unsigned long int> tpTrackId;
303 for (
const auto&
tp : tpColl) {
304 if (
tp.eventId().bunchCrossing() == 0 &&
tp.eventId().event() == 0) {
314 for (
const auto& simTrk :
tp.g4Tracks()) {
315 auto const thisTId =
uniqueId(simTrk.trackId(), simTrk.eventId());
316 tpTrackId.insert(thisTId);
317 LogDebug(
"MtdTracksValidation") <<
"TP simTrack id : " << thisTId;
326 for (
auto const&
simHit : btlSimHits) {
331 m_btlTrkPerCell[
id.rawId()].insert(thisHId);
332 auto simHitIt = m_btlHits.emplace(
id.rawId(), MTDHit()).first;
338 for (
auto const& cell : m_btlTrkPerCell) {
339 bool foundAssocTP =
false;
340 auto detId_key = cell.first;
341 for (
auto const& simtrack : cell.second) {
342 if (tpTrackId.find(simtrack) != tpTrackId.end()) {
344 mtdTrackId.insert(simtrack);
347 if (foundAssocTP ==
false) {
358 for (
auto const&
simHit : etlSimHits) {
364 m_etlTrkPerCell[
id.rawId()].insert(thisHId);
365 auto simHitIt = m_etlHits.emplace(
id.rawId(), MTDHit()).first;
371 for (
auto const& cell : m_etlTrkPerCell) {
372 bool foundAssocTP =
false;
373 auto detId_key = cell.first;
374 for (
auto const& simtrack : cell.second) {
375 if (tpTrackId.find(simtrack) != tpTrackId.end()) {
377 mtdTrackId.insert(simtrack);
380 if (foundAssocTP ==
false) {
391 for (
const auto&
tp : tpColl) {
392 if (
tp.eventId().bunchCrossing() == 0 &&
tp.eventId().event() == 0) {
400 bool tpIsAssoc =
false;
401 bool goodCell =
false;
402 for (
auto const& cell : m_btlTrkPerCell) {
403 auto detId_key = cell.first;
411 if (thedet ==
nullptr)
412 throw cms::Exception(
"MtdTracksValidation") <<
"GeographicalID: " << std::hex <<
geoId.rawId() <<
" (" 413 << detId.
rawId() <<
") is invalid!" <<
std::dec << std::endl;
424 const auto& global_point = thedet->
toGlobal(local_point);
430 for (
auto const& simtrack : cell.second) {
431 for (
auto const& TPsimtrack :
tp.g4Tracks()) {
432 auto const testId =
uniqueId(TPsimtrack.trackId(), TPsimtrack.eventId());
433 if (simtrack == testId) {
440 if (!tpIsAssoc && goodCell) {
446 bool tpIsAssoc =
false;
447 bool goodCell =
false;
448 for (
auto const& cell : m_etlTrkPerCell) {
449 auto detId_key = cell.first;
457 if (thedet ==
nullptr)
458 throw cms::Exception(
"MtdTracksValidation") <<
"GeographicalID: " << std::hex <<
geoId.rawId() <<
" (" 459 << detId.
rawId() <<
") is invalid!" <<
std::dec << std::endl;
464 const auto& global_point = thedet->
toGlobal(local_point);
470 for (
auto const& simtrack : cell.second) {
471 for (
auto const& TPsimtrack :
tp.g4Tracks()) {
472 auto const testId =
uniqueId(TPsimtrack.trackId(), TPsimtrack.eventId());
473 if (simtrack == testId) {
480 if (!tpIsAssoc && goodCell) {
488 unsigned int index = 0;
491 const bool isGoodVtx =
std::abs(primRecoVtx.z() - zsim) <
deltaZcut_ || primRecoVtx.isFake();
494 for (
const auto& trackGen : *GenRecTrackHandle) {
498 if (trackAssoc[trackref] == -1) {
499 LogInfo(
"mtdTracks") <<
"Extended track not associated";
507 bool twoETLdiscs =
false;
511 if (std::round(SigmatMtd[trackref] - Sigmat0Pid[trackref]) != 0) {
513 <<
"TimeError associated to refitted track is different from TimeError stored in tofPID " 514 "sigmat0 ValueMap: this should not happen";
535 int numMTDBtlvalidhits = 0;
536 for (
const auto hit :
track.recHits()) {
537 if (
hit->isValid() ==
false)
540 if ((
Hit.det() == 6) && (
Hit.subdetId() == 1) && (
Hit.mtdSubDetector() == 1)) {
542 numMTDBtlvalidhits++;
548 if (MTDBtl ==
true) {
572 bool MTDEtlZnegD1 =
false;
573 bool MTDEtlZnegD2 =
false;
574 bool MTDEtlZposD1 =
false;
575 bool MTDEtlZposD2 =
false;
576 int numMTDEtlvalidhits = 0;
577 for (
const auto hit :
track.recHits()) {
578 if (
hit->isValid() ==
false)
581 if ((
Hit.det() == 6) && (
Hit.subdetId() == 1) && (
Hit.mtdSubDetector() == 2)) {
585 if ((ETLHit.
zside() == -1) && (ETLHit.
nDisc() == 1)) {
589 numMTDEtlvalidhits++;
591 if ((ETLHit.
zside() == -1) && (ETLHit.
nDisc() == 2)) {
595 numMTDEtlvalidhits++;
597 if ((ETLHit.
zside() == 1) && (ETLHit.
nDisc() == 1)) {
601 numMTDEtlvalidhits++;
603 if ((ETLHit.
zside() == 1) && (ETLHit.
nDisc() == 2)) {
607 numMTDEtlvalidhits++;
612 if (ETLHit.
zside() == -1) {
615 numMTDEtlvalidhits++;
617 if (ETLHit.
zside() == 1) {
620 numMTDEtlvalidhits++;
629 twoETLdiscs = (MTDEtlZnegD1 ==
true) && (MTDEtlZnegD2 ==
true);
630 if ((MTDEtlZnegD1 ==
true) || (MTDEtlZnegD2 ==
true)) {
642 twoETLdiscs = (MTDEtlZposD1 ==
true) && (MTDEtlZposD2 ==
true);
643 if ((MTDEtlZposD1 ==
true) || (MTDEtlZposD2 ==
true)) {
659 const bool vtxFake = primRecoVtx.isFake();
661 if (
mvaRecSel(trackGen, primRecoVtx, t0Safe[trackref], Sigmat0Safe[trackref])) {
669 double dZ = trackGen.vz() - zsim;
671 double pullT(-9999.);
672 if (Sigmat0Safe[trackref] != -1.) {
673 dT = t0Safe[trackref] - tsim;
674 pullT = dT / Sigmat0Safe[trackref];
676 for (
const auto& genP :
mc->particle_range()) {
689 if (pullT > -9999.) {
707 if (tp_info !=
nullptr &&
mvaTPSel(**tp_info)) {
708 const bool withMTD =
tpWithMTD(**tp_info, mtdTrackId);
719 if (pullT > -9999.) {
722 if (isBTL || twoETLdiscs) {
730 if (isBTL || twoETLdiscs) {
751 ibook.
book1D(
"TrackBTLEffPhiTot",
"Track efficiency vs phi (Tot);#phi_{RECO} [rad]", 100, -3.2, 3.2);
755 ibook.
book1D(
"TrackBTLEffPhiMtd",
"Track efficiency vs phi (Mtd);#phi_{RECO} [rad]", 100, -3.2, 3.2);
758 ibook.
book1D(
"TrackBTLPtRes",
"Track pT resolution ;pT_{Gentrack}-pT_{MTDtrack}/pT_{Gentrack} ", 100, -0.1, 0.1);
761 ibook.
book1D(
"TrackETLEffEtaTotZneg",
"Track efficiency vs eta (Tot) (-Z);#eta_{RECO}", 100, -3.2, -1.4);
763 ibook.
book1D(
"TrackETLEffEtaTotZpos",
"Track efficiency vs eta (Tot) (+Z);#eta_{RECO}", 100, 1.4, 3.2);
765 ibook.
book1D(
"TrackETLEffPhiTotZneg",
"Track efficiency vs phi (Tot) (-Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
767 ibook.
book1D(
"TrackETLEffPhiTotZpos",
"Track efficiency vs phi (Tot) (+Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
769 ibook.
book1D(
"TrackETLEffPtTotZneg",
"Track efficiency vs pt (Tot) (-Z);pt_{RECO} [GeV]", 50, 0, 10);
771 ibook.
book1D(
"TrackETLEffPtTotZpos",
"Track efficiency vs pt (Tot) (+Z);pt_{RECO} [GeV]", 50, 0, 10);
773 ibook.
book1D(
"TrackETLEffEtaMtdZneg",
"Track efficiency vs eta (Mtd) (-Z);#eta_{RECO}", 100, -3.2, -1.4);
775 ibook.
book1D(
"TrackETLEffEtaMtdZpos",
"Track efficiency vs eta (Mtd) (+Z);#eta_{RECO}", 100, 1.4, 3.2);
777 ibook.
book1D(
"TrackETLEffPhiMtdZneg",
"Track efficiency vs phi (Mtd) (-Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
779 ibook.
book1D(
"TrackETLEffPhiMtdZpos",
"Track efficiency vs phi (Mtd) (+Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
781 ibook.
book1D(
"TrackETLEffPtMtdZneg",
"Track efficiency vs pt (Mtd) (-Z);pt_{RECO} [GeV]", 50, 0, 10);
783 ibook.
book1D(
"TrackETLEffPtMtdZpos",
"Track efficiency vs pt (Mtd) (+Z);pt_{RECO} [GeV]", 50, 0, 10);
785 ibook.
book1D(
"TrackETLEffEta2MtdZneg",
"Track efficiency vs eta (Mtd 2 hit) (-Z);#eta_{RECO}", 100, -3.2, -1.4);
787 ibook.
book1D(
"TrackETLEffEta2MtdZpos",
"Track efficiency vs eta (Mtd 2 hit) (+Z);#eta_{RECO}", 100, 1.4, 3.2);
789 "TrackETLEffPhi2MtdZneg",
"Track efficiency vs phi (Mtd 2 hit) (-Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
791 "TrackETLEffPhi2MtdZpos",
"Track efficiency vs phi (Mtd 2 hit) (+Z);#phi_{RECO} [rad]", 100, -3.2, 3.2);
793 ibook.
book1D(
"TrackETLEffPt2MtdZneg",
"Track efficiency vs pt (Mtd 2 hit) (-Z);pt_{RECO} [GeV]", 50, 0, 10);
795 ibook.
book1D(
"TrackETLEffPt2MtdZpos",
"Track efficiency vs pt (Mtd 2 hit) (+Z);pt_{RECO} [GeV]", 50, 0, 10);
797 ibook.
book1D(
"TrackETLPtRes",
"Track pT resolution;pT_{Gentrack}-pT_{MTDtrack}/pT_{Gentrack} ", 100, -0.1, 0.1);
799 meTracktmtd_ = ibook.
book1D(
"Tracktmtd",
"Track time from TrackExtenderWithMTD;tmtd [ns]", 150, 1, 16);
800 meTrackt0Src_ = ibook.
book1D(
"Trackt0Src",
"Track time from TrackExtenderWithMTD;t0Src [ns]", 100, -1.5, 1.5);
802 ibook.
book1D(
"TrackSigmat0Src",
"Time Error from TrackExtenderWithMTD; #sigma_{t0Src} [ns]", 100, 0, 0.1);
804 meTrackt0Pid_ = ibook.
book1D(
"Trackt0Pid",
"Track t0 as stored in TofPid;t0 [ns]", 100, -1, 1);
808 ibook.
book1D(
"TrackSigmat0SafePID",
"Sigmat0 Safe as stored in TofPid; #sigma_{t0} [ns]", 100, 0, 0.1);
809 meTrackNumHits_ = ibook.
book1D(
"TrackNumHits",
"Number of valid MTD hits per track ; Number of hits", 10, -5, 5);
810 meTrackMVAQual_ = ibook.
book1D(
"TrackMVAQual",
"Track MVA Quality as stored in Value Map ; MVAQual", 100, 0, 1);
812 "TrackPathLenghtvsEta",
"MTD Track pathlength vs MTD track Eta;|#eta|;Pathlength", 100, 0, 3.2, 100.0, 400.0,
"S");
816 ibook.
book1D(
"MVAMatchedEffPtTot",
"Pt of tracks associated to LV matched to GEN; track pt [GeV] ", 110, 0., 11.);
818 "MVAMatchedEffPtMtd",
"Pt of tracks associated to LV matched to GEN with time; track pt [GeV] ", 110, 0., 11.);
821 ibook.
book1D(
"MatchedTPEffPtTot",
"Pt of tracks associated to LV matched to TP; track pt [GeV] ", 110, 0., 11.);
823 "MatchedTPEffPtMtd",
"Pt of tracks associated to LV matched to TP with time; track pt [GeV] ", 110, 0., 11.);
825 ibook.
book1D(
"MatchedTPEffPtEtl2Mtd",
826 "Pt of tracks associated to LV matched to TP with time, 2 ETL hits; track pt [GeV] ",
832 "MatchedTPmtdEffPtTot",
"Pt of tracks associated to LV matched to TP-mtd hit; track pt [GeV] ", 110, 0., 11.);
834 ibook.
book1D(
"MatchedTPmtdEffPtMtd",
835 "Pt of tracks associated to LV matched to TP-mtd hit with time; track pt [GeV] ",
842 ibook.
book1D(
"MVAMatchedEffEtaTot",
"Eta of tracks associated to LV matched to GEN; track eta ", 66, 0., 3.3);
844 "MVAMatchedEffEtaMtd",
"Eta of tracks associated to LV matched to GEN with time; track eta ", 66, 0., 3.3);
847 ibook.
book1D(
"MatchedTPEffEtaTot",
"Eta of tracks associated to LV matched to TP; track eta ", 66, 0., 3.3);
849 "MatchedTPEffEtaMtd",
"Eta of tracks associated to LV matched to TP with time; track eta ", 66, 0., 3.3);
851 ibook.
book1D(
"MatchedTPEffEtaEtl2Mtd",
852 "Eta of tracks associated to LV matched to TP with time, 2 ETL hits; track eta ",
858 "MatchedTPmtdEffEtaTot",
"Eta of tracks associated to LV matched to TP-mtd hit; track eta ", 66, 0., 3.3);
860 ibook.
book1D(
"MatchedTPmtdEffEtaMtd",
861 "Eta of tracks associated to LV matched to TP-mtd hit with time; track eta ",
867 "MVATrackRes",
"t_{rec} - t_{sim} for LV associated tracks; t_{rec} - t_{sim} [ns] ", 120, -0.15, 0.15);
869 ibook.
book1D(
"MVATrackPull",
"Pull for associated tracks; (t_{rec}-t_{sim})/#sigma_{t}", 50, -5., 5.);
871 "MVATrackZposResTot",
"Z_{PCA} - Z_{sim} for associated tracks;Z_{PCA} - Z_{sim} [cm] ", 100, -0.1, 0.1);
874 "UnassociatedDetId",
"Number of MTD cell not associated to any TP per event", 2, 0., 2., 0., 100000.,
"S");
877 ibook.
book1D(
"UnassDeposit",
878 "#Tracking particles with deposit over threshold in MTD cell, but with no cell associated to TP;",
883 ibook.
book1D(
"UnassCrysEnergy",
884 "Energy deposit in BTL crystal with no associated SimTracks;log_{10}(Energy [MeV]) ",
889 "Energy deposit in ETL LGADs with no associated SimTracks;log_{10}(Energy [MeV]) ",
914 ->setComment(
"Association between General and MTD Extended tracks");
921 desc.add<
double>(
"trackMinimumPt", 0.7);
922 desc.add<
double>(
"trackMaximumBtlEta", 1.5);
923 desc.add<
double>(
"trackMinimumEtlEta", 1.6);
924 desc.add<
double>(
"trackMaximumEtlEta", 3.);
925 desc.addUntracked<
bool>(
"optionalPlots",
true);
927 descriptions.
add(
"mtdTracksValid",
desc);
932 if (
gp.status() != 1) {
941 if (
tp.status() != 1) {
944 auto x_pv =
tp.parentVertex()->position().x();
945 auto y_pv =
tp.parentVertex()->position().y();
946 auto z_pv =
tp.parentVertex()->position().z();
948 auto r_pv =
std::sqrt(x_pv * x_pv + y_pv * y_pv);
970 const bool& vtxFake) {
973 double genPT = genP.momentum().perp();
980 const double& zsim) {
988 for (
const auto&
tp :
found->val) {
989 if (
tp.first->eventId().bunchCrossing() == 0 &&
tp.first->eventId().event() == 0 &&
1000 const std::unordered_set<unsigned long int>& trkList) {
1001 for (
const auto& simTrk :
tp.g4Tracks()) {
1002 for (
const auto& mtdTrk : trkList) {
1003 if (
uniqueId(simTrk.trackId(), simTrk.eventId()) == mtdTrk) {
MonitorElement * meETLTrackEffEtaTot_[2]
uint8_t geoId(const VFATFrame &frame)
retrieve the GEO information for this channel
edm::EDGetTokenT< edm::ValueMap< int > > trackAssocToken_
static constexpr double etacutGEN_
MonitorElement * meTrackMatchedTPEffEtaMtd_
MonitorElement * meBTLTrackEffPhiMtd_
int getMTDTopologyMode() const
edm::EDGetTokenT< edm::ValueMap< float > > trackMVAQualToken_
edm::EDGetTokenT< edm::ValueMap< float > > pathLengthToken_
T getParameter(std::string const &) const
MonitorElement * meMVATrackResTot_
MonitorElement * meTrackNumHits_
MonitorElement * meTrackt0Pid_
static constexpr double pTcut_
MonitorElement * meETLTrackRPTime_
edm::EDGetTokenT< edm::ValueMap< float > > t0SafePidToken_
edm::EDGetTokenT< edm::ValueMap< float > > t0SrcToken_
static constexpr double rBTL_
MonitorElement * meUnassociatedDetId_
edm::ESGetToken< MTDTopology, MTDTopologyRcd > mtdtopoToken_
virtual void setCurrentFolder(std::string const &fullpath)
const std::string folder_
edm::EDGetTokenT< edm::HepMCProduct > HepMCProductToken_
HepPDT::ParticleDataTable ParticleDataTable
MonitorElement * meMVATrackMatchedEffEtaMtd_
const bool mvaRecSel(const reco::TrackBase &, const reco::Vertex &, const double &, const double &)
virtual const Topology & topology() const
virtual const PixelTopology & specificTopology() const
MonitorElement * meNTrackingParticles_
static constexpr double etacutREC_
static constexpr double deltaPTcut_
MonitorElement * meBTLTrackPtRes_
int row(unsigned nrows=kCrystalsPerModuleTdr) const
edm::EDGetTokenT< std::vector< reco::Vertex > > RecVertexToken_
MonitorElement * meETLTrackEffPtTot_[2]
MonitorElement * meBTLTrackEffEtaMtd_
MonitorElement * meETLTrackEffPhi2Mtd_[2]
edm::EDGetTokenT< edm::ValueMap< float > > tmtdToken_
MonitorElement * meMVATrackMatchedEffPtTot_
MonitorElement * meMVATrackEffPtTot_
MonitorElement * meMVATrackEffEtaTot_
const float trackMaxEtlEta_
const reco::SimToRecoCollection * s2r_
const float trackMaxBtlEta_
ETLDetId geographicalId() const
const unsigned long int uniqueId(const uint32_t x, const EncodedEventId &y)
LocalPoint pixelToModuleLocalPoint(const LocalPoint &plp, int row, int col) const
MonitorElement * meTrackMatchedTPmtdEffEtaTot_
const reco::RecoToSimCollection * r2s_
const_iterator find(const key_type &k) const
find element with specified reference key
const bool mvaGenSel(const HepMC::GenParticle &, const float &)
const edm::Ref< std::vector< TrackingParticle > > * getMatchedTP(const reco::TrackBaseRef &, const double &)
Detector identifier base class for the MIP Timing Layer.
const bool mvaTPSel(const TrackingParticle &)
constexpr NumType convertUnitsTo(double desiredUnits, NumType val)
edm::EDGetTokenT< reco::TrackCollection > GenRecTrackToken_
MonitorElement * meETLTrackEffPhiMtd_[2]
const_iterator end() const
last iterator over the map (read only)
double pt() const
track transverse momentum
edm::EDGetTokenT< reco::TrackCollection > RecTrackToken_
MonitorElement * meBTLTrackEffPhiTot_
MonitorElement * meTrackMatchedTPmtdEffEtaMtd_
MonitorElement * meTrackMatchedTPEffEtaTot_
MonitorElement * meBTLTrackRPTime_
double vz() const
z coordinate of the reference point on track
MonitorElement * meETLTrackEffEta2Mtd_[2]
static constexpr double depositBTLthreshold_
MonitorElement * meETLTrackPtRes_
MonitorElement * meETLTrackEffPt2Mtd_[2]
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * meTrackt0SafePid_
MonitorElement * meBTLTrackEffEtaTot_
static constexpr double deltaZcut_
MonitorElement * meUnassLgadsEnergy_
Abs< T >::type abs(const T &t)
bool isETL(const double eta) const
#define DEFINE_FWK_MODULE(type)
int nrows() const override
MonitorElement * meMVATrackMatchedEffEtaTot_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::ValueMap< float > > t0PidToken_
MonitorElement * meTrackMatchedTPEffPtEtl2Mtd_
MonitorElement * meTrackMatchedTPmtdEffPtMtd_
MonitorElement * meTrackMVAQual_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
MonitorElement * meETLTrackEffPhiTot_[2]
ETLDetId::EtlLayout etlLayoutFromTopoMode(const int &topoMode)
GlobalPoint toGlobal(const Local2DPoint &lp) const
Conversion to the global R.F. from the R.F. of the GeomDet.
edm::EDGetTokenT< edm::ValueMap< float > > SigmatmtdToken_
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollectionToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Log< level::Info, false > LogInfo
double eta() const
pseudorapidity of momentum vector
const float trackMinEtlEta_
constexpr NumType convertMmToCm(NumType millimeters)
edm::EDGetTokenT< reco::SimToRecoCollection > simToRecoAssociationToken_
static constexpr double etaMatchCut_
static constexpr double zETL_
static constexpr double depositETLthreshold_
MonitorElement * meTrackMatchedTPEffEtaEtl2Mtd_
unsigned long long uint64_t
MonitorElement * meMVATrackPullTot_
MonitorElement * meTrackMatchedTPEffPtMtd_
constexpr uint32_t rawId() const
get the raw id
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
edm::EDGetTokenT< CrossingFrame< PSimHit > > etlSimHitsToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
MonitorElement * meTrackSigmat0SafePid_
MonitorElement * meETLTrackEffEtaMtd_[2]
const Vector & momentum() const
track momentum vector
MonitorElement * meTrackSigmat0Pid_
edm::EDGetTokenT< CrossingFrame< PSimHit > > btlSimHitsToken_
MonitorElement * meTrackMatchedTPmtdEffPtTot_
MonitorElement * meBTLTrackEffPtMtd_
MonitorElement * meTrackt0Src_
edm::EDGetTokenT< edm::ValueMap< float > > Sigmat0PidToken_
static constexpr double deltaDRcut_
MonitorElement * meTracktmtd_
MonitorElement * meBTLTrackEffPtTot_
MonitorElement * meTrackPathLenghtvsEta_
MonitorElement * meTrackMatchedTPEffPtTot_
Detector identifier class for the Endcap Timing Layer.
MonitorElement * meUnassDeposit_
int column(unsigned nrows=kCrystalsPerModuleTdr) const
const bool mvaGenRecMatch(const HepMC::GenParticle &, const double &, const reco::TrackBase &, const bool &)
Detector identifier class for the Barrel Timing Layer. The crystal count must start from 0...
MonitorElement * meUnassCrysEnergy_
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< reco::RecoToSimCollection > recoToSimAssociationToken_
Monte Carlo truth information used for tracking validation.
edm::EDGetTokenT< edm::ValueMap< float > > Sigmat0SrcToken_
MonitorElement * meETLTrackEffPtMtd_[2]
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
~MtdTracksValidation() override
BTLDetId::CrysLayout crysLayoutFromTopoMode(const int &topoMode)
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > mtdgeoToken_
const bool tpWithMTD(const TrackingParticle &, const std::unordered_set< unsigned long int > &)
std::vector< TrackingParticle > TrackingParticleCollection
MonitorElement * meMVATrackZposResTot_
Log< level::Warning, false > LogWarning
auto makeValid(const U &iOtherHandleType) noexcept(false)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meMVATrackMatchedEffPtMtd_
MonitorElement * meTrackSigmat0Src_
BTLDetId geographicalId(CrysLayout lay) const
edm::EDGetTokenT< edm::ValueMap< float > > Sigmat0SafePidToken_
MtdTracksValidation(const edm::ParameterSet &)
edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > particleTableToken_