10 #define ProofTests_cxx 22 ProofTests::ProofTests()
31 ProofTests::~ProofTests()
38 void 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");
68 void 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);
202 void ProofTests::SlaveTerminate()
211 void ProofTests::Terminate()
THist< 1, int, THistStatContent > TH1I
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.
1-D histogram with a float per channel (see TH1 documentation)}
Double_t GetRMS(Int_t axis=1) const
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Auxilliary selector used to test PROOF functionality.
The TNamed class is the base class for all named ROOT classes.
virtual TEnvRec * Lookup(const char *n) const
Loop over all resource records and return the one with name.
void Info(const char *location, const char *msgfmt,...)
virtual void Print(Option_t *option="") const
Print all resources or the global, user or local resources separately.
Named parameter, streamable and storable.
void Warning(const char *location, const char *msgfmt,...)
static constexpr double nm
A TTree object has a header with a name and a title.
const AParamType & GetVal() const
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual const char * GetTitle() const
Returns title of object.