Skip to content

Commit 58e3269

Browse files
add integral plots to integration tests
1 parent 41cbea3 commit 58e3269

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/EntryConfig.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ std::string EntryConfig::GetDirectoryName() const {
145145
const auto& br = ax.GetBranches();
146146
branches.insert(br.begin(), br.end());
147147
}
148-
std::cout << "@@@@" << branches.size() << std::endl;
149148
std::string name{*branches.begin()};
150149
for (auto it = ++branches.begin(); it != branches.end(); ++it) {
151150
name += "_" + *it;

test/integration/Manager.test.hpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,20 @@ TEST(Test_AnalysisTreeQA, Test_Manager) {
4343
Cuts eta_cut("eta_cut", {RangeCut("SimParticles.eta", -1, 1)});
4444

4545
AddParticleQA(task, "SimParticles");
46-
// AddTrackQA(task, "RecTracks");
47-
// AddTracksMatchQA(task, "RecTracks", "SimParticles");
48-
// AddParticlesFlowQA(task, "SimParticles", {"SimEventHeader", "psi_RP"}, {211});
46+
AddTrackQA(task, "RecTracks");
47+
AddTracksMatchQA(task, "RecTracks", "SimParticles");
48+
AddParticlesFlowQA(task, "SimParticles", {"SimEventHeader", "psi_RP"}, {211});
49+
50+
task->AddIntegral({"#sum p_{T}, GeV/c", {"RecTracks", "pT"}, {100, 0, 300}});
51+
task->AddIntegral({"M", {"RecTracks", "ones"}, {300, 0, 300}});
52+
task->AddIntegral({"M_{rec}", {"RecTracks", "ones"}, {300, 0, 300}},
53+
{"M_{sim}", {"SimParticles", "ones"}, {300, 0, 300}});
54+
55+
task->AddIntegral({"M_{rec}", {"RecTracks", "ones"}, {300, 0, 300}},
56+
{"M_{sim}", {"SimParticles", "ones"}, {100, 0, 300}},
57+
new Cuts("pions", {EqualsCut("SimParticles.pid", 211)}),
58+
new Cuts("pions", {EqualsCut("SimParticles.pid", 211)}) );
4959

50-
// task->AddIntegral({"#sum p_{T}, GeV/c", {"RecTracks", "pT"}, {100, 0, 300}});
51-
// task->AddIntegral({"M", {"RecTracks", "ones"}, {300, 0, 300}});
52-
// task->AddIntegral({"M_{rec}", {"RecTracks", "ones"}, {300, 0, 300}}, {"M_{sim}", {"SimParticles", "ones"}, {300, 0, 300}});
5360

5461
man->AddTask(task);
5562

0 commit comments

Comments
 (0)