KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVPROOFLiteBatch.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Thu Dec 15 14:55:48 2016
2 //Author: John Frankland,,,
3 
4 #include "KVPROOFLiteBatch.h"
5 
6 #include <TProof.h>
7 
9 
10 
11 
14  : KVBatchSystem(name)
15 {
16 }
17 
18 
19 
20 
23 
25 {
26  // Destructor
27 }
28 
29 
30 
34 
36 {
37  // Run analysis on PROOFLite facility
38 
39  // Open PROOFLite session and initialise KaliVeda package
40  if (!gProof) {
41  TProof* p = TProof::Open("");
42  p->ClearCache();//to avoid problems with compilation of KVParticleCondition
43  // enable KaliVeda on PROOF cluster
44  if (p->EnablePackage("KaliVeda") != 0) {
45  // first time, need to 'upload' package
46  TString fullpath = KVBase::GetETCDIRFilePath("KaliVeda.par");
47  p->UploadPackage(fullpath);
48  p->EnablePackage("KaliVeda");
49  }
50  }
51 #ifdef WITH_CPP11
52  da->SetProofMode(KVDataAnalyser::EProofMode::Lite);
53 #else
55 #endif
56  SetAnalyser(da);
57  da->SubmitTask();
58 }
59 
60 
61 //____________________________________________________________________________//
62 
63 
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
char Char_t
R__EXTERN TProof * gProof
static const Char_t * GetETCDIRFilePath(const Char_t *namefile="")
Definition: KVBase.cpp:65
Base class for interface to a batch job management system.
Definition: KVBatchSystem.h:77
virtual void SetAnalyser(KVDataAnalyser *da)
Manager class which sets up and runs data analysis tasks.
void SetProofMode(EProofMode e)
virtual void SubmitTask()
Batch system interface to PROOFLite.
virtual ~KVPROOFLiteBatch()
Destructor.
virtual void SubmitTask(KVDataAnalyser *da)
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
virtual void ClearCache(const char *file=0)
static TProof * Open(const char *url=0, const char *conffile=0, const char *confdir=0, Int_t loglevel=0)
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)