#include <TCollection.h>
#include <TTimeStamp.h>
#include <TIterator.h>
-
+#include "AliLog.h"
#include "AliTPCComposedCorrection.h"
AliTPCComposedCorrection::~AliTPCComposedCorrection() {
//
- // virtual destructor
+ // destructor
//
+ if (!fCorrections) {
+ AliInfo("No Correction-models were set: can not delete them");
+ } else {
+ TIterator *i=fCorrections->MakeIterator();
+ AliTPCCorrection *c;
+ while (0!=(c=dynamic_cast<AliTPCCorrection*>(i->Next()))) {
+ delete c;
+ }
+ delete i;
+ }
}
// This applies all correction and the specified manner (see general
// class description for details).
//
- TIterator *i=fCorrections->MakeIterator();
+
+ if (!fCorrections) {
+ AliInfo("No Corrections-models were set: can not calculate distortions");
+ return;
+ }
+ TIterator *i=fCorrections->MakeIterator();
AliTPCCorrection *c;
switch (fMode) {
case kParallel:
// class descxiption for details).
//
+ if (!fCorrections) {
+ AliInfo("No Corrections-models were set: can not calculate distortions");
+ return;
+ }
TIterator *i=fCorrections->MakeReverseIterator();
AliTPCCorrection *c;
switch (fMode) {
printf("Composed TPC spacepoint correction \"%s\" -- composed of:\n",GetTitle());
TString opt = option; opt.ToLower();
Int_t in=1;
+ if (!fCorrections) {
+ printf(" - composed correction is empty!\n");
+ return;
+ }
TIterator *i=fCorrections->MakeIterator();
AliTPCCorrection *c;
while (0!=(c=dynamic_cast<AliTPCCorrection*>(i->Next()))) {
//
// Initialization funtion (not used at the moment)
//
-
+ if (!fCorrections) {
+ AliInfo("No Correction-models were set");
+ return;
+ }
TIterator *i=fCorrections->MakeIterator();
AliTPCCorrection *c;
while (0!=(c=dynamic_cast<AliTPCCorrection*>(i->Next())))
//
// Update function
//
+ if (!fCorrections) {
+ AliInfo("No Correction-models were set");
+ return;
+ }
TIterator *i=fCorrections->MakeIterator();
AliTPCCorrection *c;
// Note: overwrites previously set values!
//
+ if (!fCorrections) {
+ AliInfo("No Correction-models were set");
+ return;
+ }
+
TIterator *i=fCorrections->MakeIterator();
AliTPCCorrection *c;
while (0!=(c=dynamic_cast<AliTPCCorrection*>(i->Next()))) {