File indexing completed on 2025-12-17 09:21:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include "TrksInJetQAInclusiveFiller.h"
0014
0015
0016
0017
0018
0019
0020 void TrksInJetQAInclusiveFiller::Fill(PHCompositeNode* topNode)
0021 {
0022 GetNodes(topNode);
0023
0024 if (m_config.doHitQA)
0025 {
0026 FillHitQAHists();
0027 }
0028 if (m_config.doClustQA)
0029 {
0030 FillClustQAHists();
0031 }
0032 if (m_config.doTrackQA)
0033 {
0034 FillTrackQAHists();
0035 }
0036 if (m_config.doJetQA)
0037 {
0038 FillJetQAHists();
0039 }
0040 }
0041
0042
0043
0044
0045
0046
0047 void TrksInJetQAInclusiveFiller::FillHitQAHists()
0048 {
0049
0050 TrkrHitSetContainer::ConstRange hitSets = m_hitMap->getHitSets();
0051 for (
0052 TrkrHitSetContainer::ConstIterator itSet = hitSets.first;
0053 itSet != hitSets.second;
0054 ++itSet)
0055 {
0056
0057 TrkrDefs::hitsetkey setKey = itSet->first;
0058 TrkrHitSet* set = itSet->second;
0059
0060
0061 TrkrHitSet::ConstRange hits = set->getHits();
0062 for (
0063 TrkrHitSet::ConstIterator itHit = hits.first;
0064 itHit != hits.second;
0065 ++itHit)
0066 {
0067
0068 TrkrDefs::hitkey hitKey = itHit->first;
0069 TrkrHit* hit = itHit->second;
0070
0071
0072 m_hitManager->GetInfo(hit, setKey, hitKey);
0073
0074 }
0075 }
0076 }
0077
0078
0079
0080
0081 void TrksInJetQAInclusiveFiller::FillClustQAHists()
0082 {
0083
0084 for (const auto& det : {TrkrDefs::TrkrId::mvtxId, TrkrDefs::TrkrId::inttId,
0085 TrkrDefs::TrkrId::tpcId, TrkrDefs::TrkrId::micromegasId})
0086 {
0087 for (const auto& hitsetkey : m_clustMap->getHitSetKeys(det))
0088 {
0089
0090 TrkrClusterContainer::ConstRange clusters = m_clustMap->getClusters(hitsetkey);
0091 for (
0092 TrkrClusterContainer::ConstIterator itClust = clusters.first;
0093 itClust != clusters.second;
0094 ++itClust)
0095 {
0096
0097 TrkrDefs::cluskey clustKey = itClust->first;
0098 TrkrCluster* cluster = m_clustMap->findCluster(clustKey);
0099
0100
0101 m_clustManager->GetInfo(cluster, clustKey, m_actsGeom);
0102 }
0103 }
0104 }
0105 }
0106
0107
0108
0109
0110 void TrksInJetQAInclusiveFiller::FillTrackQAHists()
0111 {
0112
0113 for (auto& itTrk : *m_trkMap)
0114 {
0115
0116 SvtxTrack* track = itTrk.second;
0117
0118
0119 m_trackManager->GetInfo(track);
0120
0121 }
0122 }
0123
0124
0125
0126
0127 void TrksInJetQAInclusiveFiller::FillJetQAHists()
0128 {
0129
0130 for (
0131 uint64_t iJet = 0;
0132 iJet < m_jetMap->size();
0133 ++iJet)
0134 {
0135
0136 Jet* jet = m_jetMap->get_jet(iJet);
0137
0138
0139 m_jetManager->GetInfo(jet);
0140
0141 }
0142 }
0143
0144