File indexing completed on 2025-08-06 08:18:45
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef TRKSINJETQATRKMANAGER_H
0012 #define TRKSINJETQATRKMANAGER_H
0013
0014
0015 #include "TrksInJetQABaseManager.h"
0016
0017
0018 #include <jetbase/Jet.h>
0019
0020
0021 #include <trackbase_historic/SvtxTrack.h>
0022
0023
0024 #include <TH1.h>
0025 #include <TH2.h>
0026
0027
0028 #include <limits>
0029 #include <optional>
0030 #include <utility>
0031 #include <vector>
0032
0033
0034
0035
0036
0037
0038
0039 class TrksInJetQATrkManager : public TrksInJetQABaseManager
0040 {
0041 public:
0042
0043
0044 enum Type
0045 {
0046 All
0047 };
0048
0049
0050 enum H1D
0051 {
0052 Eta,
0053 Phi,
0054 Pt,
0055 Z,
0056 Jt,
0057 Qual
0058 };
0059
0060
0061 enum H2D
0062 {
0063 EtaVsPhi,
0064 PtVsQual
0065 };
0066
0067
0068
0069
0070
0071
0072
0073 struct TrackQAContent
0074 {
0075 double eta = std::numeric_limits<double>::max();
0076 double phi = std::numeric_limits<double>::max();
0077 double pt = std::numeric_limits<double>::max();
0078 double z = std::numeric_limits<double>::max();
0079 double jt = std::numeric_limits<double>::max();
0080 double qual = std::numeric_limits<double>::max();
0081 };
0082
0083
0084 using TrksInJetQABaseManager::TrksInJetQABaseManager;
0085 ~TrksInJetQATrkManager(){};
0086
0087
0088 void GetInfo(SvtxTrack* track, std::optional<Jet*> jet = std::nullopt);
0089
0090 private:
0091
0092 void FillHistograms(const int type, TrackQAContent& content);
0093
0094
0095 void DefineHistograms() override;
0096
0097 };
0098
0099 #endif
0100
0101