-
- if ( task == AliQA::kHITS ) {
- AliDebug(1, "Processing Hits QA") ;
- TClonesArray * arr = dynamic_cast<TClonesArray *>(data) ;
- if (arr) {
- MakeHits(arr) ;
- } else {
- TTree * tree = dynamic_cast<TTree *>(data) ;
- if (tree) {
- MakeHits(tree) ;
- } else {
- AliWarning("data are neither a TClonesArray nor a TTree") ;
- }
- }
- } else if ( task == AliQA::kSDIGITS ) {
- AliDebug(1, "Processing SDigits QA") ;
- TClonesArray * arr = dynamic_cast<TClonesArray *>(data) ;
- if (arr) {
- MakeSDigits(arr) ;
- } else {
- TTree * tree = dynamic_cast<TTree *>(data) ;
- if (tree) {
- MakeSDigits(tree) ;
- } else {
- AliWarning("data are neither a TClonesArray nor a TTree") ;
- }
- }
- } else if ( task == AliQA::kDIGITS ) {
- AliDebug(1, "Processing Digits QA") ;
- TClonesArray * arr = dynamic_cast<TClonesArray *>(data) ;
- if (arr) {
- MakeDigits(arr) ;
- } else {
- TTree * tree = dynamic_cast<TTree *>(data) ;
- if (tree) {
- MakeDigits(tree) ;
- } else {
- AliWarning("data are neither a TClonesArray nor a TTree") ;
- }
- }
- }
+
+ if ( task == AliQAv1::kHITS ) {
+ AliDebug(AliQAv1::GetQADebugLevel(), "Processing Hits QA") ;
+ if (strcmp(data->ClassName(), "TClonesArray") == 0) {
+ fHitsArray = static_cast<TClonesArray *>(data) ;
+ MakeHits() ;
+ } else if (strcmp(data->ClassName(), "TTree") == 0) {
+ TTree * tree = static_cast<TTree *>(data) ;
+ MakeHits(tree) ;
+ } else {
+ AliWarning("data are neither a TClonesArray nor a TTree") ;
+ }
+ } else if ( task == AliQAv1::kSDIGITS ) {
+ AliDebug(AliQAv1::GetQADebugLevel(), "Processing SDigits QA") ;
+ if (strcmp(data->ClassName(), "TClonesArray") == 0) {
+ fSDigitsArray = static_cast<TClonesArray *>(data) ;
+ MakeSDigits() ;
+ } else if (strcmp(data->ClassName(), "TTree") == 0) {
+ TTree * tree = static_cast<TTree *>(data) ;
+ MakeSDigits(tree) ;
+ } else {
+ AliWarning("data are neither a TClonesArray nor a TTree") ;
+ }
+ } else if ( task == AliQAv1::kDIGITS ) {
+ AliDebug(AliQAv1::GetQADebugLevel(), "Processing Digits QA") ;
+ if (strcmp(data->ClassName(), "TClonesArray") == 0) {
+ fDigitsArray = static_cast<TClonesArray *>(data) ;
+ MakeDigits() ;
+ } else if (strcmp(data->ClassName(), "TTree") == 0) {
+ TTree * tree = static_cast<TTree *>(data) ;
+ MakeDigits(tree) ;
+ } else {
+ AliWarning("data are neither a TClonesArray nor a TTree") ;
+ }
+ }