Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::TBranchCacheInfo Class Reference

Definition at line 35 of file TBranchCacheInfo.h.

Public Member Functions

bool AllUsed () const
 Return true if all the baskets that are marked loaded are also mark as used.
 
void GetUnused (std::vector< Int_t > &unused)
 Return a set of unused basket, let's not re-read them.
 
bool HasBeenUsed (Int_t basketNumber) const
 Return true if the basket has been marked as 'used'.
 
bool IsInCache (Int_t basketNumber) const
 Return true if the basket is currently in the cache.
 
bool IsVetoed (Int_t basketNumber) const
 Return true if the basket is currently vetoed.
 
void Print (const char *owner, Long64_t *entries) const
 Print the info we have for the baskets.
 
void Reset ()
 Reset all info.
 
void SetIsInCache (Int_t basketNumber)
 Mark if the basket is currently in the cache.
 
void SetUsed (Int_t basketNumber)
 Mark if the basket has been marked as 'used'.
 
void Veto (Int_t basketNumber)
 Mark if the basket should be vetoed in the next round.
 

Private Types

enum  EStates { kLoaded = 0 , kUsed = 1 , kVetoed = 2 , kSize = 3 }
 

Private Member Functions

void SetState (Int_t basketNumber, EStates what)
 Mark if the basket has been marked has the 'what' state.
 
bool TestState (Int_t basketNumber, EStates what) const
 Return true if the basket has been marked as having the 'what' state.
 
void UpdatePedestal (Int_t basketNumber)
 Update the pedestal to be less or equal to basketNumber, shift the bits if needed.
 

Private Attributes

Int_t fBasketPedestal {-1}
 
TBits fInfo
 

#include <TBranchCacheInfo.h>

Member Enumeration Documentation

◆ EStates

Enumerator
kLoaded 
kUsed 
kVetoed 
kSize 

Definition at line 37 of file TBranchCacheInfo.h.

Member Function Documentation

◆ AllUsed()

bool ROOT::Internal::TBranchCacheInfo::AllUsed ( ) const
inline

Return true if all the baskets that are marked loaded are also mark as used.

Definition at line 109 of file TBranchCacheInfo.h.

◆ GetUnused()

void ROOT::Internal::TBranchCacheInfo::GetUnused ( std::vector< Int_t > &  unused)
inline

Return a set of unused basket, let's not re-read them.

Definition at line 122 of file TBranchCacheInfo.h.

◆ HasBeenUsed()

bool ROOT::Internal::TBranchCacheInfo::HasBeenUsed ( Int_t  basketNumber) const
inline

Return true if the basket has been marked as 'used'.

Definition at line 76 of file TBranchCacheInfo.h.

◆ IsInCache()

bool ROOT::Internal::TBranchCacheInfo::IsInCache ( Int_t  basketNumber) const
inline

Return true if the basket is currently in the cache.

Definition at line 86 of file TBranchCacheInfo.h.

◆ IsVetoed()

bool ROOT::Internal::TBranchCacheInfo::IsVetoed ( Int_t  basketNumber) const
inline

Return true if the basket is currently vetoed.

Definition at line 105 of file TBranchCacheInfo.h.

◆ Print()

void ROOT::Internal::TBranchCacheInfo::Print ( const char *  owner,
Long64_t entries 
) const
inline

Print the info we have for the baskets.

Definition at line 141 of file TBranchCacheInfo.h.

◆ Reset()

void ROOT::Internal::TBranchCacheInfo::Reset ( )
inline

Reset all info.

Definition at line 134 of file TBranchCacheInfo.h.

◆ SetIsInCache()

void ROOT::Internal::TBranchCacheInfo::SetIsInCache ( Int_t  basketNumber)
inline

Mark if the basket is currently in the cache.

Definition at line 89 of file TBranchCacheInfo.h.

◆ SetState()

void ROOT::Internal::TBranchCacheInfo::SetState ( Int_t  basketNumber,
EStates  what 
)
inlineprivate

Mark if the basket has been marked has the 'what' state.

Definition at line 68 of file TBranchCacheInfo.h.

◆ SetUsed()

void ROOT::Internal::TBranchCacheInfo::SetUsed ( Int_t  basketNumber)
inline

Mark if the basket has been marked as 'used'.

Definition at line 79 of file TBranchCacheInfo.h.

◆ TestState()

bool ROOT::Internal::TBranchCacheInfo::TestState ( Int_t  basketNumber,
EStates  what 
) const
inlineprivate

Return true if the basket has been marked as having the 'what' state.

Definition at line 60 of file TBranchCacheInfo.h.

◆ UpdatePedestal()

void ROOT::Internal::TBranchCacheInfo::UpdatePedestal ( Int_t  basketNumber)
inlineprivate

Update the pedestal to be less or equal to basketNumber, shift the bits if needed.

Definition at line 48 of file TBranchCacheInfo.h.

◆ Veto()

void ROOT::Internal::TBranchCacheInfo::Veto ( Int_t  basketNumber)
inline

Mark if the basket should be vetoed in the next round.

This happens when the basket was loaded in the previous round and was not used and is overlapping to the next round/cluster

Definition at line 98 of file TBranchCacheInfo.h.

Member Data Documentation

◆ fBasketPedestal

Int_t ROOT::Internal::TBranchCacheInfo::fBasketPedestal {-1}
private

Definition at line 44 of file TBranchCacheInfo.h.

◆ fInfo

TBits ROOT::Internal::TBranchCacheInfo::fInfo
private

Definition at line 45 of file TBranchCacheInfo.h.

Libraries for ROOT::Internal::TBranchCacheInfo:

The documentation for this class was generated from the following file: