]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/EBYE/PIDFluctuation/task/AliEbyEPidTTask.cxx
Enlarging window for DCS DPs retrieval for short runs for GRP + Keeping connection...
[u/mrichter/AliRoot.git] / PWGCF / EBYE / PIDFluctuation / task / AliEbyEPidTTask.cxx
index 9e7b330b1ab5ac4ac86377e67914db4546a990c8..99c62752644f88a34870a58791f44ca8fb32e1fc 100644 (file)
@@ -152,7 +152,8 @@ void AliEbyEPidTTask::UserExec( Option_t * ){
   Int_t gCent   = -1;
  // Float_t gRefMul = -1;
   
-  AliAODHeader *aodHeader = event->GetHeader();
+  AliAODHeader *aodHeader = dynamic_cast<AliAODHeader*>(event->GetHeader());
+  if(!aodHeader) AliFatal("Not a standard AOD");
   gCent = (Int_t)aodHeader->GetCentralityP()->GetCentralityPercentile(fCentralityEstimator.Data());
  // gRefMul = aodHeader->GetRefMultiplicity();
   if (gCent < 0 || gCent > 100) return;