|
ComPWA
Common Partial-Wave-Analysis Framework
|
Namespace with read/write functions for ROOT files. More...
Classes | |
| class | RootAngleEfficiency |
| Uses also TEfficiency object, but the variables are one invariant mass and the corresponding helicity angle. More... | |
| class | RootEfficiency |
| Efficiency provided by a histogram. More... | |
| class | RootGenerator |
| class | RootUniformRealGenerator |
Functions | |
| std::vector< std::string > | pidsToUniqueStrings (std::vector< pid > Pids) |
| std::vector< pid > | uniqueStringsToPids (std::vector< std::string > UniqueStrings) |
| ComPWA::EventCollection | readData (const std::string &InputFileName, const std::string &TreeName, long long NumberEventsToRead=-1) |
Create a vector of Events from a ROOT file. More... | |
| void | writeData (const EventCollection &OutputSample, const std::string &OutputFilePath, const std::string &TreeName, bool OverwriteFile=true) |
Write a vector of Events to a ROOT file. More... | |
Namespace with read/write functions for ROOT files.
| std::vector<std::string> ComPWA::Data::Root::pidsToUniqueStrings | ( | std::vector< pid > | Pids | ) |
Definition at line 24 of file RootDataIO.cpp.
| ComPWA::EventCollection ComPWA::Data::Root::readData | ( | const std::string & | InputFileName, |
| const std::string & | TreeName, | ||
| long long | NumberEventsToRead = -1 |
||
| ) |
Create a vector of Events from a ROOT file.
The input file should have at least one event-based TTree with:
"Particles" containing TClonesArrays. These arrays should contain TParticle objects with a defined 4-momentum.doubles called "Weight". | InputFileName | Input ROOT file(s); can take wildcards, see TChain::Add. |
| TreeName | Name of the event-based tree |
| NumberEventsToRead | Limit the resulting vector to this number of events (optional). |
Definition at line 60 of file RootDataIO.cpp.
| std::vector<pid> ComPWA::Data::Root::uniqueStringsToPids | ( | std::vector< std::string > | UniqueStrings | ) |
Definition at line 46 of file RootDataIO.cpp.
| void ComPWA::Data::Root::writeData | ( | const EventCollection & | OutputSample, |
| const std::string & | OutputFilePath, | ||
| const std::string & | TreeName, | ||
| bool | OverwriteFile = true |
||
| ) |
Write a vector of Events to a ROOT file.
See readData for the structure of the output file.
| OutputSample | List of Events including a info header |
| OutputFilePath | Path to the output ROOT file |
| TreeName | Name of the event-based output TTree in the file |
| OverwriteFile | Set to true if you do not want to append |
Definition at line 145 of file RootDataIO.cpp.