41 ::Info(
"AliExternalInfo.TestMCProduction",
"Begin");
44 TTree * treeMCProd= info.
GetTree(
"MonALISA.ProductionMC",
"",
"",
"MonALISA.MC");
45 TTree * treeMC= info.
GetTree(
"MonALISA.MC",
"",
"",
"MonALISA.ProductionMC");
49 Int_t nentries=treeMC->Draw(
"prodName!=MonALISA.ProductionMC.prodName",
"1");
50 Double_t mean=(nentries>0) ? TMath::Mean(nentries, treeMC->GetV1()):1;
52 ::Info(
"AliExternalInfo.TestMCProduction.",
"TestStat(prodName==MonALISA.ProductionMC.prodName)%d-OK",nentries);
54 ::Error(
"AliExternalInfo.TestMCProduction.",
"TestStat(prodName==MonALISA.ProductionMC.prodName)%d-FAILED",nentries);
56 if (TMath::Abs(mean)<0.5/(1+nentries)) {
57 ::Info(
"AliExternalInfo.TestMCProduction",
"TestEqual(prodName==MonALISA.ProductionMC.prodName)%6.6f-OK",mean);
59 ::Error(
"AliExternalInfo.TestMCProduction",
"TestEqual(prodName==MonALISA.ProductionMC.prodName)%6.6f-FAILED",mean);
61 ::Info(
"AliExternalInfo.TestMCProduction",
"End");
71 TTree *
tree = info.
GetTree(
"MonALISA.ProductionCycle",
"",
"");
73 if (tree->GetEntries()>0){
74 ::Info(
"AliExternalInfo.TestProductionAccess",
"Nproductions=%d >0 - OK", tree->GetEntries());
76 ::Error(
"AliExternalInfo.TestProductionAccess",
"Nproductions=%d - FAILED", tree->GetEntries());
80 tree->Draw(
"strstr(Description,\"for\")");
void TestProductionAccess()
void AliExternalInfoTest()
TTree * GetTree(TString type, TString period, TString pass, Int_t buildIndex=1)
This class gives you an interface to different trees of information spread throughout ALICE...