Skip to content

Commit

Permalink
Revert "Added changes by P. Svirin to run the AOD only with a snapsho…
Browse files Browse the repository at this point in the history
…t in a networkless environment, as for ORNL TITAN"

This reverts commit c0c51f1.
  • Loading branch information
Roberto Preghenella committed Sep 15, 2016
1 parent c0c51f1 commit 23b3f76
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions AOD/AODtrainsim.C
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ Bool_t LoadAnalysisLibraries();
Bool_t LoadLibrary(const char *);
void ProcessEnvironment();
TChain *CreateChain();

// ORNL
//const char *cdbPath = "raw://";
const char *cdbPath = "local://";

const char *cdbPath = "raw://";
Int_t run_number = 0;

//______________________________________________________________________________
Expand Down Expand Up @@ -105,37 +101,29 @@ void AODtrainsim(Int_t merge=0)
TString ocdbConfig = "default,snapshot";
if (gSystem->Getenv("CONFIG_OCDB"))
ocdbConfig = gSystem->Getenv("CONFIG_OCDB");

// ORNL
/*if (ocdbConfig.Contains("alien")) {
if (ocdbConfig.Contains("alien")) {
// set OCDB
gROOT->LoadMacro("$ALIDPG_ROOT/MC/OCDBConfig.C");
OCDBDefault(1);
}
else {
*/
// set OCDB snapshot mode
AliCDBManager *cdbm = AliCDBManager::Instance();
cdbm->SetSnapshotMode("OCDBrec.root");
// }
}

if(iCollision == kPbPb)
useCentrality =kTRUE;

UpdateFlags();

printf("Some debugging info ================");

// ORNL
/* if (merge || doCDBconnect) {
if (merge || doCDBconnect) {
TGrid::Connect("alien://");
if (!gGrid || !gGrid->IsConnected()) {
::Error("AODtrainsim", "No grid connection");
return;
}
}
*/

// Set temporary merging directory to current one
gSystem->Setenv("TMPDIR", gSystem->pwd());
// Set temporary compilation directory to current one
Expand Down Expand Up @@ -247,25 +235,14 @@ void AddAnalysisTasks(const char *cdb_location)
}
// CDB connection
//

// ORNL
/* if (doCDBconnect && !useTender) {
if (doCDBconnect && !useTender) {
gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/PilotTrain/AddTaskCDBconnect.C");
AliTaskCDBconnect *taskCDB = AddTaskCDBconnect(cdb_location, run_number);
if (!taskCDB) return;
AliCDBManager *cdb = AliCDBManager::Instance();
cdb->SetDefaultStorage(cdb_location);
// taskCDB->SetRunNumber(run_number);
} */

if (doCDBconnect) {
gROOT->LoadMacro("$ALICE_PHYSICS/PWGPP/PilotTrain/AddTaskCDBconnect.C");
AliTaskCDBconnect *taskCDB = AddTaskCDBconnect(cdb_location, run_number);
if (!taskCDB) return;
// AliCDBManager *cdb = AliCDBManager::Instance();
// cdb->SetDefaultStorage(cdb_location);
// taskCDB->SetRunNumber(run_number);
}
}

if (usePhysicsSelection) {
// Physics selection task
Expand Down

0 comments on commit 23b3f76

Please sign in to comment.