o add Reset function to CalPad and CalROC o Add functionality to AliTPCdataQA - Reset...
[u/mrichter/AliRoot.git] / MUON / AliMUONAlignmentTask.cxx
index 370cdc8..dc09612 100644 (file)
@@ -89,8 +89,9 @@ AliMUONAlignmentTask::AliMUONAlignmentTask( const char *name ):
   fMergeAlignmentCDBs( kTRUE ),
   fForceBField( kFALSE ),
   fBFieldOn( kFALSE ),
-  fUnbias( kFALSE ),
   fAlign(0x0),
+  fDefaultStorage(),
+  fOldAlignStorage(),
   fNewAlignStorage( "local://ReAlignOCDB" ),
   fOldGeoTransformer(0x0),
   fNewGeoTransformer(0x0),
@@ -181,7 +182,6 @@ void AliMUONAlignmentTask::LocalInit()
     // following flags are only relevant if not reading records
     if( fForceBField ) AliInfo( Form( "fBFieldOn: %s", (fBFieldOn ? "kTRUE":"kFALSE" ) ) );
     else AliInfo( "fBFieldOn: from GRP" );
-    AliInfo( Form( "fUnbias: %s", (fUnbias ? "kTRUE":"kFALSE" ) ) );
   }
 
   // consistency checks between flags
@@ -213,9 +213,6 @@ void AliMUONAlignmentTask::LocalInit()
   // initialize
   fAlign->Init();
 
-  // use unbiased residuals
-  fAlign->SetUnbias( fUnbias );
-
   // Do alignment with magnetic field off
   fAlign->SetBFieldOn( fBFieldOn );
 
@@ -367,7 +364,8 @@ void AliMUONAlignmentTask::UserExec(Option_t *)
       if( handler )
       {
         AliAODEvent* aod = handler->GetAOD();
-        AliAODHeader* header = aod->GetHeader();
+        AliAODHeader* header = dynamic_cast<AliAODHeader*>(aod->GetHeader());
+        if(!header) AliFatal("Not a standard AOD");
         header->SetRunNumber(lESD->GetRunNumber());
         AliAnalysisManager::GetAnalysisManager()->GetOutputEventHandler()->SetFillAOD(kTRUE);