ROOT logo
void runProofCheckESD(const char * dataset = "/PWG0/COMMON/run30000X_10TeV_0.5T",Long64_t nentries=1000, Long64_t firstentry=0)
{
  // Connect to Proof
  TProof::Open("lxb6046");

  // Upload and enable packages: please use the correct version!
  gProof->UploadPackage("AF-v4-14");
  gProof->EnablePackage("AF-v4-14");

  // Create the analysis manager
  AliAnalysisManager *mgr = new AliAnalysisManager("AliAnalysisTaskCheckESD");

  AliVEventHandler* esdH = new AliESDInputHandler();
  mgr->SetInputEventHandler(esdH);

  // Enable MC event handler
  AliVEventHandler* handler = new AliMCEventHandler;
  mgr->SetMCtruthEventHandler(handler);

  // Create task
  gProof->Load("AliAnalysisTaskCheckESD.cxx++g");
  AliAnalysisTask *task = new AliAnalysisTaskCheckESD("AliAnalysisTaskCheckESD");

  // Add task
  mgr->AddTask(task);

  // Create containers for input/output
  AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
  AliAnalysisDataContainer *coutput = 
    mgr->CreateContainer("coutput", TList::Class(), 
    AliAnalysisManager::kOutputContainer, "Hist.root");

  // Connect input/output
  mgr->ConnectInput(task, 0, cinput);
  mgr->ConnectOutput(task, 1, coutput);


  // Enable debug printouts
  mgr->SetDebugLevel(3);

  if (!mgr->InitAnalysis())
    return;

  mgr->PrintStatus();

  mgr->StartAnalysis("proof",dataset,nentries,firstentry);
}

 runProofCheckESD.C:1
 runProofCheckESD.C:2
 runProofCheckESD.C:3
 runProofCheckESD.C:4
 runProofCheckESD.C:5
 runProofCheckESD.C:6
 runProofCheckESD.C:7
 runProofCheckESD.C:8
 runProofCheckESD.C:9
 runProofCheckESD.C:10
 runProofCheckESD.C:11
 runProofCheckESD.C:12
 runProofCheckESD.C:13
 runProofCheckESD.C:14
 runProofCheckESD.C:15
 runProofCheckESD.C:16
 runProofCheckESD.C:17
 runProofCheckESD.C:18
 runProofCheckESD.C:19
 runProofCheckESD.C:20
 runProofCheckESD.C:21
 runProofCheckESD.C:22
 runProofCheckESD.C:23
 runProofCheckESD.C:24
 runProofCheckESD.C:25
 runProofCheckESD.C:26
 runProofCheckESD.C:27
 runProofCheckESD.C:28
 runProofCheckESD.C:29
 runProofCheckESD.C:30
 runProofCheckESD.C:31
 runProofCheckESD.C:32
 runProofCheckESD.C:33
 runProofCheckESD.C:34
 runProofCheckESD.C:35
 runProofCheckESD.C:36
 runProofCheckESD.C:37
 runProofCheckESD.C:38
 runProofCheckESD.C:39
 runProofCheckESD.C:40
 runProofCheckESD.C:41
 runProofCheckESD.C:42
 runProofCheckESD.C:43
 runProofCheckESD.C:44
 runProofCheckESD.C:45
 runProofCheckESD.C:46
 runProofCheckESD.C:47
 runProofCheckESD.C:48
 runProofCheckESD.C:49