/usr/include/root/TPacketizerMulti.h is in libroot-proof-proofplayer-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | // $Id$
// Author: G. Ganis Jan 2010
/*************************************************************************
* Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TPacketizerMulti
#define ROOT_TPacketizerMulti
//////////////////////////////////////////////////////////////////////////
// //
// TPacketizerMulti //
// //
// This class allows to do multiple runs in the same query; each run //
// can be a, for example, different dataset or the same dataset with //
// entry list. //
// The multiple packetizer conatins a list of packetizers which are //
// processed in turn. //
// The bit TSelector::kNewRun is set in the TSelector object when a new //
// packetizer is used. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TVirtualPacketizer
#include "TVirtualPacketizer.h"
#endif
class TIter;
class TList;
class TMap;
class TMessage;
class TProofProgressStatus;
class TSlave;
class TPacketizerMulti : public TVirtualPacketizer {
private:
TList *fPacketizers; // Packetizers to be processed
TIter *fPacketizersIter; // Iterator on fPacketizers
TVirtualPacketizer *fCurrent; // Packetizer being currently processed
TMap *fAssignedPack; // Map {worker,packetizer} of lat assignement
TPacketizerMulti();
TPacketizerMulti(const TPacketizerMulti&); // no implementation, will generate
void operator=(const TPacketizerMulti&); // error on accidental usage
TVirtualPacketizer *CreatePacketizer(TDSet *dset, TList *wrks, Long64_t first, Long64_t num,
TList *input, TProofProgressStatus *st);
public:
TPacketizerMulti(TDSet *dset, TList *slaves, Long64_t first, Long64_t num,
TList *input, TProofProgressStatus *st);
virtual ~TPacketizerMulti();
TDSetElement *GetNextPacket(TSlave *wrk, TMessage *r);
Int_t GetEstEntriesProcessed(Float_t f, Long64_t &ent, Long64_t &bytes, Long64_t &calls)
{ if (fCurrent) return fCurrent->GetEstEntriesProcessed(f,ent,bytes,calls);
return 1; }
Float_t GetCurrentRate(Bool_t &all) { all = kTRUE;
return (fCurrent? fCurrent->GetCurrentRate(all) : 0.); }
void StopProcess(Bool_t abort, Bool_t stoptimer = kFALSE) {
if (fCurrent) fCurrent->StopProcess(abort, stoptimer);
TVirtualPacketizer::StopProcess(abort, stoptimer); }
void MarkBad(TSlave *wrk, TProofProgressStatus *st, TList **missing)
{ if (fCurrent) fCurrent->MarkBad(wrk, st, missing); return; }
Int_t AddProcessed(TSlave *wrk, TProofProgressStatus *st, Double_t lat, TList **missing)
{ if (fCurrent) return fCurrent->AddProcessed(wrk, st, lat, missing);
return -1; }
Int_t GetActiveWorkers() { if (fCurrent) return fCurrent->GetActiveWorkers(); return 0; }
ClassDef(TPacketizerMulti,0) //Generate work packets for parallel processing
};
#endif
|