File indexing completed on 2025-08-06 08:14:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef TRACKSINJETSQAMAKER_JETQAHISTMANAGER_H
0011 #define TRACKSINJETSQAMAKER_JETQAHISTMANAGER_H
0012
0013
0014 #include <limits>
0015 #include <vector>
0016 #include <utility>
0017 #include <optional>
0018
0019 #include <TH1.h>
0020 #include <TH2.h>
0021
0022 #include <jetbase/Jet.h>
0023
0024 #include <trackbase_historic/SvtxTrack.h>
0025
0026 #include "TrksInJetQABaseManager.h"
0027
0028
0029
0030
0031
0032 class TrksInJetQAJetManager : public TrksInJetQABaseManager {
0033
0034 public:
0035
0036
0037 enum Type {All};
0038 enum H1D {Eta, Phi, Pt, NTrk, PtSum};
0039 enum H2D {PtVsEta, PtSumVsPt};
0040
0041
0042 struct JetQAContent {
0043 double eta = std::numeric_limits<double>::max();
0044 double phi = std::numeric_limits<double>::max();
0045 double pt = std::numeric_limits<double>::max();
0046 double nTrk = std::numeric_limits<double>::max();
0047 double ptSum = std::numeric_limits<double>::max();
0048 };
0049
0050
0051 using TrksInJetQABaseManager::TrksInJetQABaseManager;
0052 ~TrksInJetQAJetManager() {};
0053
0054
0055 void GetInfo(Jet* jet, std::optional<std::vector<SvtxTrack*>> tracks = std::nullopt);
0056
0057 private:
0058
0059
0060 void FillHistograms(const int type, JetQAContent& content);
0061
0062
0063 void DefineHistograms() override;
0064
0065 };
0066
0067 #endif
0068
0069