Skip to content

Commit

Permalink
Merge pull request #320 from fprino/master
Browse files Browse the repository at this point in the history
Protection for RAWPRODTYPE variable in case of merging
  • Loading branch information
catalinristea authored Nov 1, 2019
2 parents c7aa118 + bd2545c commit c2d3acb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions AOD/main_AODtrainRawAndMC.C
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Char_t* CollisionSystemMC[kNSystem] =
};

// Temporaries.
void ProcessEnvironment();
void ProcessEnvironment(Int_t mergeCase);
void ProcessEnvironmentMC();
void PrintSettings();
void AODmerge();
Expand Down Expand Up @@ -258,7 +258,7 @@ void main_AODtrainRawAndMC(Int_t merge=0, Bool_t isMC=kFALSE, Bool_t refiltering
cdbm->SetSnapshotMode("OCDBrec.root");
}
}else{
ProcessEnvironment();
ProcessEnvironment(merge);
}

UpdateFlags();
Expand Down Expand Up @@ -632,12 +632,12 @@ void AddAnalysisTasks(const char *cdb_location, Bool_t isMC)

if(AliAnalysisTaskESDfilter::Class()->GetMethodAny("SetRunMVertexerForPileUp")) taskesdfilter->SetRunMVertexerForPileUp(iCollision == kPbPb ? 15 : 0);

if (isMuonOnly) {
taskesdfilter->DisableCaloClusters();
taskesdfilter->DisableCells();
taskesdfilter->DisableCaloTrigger("PHOS");
taskesdfilter->DisableCaloTrigger("EMCAL");
} else AliEMCALGeometry::GetInstance("","");
if (isMuonOnly) {
taskesdfilter->DisableCaloClusters();
taskesdfilter->DisableCells();
taskesdfilter->DisableCaloTrigger("PHOS");
taskesdfilter->DisableCaloTrigger("EMCAL");
} else AliEMCALGeometry::GetInstance("","");
}

// ********** PWG3 wagons ******************************************************
Expand Down Expand Up @@ -845,7 +845,7 @@ void AODmerge()
}

//______________________________________________________________________________
void ProcessEnvironment()
void ProcessEnvironment(Int_t mergeCase)
{
//
// Collision system configuration
Expand Down Expand Up @@ -938,7 +938,7 @@ void ProcessEnvironment()
isMuonCaloPass = kFALSE;
}
else
if(!localRunning)
if(!localRunning && mergeCase==0)
{
printf(">>>>> Unknown production type ALIEN_JDL_RAWPRODTYPE \n");
abort();
Expand Down

0 comments on commit c2d3acb

Please sign in to comment.