- This morning there was a commit from Ruben checking in the destructor whether the analysis is in proof mode. This needs an instance of the analysis manager which we don't have when we run makeResults.C. I definitely want to have the possibility to run the macro without creating an analysis manager instance. An additional protection is added for the case no analysis manager is available. Affects AliTRDinfoGen, AliTRDresolution, AliTRDrecoTask.
- Protection in makeResults.C not working anymore with the latest alien versions (GSHELL_ROOT not set anymore in gclient_env_$UID), therefore commented out.
delete fV0List;\r
fV0List = NULL;\r
}\r
- if(fContainer && !AliAnalysisManager::GetAnalysisManager()->IsProofMode()){ \r
+ if(fContainer && !(AliAnalysisManager::GetAnalysisManager() && AliAnalysisManager::GetAnalysisManager()->IsProofMode())){ \r
fContainer->Delete(); \r
delete fContainer;\r
fContainer = NULL;\r
// Author: Ionut Arsene <I.C.Arsene@gsi.de>\r
Int_t centralityBin = -1;\r
AliDebug(2, Form(" Beam Type: %s", fESDev->GetESDRun()->GetBeamType()));\r
- if(TString(fESDev->GetESDRun()->GetBeamType()).Contains("Pb-Pb")){\r
+ TString beamtype = fESDev->GetESDRun()->GetBeamType();\r
+ if(beamtype.Contains("Pb-Pb") || beamtype.Contains("A-A")){\r
centralityBin = 4;\r
const AliMultiplicity *mult = fESDev->GetMultiplicity();\r
Double_t zdcNeutronEnergy = fESDev->GetZDCN1Energy()+fESDev->GetZDCN2Energy();\r
fPlotFuncList = NULL;\r
}\r
\r
- if(fContainer && !AliAnalysisManager::GetAnalysisManager()->IsProofMode()){\r
+ if(fContainer && !(AliAnalysisManager::GetAnalysisManager() && AliAnalysisManager::GetAnalysisManager()->IsProofMode())){\r
if(fContainer->IsOwner()) fContainer->Delete();\r
delete fContainer;\r
fContainer = NULL;\r
//
// Destructor
//
- if (AliAnalysisManager::GetAnalysisManager()->IsProofMode()) return;
+ if (AliAnalysisManager::GetAnalysisManager() && AliAnalysisManager::GetAnalysisManager()->IsProofMode()) return;
if(fProj){fProj->Delete(); delete fProj;}
if(fCl){fCl->Delete(); delete fCl;}
if(fMCcl){fMCcl->Delete(); delete fMCcl;}
void makeResults(Char_t *opt = "ALL", const Char_t *files="QAResults.root", Char_t *cid = "", Bool_t kGRID=kFALSE, Bool_t dosummary = kTRUE)
{
if(kGRID){
- if(!gSystem->Getenv("GSHELL_ROOT")){
- Error("makeResults.C", "AliEn not initialized.");
- return;
- }
+ //if(!gSystem->Getenv("GSHELL_ROOT")){
+ // Error("makeResults.C", "AliEn not initialized.");
+ // return;
+ //}
TGrid::Connect("alien://");
}