File indexing completed on 2025-08-06 08:18:44
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef TRKSINJETQAJETMANAGER_H
0012 #define TRKSINJETQAJETMANAGER_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 TrksInJetQAJetManager : public TrksInJetQABaseManager
0040 {
0041 public:
0042
0043 enum Type
0044 {
0045 All
0046 };
0047
0048
0049 enum H1D
0050 {
0051 Eta,
0052 Phi,
0053 Pt,
0054 NTrk,
0055 PtSum
0056 };
0057
0058
0059 enum H2D
0060 {
0061 PtVsEta,
0062 PtSumVsPt,
0063 NTrkVsEta,
0064 NTrkVsPt
0065 };
0066
0067
0068
0069
0070
0071
0072
0073 struct JetQAContent
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 nTrk = std::numeric_limits<double>::max();
0079 double ptSum = std::numeric_limits<double>::max();
0080 };
0081
0082
0083 using TrksInJetQABaseManager::TrksInJetQABaseManager;
0084 virtual ~TrksInJetQAJetManager() override = default;
0085
0086
0087 void GetInfo(Jet* jet, std::optional<std::vector<SvtxTrack*>> tracks = std::nullopt);
0088
0089 private:
0090
0091 void FillHistograms(const int type, JetQAContent& content);
0092
0093
0094 void DefineHistograms() override;
0095
0096 };
0097
0098 #endif
0099
0100