File indexing completed on 2025-08-06 08:14:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef TRKSINJETQAHITMANAGER_H
0011 #define TRKSINJETQAHITMANAGER_H
0012
0013
0014 #include <limits>
0015 #include <vector>
0016 #include <utility>
0017
0018 #include <TH1.h>
0019 #include <TH2.h>
0020
0021 #include <trackbase/TrkrHit.h>
0022 #include <trackbase/TpcDefs.h>
0023 #include <trackbase/InttDefs.h>
0024 #include <trackbase/MvtxDefs.h>
0025 #include <trackbase/TrkrDefs.h>
0026
0027 #include "TrksInJetQABaseManager.h"
0028
0029
0030
0031
0032
0033 class TrksInJetQAHitManager : public TrksInJetQABaseManager {
0034
0035 public:
0036
0037
0038 enum Type {Mvtx, Intt, Tpc, All};
0039 enum H1D {Ene, ADC, Layer, PhiBin, ZBin};
0040 enum H2D {EneVsLayer, EneVsADC, PhiVsZBin};
0041
0042
0043 struct HitQAContent {
0044 double ene = std::numeric_limits<double>::max();
0045 uint64_t adc = std::numeric_limits<uint64_t>::max();
0046 uint16_t layer = std::numeric_limits<uint16_t>::max();
0047 uint16_t phiBin = std::numeric_limits<uint16_t>::max();
0048 uint16_t zBin = std::numeric_limits<uint16_t>::max();
0049 };
0050
0051
0052 using TrksInJetQABaseManager::TrksInJetQABaseManager;
0053 ~TrksInJetQAHitManager() {};
0054
0055
0056 void GetInfo(TrkrHit* hit, TrkrDefs::hitsetkey& setKey, TrkrDefs::hitkey& hitKey);
0057
0058 private:
0059
0060
0061 void FillHistograms(const int type, HitQAContent& content);
0062
0063
0064 void DefineHistograms() override;
0065
0066 };
0067
0068 #endif
0069
0070