19#define TSelVerifyDataSet_cxx
112 PDB(kSelector, 2)
Info(
"SlaveBegin",
"dataset MSS: '%s'",
fMss.
Data());
125 if (strstr(opts,
"allfiles:") || strchr(opts,
'A'))
127 else if (strstr(opts,
"staged:") || strchr(opts,
'D'))
130 if (strstr(opts,
"open:") || strchr(opts,
'O'))
132 if (strstr(opts,
"touch:") || strchr(opts,
'T'))
134 if (strstr(opts,
"nostagedcheck:") || strchr(opts,
'I'))
137 if (strstr(opts,
"noaction:") || strchr(opts,
'N'))
139 if (strstr(opts,
"locateonly:") || strchr(opts,
'L'))
141 if (strstr(opts,
"stageonly:") || strchr(opts,
'S'))
144 if (strstr(opts,
"verbose:") || strchr(opts,
'V'))
151 PDB(kSelector, 1)
Info(
"SlaveBegin",
"o=%d", o);
164 Warning(
"SlaveBegin",
"kAllFiles mode: ignoring kStagedFiles or kReopen"
165 " or kTouch requests");
169 PDB(kSelector, 1)
Info(
"SlaveBegin",
"fFopt=%d",
fFopt);
175 Error(
"SlaveBegin",
"kLocateOnly and kStageOnly cannot be processed concurrently");
181 Warning(
"SlaveBegin",
"kNoAction mode: ignoring kLocateOnly or kStageOnly requests");
183 PDB(kSelector, 1)
Info(
"SlaveBegin",
"fSopt=%d",
fSopt);
196 PDB(kSelector, 1)
Info(
"SlaveBegin",
197 "fAllf=%d fCheckstg=%d fNonStgf=%d fReopen=%d fTouch=%d fStgf=%d",
206 PDB(kSelector, 1)
Info(
"SlaveBegin",
207 "fNoaction=%d fFullproc=%d fLocateonly=%d fStageonly=%d",
215 PDB(kSelector, 1)
Info(
"SlaveBegin",
216 "fDoall=%d fGetlistonly=%d fScanlist=%d",
236 Info(
"Process",
"entry %lld: file: '%s'", entry, fCurrent->
GetName());
239 Error(
"Process",
"entry %lld: current element not found!", entry);
245 Error(
"Process",
"can not get TFileInfo; returning");
250 Info(
"Process",
"input fileinfo: ");
251 fileInfo->
Print(
"L");
276 fDbg, changed, touched, disappeared);
284 PDB(kSelector, 1)
Info(
"Process",
285 "fChangedDs = %d, fTouched = %d disappeared = %d",
290 Info(
"Process",
"updated fileinfo: ");
291 newfileinfo->
Print(
"F");
308 PDB(kSelector, 1)
Info(
"Process",
309 "file appear to be newly staged; %s",
322 fDbg, changed, opened);
329 Info(
"Process",
"updated fileinfo: ");
330 newfileinfo->
Print(
"L");
346 Info(
"SlaveTerminate",
347 "sub-dataset '%s' added to the output list (%lld files)",
R__EXTERN TProofServ * gProofServ
R__EXTERN TSystem * gSystem
Manages an element of a TDSet.
TObject * GetAssocObj(Long64_t i, Bool_t isentry=kFALSE)
Get i-th associated object.
static Bool_t CheckStagedStatus(TFileInfo *fileInfo, Int_t fopt, Int_t maxfiles, Int_t newstagedfiles, TFileStager *stager, Bool_t createStager, Bool_t dbg, Bool_t &changed, Bool_t &touched, Bool_t &disappeared)
Check stage status of the file described by "fileInfo".
static void ProcessFile(TFileInfo *fileInfo, Int_t sopt, Bool_t checkstg, Bool_t doall, TFileStager *stager, Bool_t createStager, const char *stageopts, Bool_t dbg, Bool_t &changed, Bool_t &opened)
Locate, stage, or fully validate file "fileInfo".
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
Int_t Update(Long64_t avgsize=-1)
Update accumulated information about the elements of the collection (e.g.
Long64_t GetNFiles() const
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
Class describing a generic file including meta information.
void Print(Option_t *options="") const
Print information about this object.
TUrl * GetFirstUrl() const
static TFileStager * Open(const char *stager)
Open a stager, after having loaded the relevant plug-in.
virtual void Add(TObject *obj)
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
The TNamed class is the base class for all named ROOT classes.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Class used by TMap to store (key,value) pairs.
Named parameter, streamable and storable.
const char * GetOrdinal() const
Selector to verify dataset in parallel on workers.
void InitMembers()
Initialize members.
virtual Bool_t Process(Long64_t entry)
Process a single entry.
TSelVerifyDataSet()
Constructor.
virtual void SlaveBegin(TTree *tree)
Worker Begin.
virtual void SlaveTerminate()
Worker Terminate.
TFileCollection * fSubDataSet
TList * fInput
List of objects available during processing.
TSelectorList * fOutput
! List of objects created during processing
virtual void Abort(const char *why, EAbort what=kAbortProcess)
Abort processing.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual void DispatchOneEvent(Bool_t pendingOnly=kFALSE)
Dispatch a single event.
virtual const char * HostName()
Return the system's host name.
A TTree represents a columnar dataset.
This class represents a WWW compatible URL.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
const char * GetHostFQDN() const
Return fully qualified domain name of url host.