Skip to content
Snippets Groups Projects

Add RomanPot and OffMTracker particles.

Merged Wouter Deconinck requested to merge far-forward-particles into master
2 files
+ 52
0
Compare changes
  • Side-by-side
  • Inline
Files
2
#include "ROOT/RDataFrame.hxx"
#include "TCanvas.h"
#include "TLegend.h"
#include "TH1D.h"
#include "TProfile.h"
#include <iostream>
R__LOAD_LIBRARY(libeicd.so)
R__LOAD_LIBRARY(libDD4pod.so)
#include "dd4pod/Geant4ParticleCollection.h"
#include "eicd/TrackParametersCollection.h"
#include "eicd/ClusterCollection.h"
#include "eicd/ClusterData.h"
#include "eicd/TrackerHitCollection.h"
using ROOT::RDataFrame;
using namespace ROOT::VecOps;
int rec_far_forward_protons(const char* fname = "topside/rec_far_forward_protons.root")
{
ROOT::EnableImplicitMT();
ROOT::RDataFrame df("events", fname);
auto df0 = df.Range(10);
auto d1 = df0.Display(
{
"ForwardRomanPotParticles.p.x",
"ForwardRomanPotParticles.p.y",
"ForwardRomanPotParticles.p.z"
}
);
auto d2 = df0.Display(
{
"ForwardOffMTrackerParticles.p.x",
"ForwardOffMTrackerParticles.p.y",
"ForwardOffMTrackerParticles.p.z"
}
);
d1->Print();
d2->Print();
return 0;
}
Loading