AliPhysics  ef3b16e (ef3b16e)
ExtractProd Struct Reference

Public Member Functions

 ExtractProd ()
 
Bool_t Run (const TString &name, Bool_t mc=false, ULong_t minSize=1000000)
 
Bool_t GetJobUrl (const TString &name, Bool_t mc, TString &url)
 
Bool_t GetRuns (const TString &url, Bool_t mc, ULong_t minSize)
 
Bool_t GetSize (std::istream &in, ULong_t runNo, Bool_t mc, ULong_t minSize=100000)
 
Bool_t GetDir (std::istream &in, ULong_t runNo, Bool_t mc)
 
Bool_t GetPathPass (const TString &dir, ULong_t run, TString &path, TString &pass)
 
Bool_t Download (const TString &url, TString &out)
 

Public Attributes

TString fTmp
 
TString fPath
 
TString fPass
 
TString fRuns
 
Bool_t fDebug
 

Detailed Description

Extract information on a production.

Definition at line 17 of file ExtractProd.C.

Constructor & Destructor Documentation

ExtractProd::ExtractProd ( )
inline

Constructor

Definition at line 27 of file ExtractProd.C.

Member Function Documentation

Bool_t ExtractProd::Download ( const TString url,
TString out 
)
inline

Download a file from monalisa

Parameters
urlURL to download
outOn return, the content of the file
Returns
true on success

Definition at line 293 of file ExtractProd.C.

Referenced by GetJobUrl(), and GetRuns().

Bool_t ExtractProd::GetDir ( std::istream &  in,
ULong_t  runNo,
Bool_t  mc 
)
inline

Get a directory

Parameters
inInput stream
runNoThe run number
mcTrue for MC
Returns
true on success

Definition at line 218 of file ExtractProd.C.

Referenced by GetRuns().

Bool_t ExtractProd::GetJobUrl ( const TString name,
Bool_t  mc,
TString url 
)
inline

Get the job url.

Parameters
nameProduction name
mcShould be true for MC
urlOn return, the job url
Returns
true on success

Definition at line 72 of file ExtractProd.C.

Referenced by Run().

Bool_t ExtractProd::GetPathPass ( const TString dir,
ULong_t  run,
TString path,
TString pass 
)
inline

Get the pass from the path

Parameters
dirDirectory
runRun number
pathOn return, the path
passOn return, the pass
Returns
true on success

Definition at line 270 of file ExtractProd.C.

Referenced by GetDir().

Bool_t ExtractProd::GetRuns ( const TString url,
Bool_t  mc,
ULong_t  minSize 
)
inline

Get list of runs associated with production

Parameters
urlThe production URL
mcTrue of MC
minSizeLeast size of runs to use
Returns
true on success

Definition at line 110 of file ExtractProd.C.

Referenced by Run().

Bool_t ExtractProd::GetSize ( std::istream &  in,
ULong_t  runNo,
Bool_t  mc,
ULong_t  minSize = 100000 
)
inline

Get the size of a given run

Parameters
inInput stream
runNoRun number to search for
mcTrue for simulations
minSizeLeast size
Returns
true on success

Definition at line 164 of file ExtractProd.C.

Referenced by GetRuns().

Bool_t ExtractProd::Run ( const TString name,
Bool_t  mc = false,
ULong_t  minSize = 1000000 
)
inline

Run the code. Query MonALisa for information.

Parameters
nameProduction identifier
mcIf true, assume simulations
minSizeLeast size of runs to use
Returns
true on success.

Definition at line 40 of file ExtractProd.C.

Member Data Documentation

Bool_t ExtractProd::fDebug

Definition at line 23 of file ExtractProd.C.

TString ExtractProd::fPass

Definition at line 21 of file ExtractProd.C.

TString ExtractProd::fPath

Definition at line 20 of file ExtractProd.C.

TString ExtractProd::fRuns

Definition at line 22 of file ExtractProd.C.

TString ExtractProd::fTmp

Definition at line 19 of file ExtractProd.C.


The documentation for this struct was generated from the following file: