20 #define TSelVerifyDataSet_cxx
113 PDB(kSelector, 2)
Info(
"SlaveBegin",
"dataset MSS: '%s'",
fMss.
Data());
126 if (strstr(opts,
"allfiles:") || strchr(opts,
'A'))
128 else if (strstr(opts,
"staged:") || strchr(opts,
'D'))
131 if (strstr(opts,
"open:") || strchr(opts,
'O'))
133 if (strstr(opts,
"touch:") || strchr(opts,
'T'))
135 if (strstr(opts,
"nostagedcheck:") || strchr(opts,
'I'))
138 if (strstr(opts,
"noaction:") || strchr(opts,
'N'))
140 if (strstr(opts,
"locateonly:") || strchr(opts,
'L'))
142 if (strstr(opts,
"stageonly:") || strchr(opts,
'S'))
145 if (strstr(opts,
"verbose:") || strchr(opts,
'V'))
152 PDB(kSelector, 1)
Info(
"SlaveBegin",
"o=%d", o);
165 Warning(
"SlaveBegin",
"kAllFiles mode: ignoring kStagedFiles or kReopen"
166 " or kTouch requests");
170 PDB(kSelector, 1)
Info(
"SlaveBegin",
"fFopt=%d",
fFopt);
176 Error(
"SlaveBegin",
"kLocateOnly and kStageOnly cannot be processed concurrently");
179 if ((o & TDataSetManager::kLocateOnly))
fSopt = 1;
182 Warning(
"SlaveBegin",
"kNoAction mode: ignoring kLocateOnly or kStageOnly requests");
184 PDB(kSelector, 1)
Info(
"SlaveBegin",
"fSopt=%d",
fSopt);
197 PDB(kSelector, 1)
Info(
"SlaveBegin",
198 "fAllf=%d fCheckstg=%d fNonStgf=%d fReopen=%d fTouch=%d fStgf=%d",
207 PDB(kSelector, 1)
Info(
"SlaveBegin",
208 "fNoaction=%d fFullproc=%d fLocateonly=%d fStageonly=%d",
216 PDB(kSelector, 1)
Info(
"SlaveBegin",
217 "fDoall=%d fGetlistonly=%d fScanlist=%d",
223 TString::Format(
"TSelVerifyDataSet_%s_%s", hostname.Data(), thisordinal.Data());
234 if (
fInput && (elemPair = dynamic_cast<TPair *>
236 if ((fCurrent = dynamic_cast<TDSetElement *>(elemPair->
Value())))
237 Info(
"Process",
"entry %lld: file: '%s'", entry, fCurrent->
GetName());
240 Error(
"Process",
"entry %lld: current element not found!", entry);
246 Error(
"Process",
"can not get TFileInfo; returning");
251 Info(
"Process",
"input fileinfo: ");
252 fileInfo->
Print(
"L");
277 fDbg, changed, touched, disappeared);
285 PDB(kSelector, 1)
Info(
"Process",
286 "fChangedDs = %d, fTouched = %d disappeared = %d",
291 Info(
"Process",
"updated fileinfo: ");
292 newfileinfo->
Print(
"F");
309 PDB(kSelector, 1)
Info(
"Process",
310 "file appear to be newly staged; %s",
323 fDbg, changed, opened);
330 Info(
"Process",
"updated fileinfo: ");
331 newfileinfo->
Print(
"L");
347 Info(
"SlaveTerminate",
348 "sub-dataset '%s' added to the output list (%lld files)",
359 TString sfdisppeared=
TString::Format(
"PROOF_NoFilesDisppeared_%s_%s", hostname.Data(), thisordinal.Data());
virtual const char * GetTitle() const
Returns title of object.
Long64_t GetNFiles() const
void Print(Option_t *options="") const
Print information about this object.
This class represents a WWW compatible URL.
virtual void SlaveTerminate()
Worker Terminate.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TFileCollection * fSubDataSet
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
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".
TUrl * GetFirstUrl() const
const char * Data() const
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.
std::vector< std::vector< double > > Data
ClassImp(TSelVerifyDataSet) TSelVerifyDataSet
Constructor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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.
void InitMembers()
Initialize members.
virtual const char * GetName() const
Returns name of object.
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
Class used by TMap to store (key,value) pairs.
virtual const char * HostName()
Return the system's host name.
const char * GetOrdinal() const
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
Current object if processing object (vs. TTree)
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.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.