Logo coherent WaveBurst  
Library Reference Guide
Logo
Functions | Variables
cwb_compile.C File Reference

Functions

TB checkFile (gSystem->Getenv("CWB_ROOTLOGON_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_PARAMETERS_FILE"))
 
TB checkFile (gSystem->Getenv("CWB_NETC_FILE"))
 
TB checkFile (macroPath)
 
cout<< endl<< "cwb_compile : Macro compilation ..."<< endl<< endl;int success=gSystem-> CompileMacro (TString(macroTmp).Data(),"kf", libPath)
 
 if (gSystem->Getenv("CWB_COMPILE_MACRO_NAME")!=NULL)
 
 if (!macroPath.EndsWith(".C"))
 
 if (!success)
 
 if (check==-1)
 
 if (error)
 
libPath ReplaceAll (".C","_C")
 
macroTmp1 ReplaceAll (".C","_C_ACLiC_dict_rdict.pcm")
 
macroTmp2 ReplaceAll (".C","_C.d")
 
 sprintf (command, "/bin/rm -f %s", macroTmp1.Data())
 
 sprintf (command, "/bin/rm -f %s", macroTmp2.Data())
 

Variables

int check = gROOT->LoadMacro((libPath+".so").Data(),&error,true)
 
char command [1024]
 
int error =gSystem->Exec(command)
 
TString libPath = macroPath
 
TString macroPath =""
 
TString macroTmp = CWB::Toolbox::addCWBFlags(TMacro(macroPath))
 
TString macroTmp1 = macroPath
 
TString macroTmp2 = macroTmp
 

Function Documentation

◆ checkFile() [1/4]

TB checkFile ( gSystem->  Getenv"CWB_ROOTLOGON_FILE")

◆ checkFile() [2/4]

TB checkFile ( gSystem->  Getenv"CWB_PARAMETERS_FILE")

◆ checkFile() [3/4]

TB checkFile ( gSystem->  Getenv"CWB_NETC_FILE")

◆ checkFile() [4/4]

TB checkFile ( macroPath  )

◆ CompileMacro()

cout<< endl << "cwb_compile : Macro compilation ..." << endl << endl; int success = gSystem-> CompileMacro ( TString(macroTmp).Data()  ,
"kf"  ,
libPath   
)

◆ if() [1/5]

if ( gSystem->Getenv("CWB_COMPILE_MACRO_NAME")!  = NULL)

Definition at line 31 of file cwb_compile.C.

◆ if() [2/5]

if ( !macroPath.  EndsWith".C")

Definition at line 37 of file cwb_compile.C.

◆ if() [3/5]

if ( success)

Definition at line 52 of file cwb_compile.C.

◆ if() [4/5]

if ( check  = =-1)

Definition at line 59 of file cwb_compile.C.

◆ if() [5/5]

if ( error  )

Definition at line 69 of file cwb_compile.C.

◆ ReplaceAll() [1/3]

libPath ReplaceAll ( ".C"  ,
"_C"   
)

◆ ReplaceAll() [2/3]

macroTmp1 ReplaceAll ( ".C"  ,
"_C_ACLiC_dict_rdict.pcm"   
)

◆ ReplaceAll() [3/3]

macroTmp2 ReplaceAll ( ".C"  ,
"_C.d"   
)

◆ sprintf() [1/2]

sprintf ( command  ,
"/bin/rm -f %s ,
macroTmp1.  Data() 
)

◆ sprintf() [2/2]

sprintf ( command  ,
"/bin/rm -f %s ,
macroTmp2.  Data() 
)

Variable Documentation

◆ check

int check = gROOT->LoadMacro((libPath+".so").Data(),&error,true)

Definition at line 58 of file cwb_compile.C.

◆ command

char command[1024]

Definition at line 44 of file cwb_compile.C.

◆ error

error =gSystem->Exec(command)

Definition at line 43 of file cwb_compile.C.

◆ libPath

TString libPath = macroPath

Definition at line 40 of file cwb_compile.C.

◆ macroPath

TString macroPath =""

Definition at line 30 of file cwb_compile.C.

◆ macroTmp

Definition at line 47 of file cwb_compile.C.

◆ macroTmp1

TString macroTmp1 = macroPath

Definition at line 65 of file cwb_compile.C.

◆ macroTmp2

TString macroTmp2 = macroTmp

Definition at line 74 of file cwb_compile.C.