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");
178 if ((o & TDataSetManager::kLocateOnly))
fSopt = 1;
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",
222 TString::Format(
"TSelVerifyDataSet_%s_%s", hostname.Data(), thisordinal.Data());
233 if (
fInput && (elemPair = dynamic_cast<TPair *>
235 if ((fCurrent = dynamic_cast<TDSetElement *>(elemPair->
Value())))
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)",
358 TString sfdisppeared=
TString::Format(
"PROOF_NoFilesDisppeared_%s_%s", hostname.Data(), thisordinal.Data());
virtual const char * GetName() const
Returns name of object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TSelectorList * fOutput
! List of objects created during processing
void Print(Option_t *options="") const
Print information about this object.
This class represents a WWW compatible URL.
virtual void SlaveTerminate()
Worker Terminate.
TFileCollection * fSubDataSet
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".
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
Manages an element of a TDSet.
Int_t Update(Long64_t avgsize=-1)
Update accumulated information about the elements of the collection (e.g.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
The TNamed class is the base class for all named ROOT classes.
TSelVerifyDataSet()
Constructor.
TUrl * GetFirstUrl() const
std::vector< std::vector< double > > Data
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".
virtual void SlaveBegin(TTree *tree)
Worker Begin.
Named parameter, streamable and storable.
R__EXTERN TSystem * gSystem
virtual void Abort(const char *why, EAbort what=kAbortProcess)
Abort processing.
Int_t Add(TFileInfo *info)
Add TFileInfo to the collection.
Long64_t GetNFiles() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void InitMembers()
Initialize members.
Class used by TMap to store (key,value) pairs.
virtual const char * HostName()
Return the system's host name.
static TFileStager * Open(const char *stager)
Open a stager, after having loaded the relevant plug-in.
virtual void DispatchOneEvent(Bool_t pendingOnly=kFALSE)
Dispatch a single event.
virtual Bool_t Process(Long64_t entry)
Process a single entry.
TObject * GetAssocObj(Long64_t i, Bool_t isentry=kFALSE)
Get i-th associated object.
TList * fInput
List of objects available during processing.
R__EXTERN TProofServ * gProofServ
virtual void Add(TObject *obj)
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
A TTree object has a header with a name and a title.
Class describing a generic file including meta information.
Selector to verify dataset in parallel on workers.
const char * GetOrdinal() const
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const