ATLAS Offline Software
|
Classes to read/write matrix files event by event. More...
#include "FPGATrackSimMatrixAccumulator.h"
#include "FPGATrackSimObjects/FPGATrackSimTypes.h"
#include <vector>
#include "TTree.h"
Go to the source code of this file.
Classes | |
class | FPGATrackSimMatrixReader |
class | FPGATrackSimMatrixWriter |
Functions | |
void | readTree (AccumulateMap &map, TTree *tree, size_t nLayers, size_t nCoords) |
Reads a matrix tree, accumulating its entries into a map. More... | |
std::vector< std::pair< std::vector< module_t >, FPGATrackSimMatrixAccumulator > > | readTree (TTree *tree, size_t nLayers, size_t nCoords) |
Reads a matrix tree, accumulating its entries into a vector, in the order they are read. More... | |
template<typename Iter > | |
void | fillTree (Iter begin, Iter end, TTree *tree, int nLayers, int nCoords) |
Writes the contents of an AccumulateMap into the supplied tree (one entry per sector). More... | |
void | fillTree (AccumulateMap &map, TTree *tree, int nLayers, int nCoords) |
Writes the contents of an AccumulateMap into the supplied tree (one entry per sector). More... | |
Classes to read/write matrix files event by event.
Definition in file FPGATrackSimMatrixIO.h.
void fillTree | ( | AccumulateMap & | map, |
TTree * | tree, | ||
int | nLayers, | ||
int | nCoords | ||
) |
Writes the contents of an AccumulateMap into the supplied tree (one entry per sector).
map | - map to be written |
tree | - tree to be written to; this function will create the branches |
nLayers | - number of logical layers |
nCoords | - number of hit coordinates in a full (13/13) track |
Definition at line 226 of file FPGATrackSimMatrixIO.cxx.
void fillTree | ( | Iter | begin, |
Iter | end, | ||
TTree * | tree, | ||
int | nLayers, | ||
int | nCoords | ||
) |
Writes the contents of an AccumulateMap into the supplied tree (one entry per sector).
begin | - iterator to a std::pair<std::vector<module_t>, FPGATrackSimMatrixAccumulator>> to begin filling |
end | - end iterator to stop filling |
tree | - tree to be written to; this function will create the branches |
nLayers | - number of logical layers |
nCoords | - number of hit coordinates in a full (13/13) track |
Definition at line 157 of file FPGATrackSimMatrixIO.h.
void readTree | ( | AccumulateMap & | map, |
TTree * | tree, | ||
size_t | nLayers, | ||
size_t | nCoords | ||
) |
Reads a matrix tree, accumulating its entries into a map.
Note this functions sets and resets branch addresses.
map | - map to be added to |
tree | - tree to be read |
nLayers | - number of logical layers |
nCoords | - number of hit coordinates in a full (13/13) track |
Definition at line 92 of file FPGATrackSimMatrixIO.cxx.
std::vector<std::pair<std::vector<module_t>, FPGATrackSimMatrixAccumulator> > readTree | ( | TTree * | tree, |
size_t | nLayers, | ||
size_t | nCoords | ||
) |
Reads a matrix tree, accumulating its entries into a vector, in the order they are read.
Note this functions sets and resets branch addresses.
tree | - tree to be read |
nLayers | - number of logical layers |
nCoords | - number of hit coordinates in a full (13/13) track |
Definition at line 108 of file FPGATrackSimMatrixIO.cxx.