22ProofTests::ProofTests()
31ProofTests::~ProofTests()
38void ProofTests::ParseInput()
44 TNamed *ntype =
dynamic_cast<TNamed*
>(fInput->FindObject(
"ProofTests_Type"));
46 if (!strcmp(ntype->
GetTitle(),
"InputData")) {
48 }
else if (!strcmp(ntype->
GetTitle(),
"PackTest1")) {
50 }
else if (!strcmp(ntype->
GetTitle(),
"PackTest2")) {
56 Info(
"ParseInput",
"test type: %d (from '%s')", fTestType, ntype ? ntype->
GetTitle() :
"undef");
68void ProofTests::SlaveBegin(
TTree * )
80 fStat =
new TH1I(
"TestStat",
"Test results", 20, .5, 20.5);
90 TList *h1list =
dynamic_cast<TList*
>(fInput->FindObject(
"h1list"));
104 Warning(
"SlaveBegin",
"%d: info 'h1avg' or 'h1rms' not found!", fTestType);
107 Warning(
"SlaveBegin",
"%d: input histo 'h1data' not found!", fTestType);
110 Warning(
"SlaveBegin",
"%d: input list 'h1list' not found!", fTestType);
113 TList *h2list =
dynamic_cast<TList*
>(fInput->FindObject(
"h2list"));
120 if (h2avg && h2rms) {
127 Warning(
"SlaveBegin",
"%d: info 'h2avg' or 'h2rms' not found!", fTestType);
130 Warning(
"SlaveBegin",
"%d: input histo 'h2data' not found!", fTestType);
133 Warning(
"SlaveBegin",
"%d: input list 'h2list' not found!", fTestType);
136 TNamed *iob =
dynamic_cast<TNamed*
>(fInput->FindObject(
"InputObject"));
140 Warning(
"SlaveBegin",
"%d: input histo 'InputObject' not found!", fTestType);
142 }
else if (fTestType == 1) {
145 TNamed *
nm =
dynamic_cast<TNamed*
>(fInput->FindObject(
"testenv"));
150 Warning(
"SlaveBegin",
"%d: lookup for '%s' failed!", fTestType,
nm->GetTitle());
154 Warning(
"SlaveBegin",
"%d: TNamed with the test env info not found!", fTestType);
156 }
else if (fTestType == 2) {
159 TNamed *
nm =
dynamic_cast<TNamed*
>(fInput->FindObject(
"testenv"));
163 while (nms.Tokenize(nam, from,
",")) {
166 if (xx > 1.) fStat->Fill(xx);
168 Warning(
"SlaveBegin",
"RC-env '%s' not found!", nam.
Data());
172 Warning(
"SlaveBegin",
"%d: TNamed with the test env info not found!", fTestType);
202void ProofTests::SlaveTerminate()
211void ProofTests::Terminate()
Auxilliary selector used to test PROOF functionality.
void Info(const char *location, const char *msgfmt,...)
void Warning(const char *location, const char *msgfmt,...)
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual TEnvRec * Lookup(const char *n) const
Loop over all resource records and return the one with name.
virtual void Print(Option_t *option="") const
Print all resources or the global, user or local resources separately.
1-D histogram with a float per channel (see TH1 documentation)}
1-D histogram with an int per channel (see TH1 documentation)}
virtual Double_t GetMean(Int_t axis=1) const
For axis = 1,2 or 3 returns the mean value of the histogram along X,Y or Z axis.
Double_t GetRMS(Int_t axis=1) const
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.
Named parameter, streamable and storable.
const AParamType & GetVal() const
const char * Data() const
A TTree represents a columnar dataset.
static constexpr double nm