12 #ifndef ROOT_TPoolPlayer 13 #define ROOT_TPoolPlayer 28 const std::string& treeName,
unsigned nWorkers,
ULong64_t maxEntries) :
37 void Init(
int fd,
unsigned nWorkers);
This class works in conjuction with TMPClient, reacting to messages received from it as specified by ...
ULong64_t fMaxNEntries
the maximum number of entries to be processed by this worker
TPoolPlayer(TSelector &selector, TTree *tree, unsigned nWorkers, ULong64_t maxEntries)
void Init(int fd, unsigned nWorkers)
This method is called by children processes right after forking.
unsigned fNWorkers
the number of workers spawned
std::pair< unsigned, std::unique_ptr< TBufferFile > > MPCodeBufPair
An std::pair that wraps the code and optional object contained in a message.
void HandleInput(MPCodeBufPair &msg)
Execute instructions received from a TPool client.
TTree * fTree
tree to be processed. It is only used if the tree is directly passed to TProcessExecutor::Process as ...
TPoolPlayer(TSelector &selector, const std::vector< std::string > &fileNames, const std::string &treeName, unsigned nWorkers, ULong64_t maxEntries)
std::vector< std::string > fFileNames
the files to be processed by all workers
unsigned long long ULong64_t
std::string fTreeName
the name of the tree to be processed
void ProcDataSet(unsigned int code, MPCodeBufPair &msg)
Run fSelector->Process over a data set.
A TTree object has a header with a name and a title.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
ULong64_t fProcessedEntries
the number of entries processed by this worker so far
void ProcTree(MPCodeBufPair &msg)
Run fSelector->Process over the tree entries, send back result.
TSelector & fSelector
pointer to the selector to be used to process the tree. It is null if we are not using a TSelector...