Definition at line 20 of file TPoolPlayer.h.
|
| TPoolPlayer (TSelector &selector, TTree *tree, unsigned nWorkers, ULong64_t maxEntries) |
|
| TPoolPlayer (TSelector &selector, const std::vector< std::string > &fileNames, const std::string &treeName, unsigned nWorkers, ULong64_t maxEntries) |
|
| ~TPoolPlayer () |
|
void | HandleInput (MPCodeBufPair &msg) |
| Execute instructions received from a TPool client. More...
|
|
void | Init (int fd, unsigned nWorkers) |
| This method is called by children processes right after forking. More...
|
|
| TMPWorker () |
| Class constructors. More...
|
|
| TMPWorker (const std::vector< std::string > &fileNames, const std::string &treeName, unsigned nWorkers, ULong64_t maxEntries) |
|
| TMPWorker (TTree *tree, unsigned nWorkers, ULong64_t maxEntries) |
|
| TMPWorker (const TMPWorker &)=delete |
|
virtual | ~TMPWorker () |
|
unsigned | GetNWorker () const |
|
pid_t | GetPid () |
|
TSocket * | GetSocket () |
|
TMPWorker & | operator= (const TMPWorker &)=delete |
|
void | Run () |
|
#include <TPoolPlayer.h>
◆ TPoolPlayer() [1/2]
◆ TPoolPlayer() [2/2]
TPoolPlayer::TPoolPlayer |
( |
TSelector & |
selector, |
|
|
const std::vector< std::string > & |
fileNames, |
|
|
const std::string & |
treeName, |
|
|
unsigned |
nWorkers, |
|
|
ULong64_t |
maxEntries |
|
) |
| |
|
inline |
◆ ~TPoolPlayer()
TPoolPlayer::~TPoolPlayer |
( |
| ) |
|
|
inline |
◆ HandleInput()
◆ Init()
void TPoolPlayer::Init |
( |
int |
fd, |
|
|
unsigned |
workerN |
|
) |
| |
|
virtual |
This method is called by children processes right after forking.
Initialization of worker properties that must be delayed until after forking must be done here.
For example, Init saves the pid into fPid, and adds the TMPWorker to the main eventloop (as a TFileHandler).
Make sure this operations are performed also by overriding implementations, e.g. by calling TMPWorker::Init explicitly.
Reimplemented from TMPWorker.
Definition at line 9 of file TPoolPlayer.cxx.
◆ ProcDataSet()
Run fSelector->Process over a data set.
Definition at line 31 of file TPoolPlayer.cxx.
◆ ProcTree()
Run fSelector->Process over the tree entries, send back result.
Definition at line 116 of file TPoolPlayer.cxx.
◆ fFileNames
std::vector<std::string> TPoolPlayer::fFileNames |
|
private |
the files to be processed by all workers
Definition at line 44 of file TPoolPlayer.h.
◆ fFirstEntry
bool TPoolPlayer::fFirstEntry = true |
|
private |
◆ fMaxNEntries
the maximum number of entries to be processed by this worker
Definition at line 48 of file TPoolPlayer.h.
◆ fNWorkers
unsigned TPoolPlayer::fNWorkers |
|
private |
◆ fProcessedEntries
the number of entries processed by this worker so far
Definition at line 49 of file TPoolPlayer.h.
◆ fSelector
pointer to the selector to be used to process the tree. It is null if we are not using a TSelector.
Definition at line 43 of file TPoolPlayer.h.
◆ fTree
TTree* TPoolPlayer::fTree |
|
private |
tree to be processed. It is only used if the tree is directly passed to TProcessExecutor::Process as argument
Definition at line 46 of file TPoolPlayer.h.
◆ fTreeName
std::string TPoolPlayer::fTreeName |
|
private |
the name of the tree to be processed
Definition at line 45 of file TPoolPlayer.h.
The documentation for this class was generated from the following files: