11#include <ROOT/RDataFrame.hxx>
12#include <ROOT/RVec.hxx>
45 Reader(
const std::string &filename,
const std::string &treeName =
"auto");
59 void SetCuts(
double toaMin,
double toaMax,
unsigned int totMin,
unsigned int totMax);
106 ROOT::RDF::RNode
GetRaw();
113 void SaveToTree(
const std::string &filename,
const std::string &treeName =
"chet");
Reads CHeT data from ROOT files and processes it into high-level objects.
void SetEnabledCylinders(const std::vector< int > &cylinders)
Restricts the analysis to specific cylinders. Only hits belonging to these cylinders will be included...
ROOT::RDF::RNode fHeadNode
void SetEnabledLayers(const std::vector< int > &layers)
Restricts the analysis to specific layers. Only hits belonging to these layers will be included in th...
void SetSingleEntry(long entry)
Restricts the analysis to a single entry index. Replaces any previous range or filter on the entry in...
void SetEventByID(int eventID)
Restricts the analysis to a specific EventID. Filters the dataset where the EventID branch matches th...
std::vector< int > fEnabledLayers
std::vector< int > fEnabledBoards
ROOT::RDF::RNode GetCHeTTree()
Returns the node with calculated high-level variables.
std::vector< int > fEnabledCylinders
void SaveToTree(const std::string &filename, const std::string &treeName="chet")
Saves the processed high-level data to a new ROOT file.
ROOT::RDF::RNode GetRaw()
Returns the Raw node (the original tree).
void SetEnabledGeometries(const std::vector< std::pair< int, int > > &geometries)
Restricts the analysis to specific (cylinder, layer) combinations. Only hits matching one of the prov...
Reader(const Reader &)=delete
Reader & operator=(const Reader &)=delete
void SetEnabledBoards(const std::vector< int > &boards)
Restricts the analysis to specific boards. Only hits from these boards will be processed.
void SetCuts(double toaMin, double toaMax, unsigned int totMin, unsigned int totMax)
Set cuts for hit selection. Must be called before GetCHeTTree().
std::vector< std::pair< int, int > > fEnabledGeometries
Root namespace for the Cylindrical Helix Tracker (CHeT) project.