X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDQAChecker.cxx;h=57845f6d8787729757ec142af034bb7e9c61426f;hb=b4b977f70edde287e24f18a09a8e9e70129edda4;hp=2d3d3aaebad8cc44c31b73353aef531be44e947c;hpb=15f00ef061b3676cfb1f777f564b6bd4d9e114a2;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDQAChecker.cxx b/TRD/AliTRDQAChecker.cxx index 2d3d3aaebad..57845f6d878 100644 --- a/TRD/AliTRDQAChecker.cxx +++ b/TRD/AliTRDQAChecker.cxx @@ -13,11 +13,15 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* - Checks the quality assurance. - By comparing with reference data - S.Radomski Uni-Heidelberg October 2007 -*/ +/* $Id$ */ + +//////////////////////////////////////////////////////////////////////////// +// // +// Checks the quality assurance. // +// By comparing with reference data // +// S.Radomski Uni-Heidelberg October 2007 // +// // +//////////////////////////////////////////////////////////////////////////// // --- ROOT system --- #include @@ -31,10 +35,41 @@ // --- AliRoot header files --- #include "AliLog.h" -#include "AliQA.h" +#include "AliQAv1.h" #include "AliQAChecker.h" #include "AliTRDQAChecker.h" ClassImp(AliTRDQAChecker) //__________________________________________________________________ + +void AliTRDQAChecker::Check(Double_t * test, AliQAv1::ALITASK_t index, TObjArray ** list, const AliDetectorRecoParam* /*param*/) +{ + + // Super-basic check on the QA histograms on the input list: + + if (!list) return; + for(Int_t i=0; iAt(12); + if (!hist) continue; + + Double_t value = hist->Integral(hist->FindBin(lowAmp), hist->FindBin(highAmp)); + if (hist->GetSum()) + test[specie] = value / hist->GetSum(); + + } +} + +//____________________________________________________________________________