DAS
3.0
Das Analysis System
|
Wrapper around TChain
that restricts available entries to a subset.
This class acts like a TChain
, with the additional feature of limiting the available entries to a subset of the original. The first entry that will be used is set with SetBeginEntry, and the last one with SetEndEntry. Once set, a normal iteration through the chain (with SetEntry or similar) will be restricted to entries in [begin, end).
In essence, a ChainSlice
behaves like iterating on a normal chain from GetBegin (inclusive) to GetEnd (exclusive).
ChainSlice
is untested. \bugs Calling LoadTree() directly will not work as expected. #include <FriendUtils.h>
Public Member Functions | |
ChainSlice (const ChainSlice &)=delete | |
ChainSlice (Long64_t begin=0, Long64_t end=-1) | |
ChainSlice (const char *name, Long64_t begin=0, Long64_t end=-1, const char *title="") | |
virtual | ~ChainSlice () |
Long64_t | GetBegin () const |
Long64_t | GetEnd () const |
void | SetBegin (Long64_t begin) |
void | SetEnd (Long64_t end) |
Long64_t | GetEntries () const override |
Long64_t | GetEntriesFast () const override |
Int_t | GetEntry (Long64_t entry, Int_t getall=0) override |
Long64_t | GetReadEntry () const override |
Long64_t | GetReadEvent () const override |
Long64_t | LoadTreeFriend (Long64_t entry, TTree *parent) override |
ChainSlice (const ChainSlice &)=delete | |
ChainSlice (Long64_t begin=0, Long64_t end=-1) | |
ChainSlice (const char *name, Long64_t begin=0, Long64_t end=-1, const char *title="") | |
virtual | ~ChainSlice () |
Long64_t | GetBegin () const |
Long64_t | GetEnd () const |
void | SetBegin (Long64_t begin) |
void | SetEnd (Long64_t end) |
Long64_t | GetEntries () const override |
Long64_t | GetEntriesFast () const override |
Int_t | GetEntry (Long64_t entry, Int_t getall=0) override |
Long64_t | GetReadEntry () const override |
Long64_t | GetReadEvent () const override |
Long64_t | LoadTreeFriend (Long64_t entry, TTree *parent) override |
Private Member Functions | |
auto | GetLast () const |
auto | GetLast () const |
Private Attributes | |
Long64_t | fBegin |
Long64_t | fEnd |
|
delete |
|
inline |
Creates a ChainSlice
.
The first and last entries can optionally be provided.
|
inline |
Creates a ChainSlice
.
The first and last entries can optionally be provided. See the TChain
constructor for other arguments.
|
virtual |
|
delete |
|
inline |
Creates a ChainSlice
.
The first and last entries can optionally be provided.
|
inline |
Creates a ChainSlice
.
The first and last entries can optionally be provided. See the TChain
constructor for other arguments.
|
virtual |
|
inline |
Returns the index of the first entry that will be used.
|
inline |
Returns the index of the first entry that will be used.
|
inline |
Returns the index past the last entry that will be used.
|
inline |
Returns the index past the last entry that will be used.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
Return the total number of entries in the chain, taking the restrictions set by begin and end into account.
Synomym for GetEntries.
|
inlineoverride |
Return the total number of entries in the chain, taking the restrictions set by begin and end into account.
Synomym for GetEntries.
|
inlineoverride |
|
inlineoverride |
|
inlineprivate |
Returns the last entry to load, taking negative fEnd into account.
|
inlineprivate |
Returns the last entry to load, taking negative fEnd into account.
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inline |
Changes the first entry to be loaded.
The currently loaded entry is not modified.
|
inline |
Changes the first entry to be loaded.
The currently loaded entry is not modified.
|
inline |
Changes the last entry to be loaded.
The currently loaded entry is not modified.
|
inline |
Changes the last entry to be loaded.
The currently loaded entry is not modified.
|
private |
The first entry to use.
|
private |
Past the last entry to use, or -1 to go till the end.