2 #include <TSystemDirectory.h> 22 Warning(
"CheckFile",
"No map in %s", path);
26 Warning(
"CheckFile",
"Map %p (%d) has no data in %s",
42 CheckFile(
const char* name,
const char* dirName, Int_t which)
44 TString
path(gSystem->ConcatFileName(dirName, name));
47 Warning(
"CheckFile",
"Failed to open %s",
path.Data());
52 Warning(
"CheckFile",
"No entry in %s",
path.Data());
58 Warning(
"CheckFile",
"Entry has no object in %s",
path.Data());
67 else if (which ==
kGain)
69 else if (which ==
kRate)
74 Warning(
"CheckFile",
"Don't now how to deal with what=%d", which);
82 Info(
"CheckFile",
"Map OK in %s",
path.Data());
91 TString dirS(dirName);
92 if (dirS.EndsWith(
"/")) dirS.Remove(dirS.Length()-1);
93 dirS = gSystem->BaseName(dirS.Data());
95 if (dirS ==
"Dead" || dirS ==
"ZeroSuppression") what =
kMap;
96 else if (dirS ==
"Pedestal") what =
kPedestal;
97 else if (dirS ==
"PulseGain") what =
kGain;
98 else if (dirS ==
"SampleRate") what =
kRate;
99 else if (dirS ==
"StripRange") what =
kRange;
101 Error(
"CheckCalibData",
"Don't know how to deal with %s in %s",
102 dirS.Data(), dirName);
106 TSystemDirectory dir(dirName, dirName);
107 TList* files(dir.GetListOfFiles());
113 while ((obj = next())) {
114 TString name(obj->GetName());
115 if (!name.EndsWith(
".root"))
continue;
117 if (
CheckFile(name, dirName, what)) nOk++;
119 Info(
"CheckCalibData",
"Total: %d, OK: %d, Bad: %d in %s ",
120 nTotal, nOk, nTotal - nOk, dirName);
TFile * Open(const char *filename, Long64_t &nevents)
Bool_t CheckFile(const char *name, const char *dirName, Int_t which)
Per digitizer card pulser calibration.
Per strip pedestal calibration.
Base class for caches of per-strip information.This is used to index a strip. Data stored depends on ...
Gain value and width for each strip in the FMD.
Per digitizer card pulser calibration.
Per digitizer card pulser calibration.
Per strip gain calibration.
Bool_t CheckMap(const char *path, const AliFMDMap *map)
void CheckCalibData(const char *dirName)
Per digitizer card pulser calibration.
Pedestal value and width for each strip in the FMD.
virtual void * Ptr() const =0
virtual Int_t MaxIndex() const =0