Functions | Variables
build_test Namespace Reference

Functions

def build ()
 
def compile ()
 
def clean ()
 
def rebuild ()
 

Variables

string source_dir = '/pnfs/nova/scratch/users/aback/prod4/HowToAna2019/2019-01-30/allxp_nue/FHC/FHCNeutronSyst_nueconcat_fakeNDData_2019-01-30/'
 
string build_dir = 'merged_predictions'
 

Detailed Description

Example build script using fabricate and hadd_cafana

Calls functions from the build_tools module which run hadd_cafana commands
through fabricate, in the correct order.

Function Documentation

def build_test.build ( )

Definition at line 25 of file build_test.py.

References compile().

Referenced by rebuild().

25 def build():
26  if not os.path.isdir(build_dir):
27  os.mkdir(build_dir)
28  compile()
29  print 'Done!'
30 
31 
def compile()
Definition: build_test.py:32
def build()
Definition: build_test.py:25
def build_test.clean ( )

Definition at line 37 of file build_test.py.

References fabricate.autoclean().

Referenced by rebuild().

37 def clean():
38  autoclean()
39 
40 
def clean()
Definition: build_test.py:37
def autoclean()
Definition: fabricate.py:1442
def build_test.compile ( )

Definition at line 32 of file build_test.py.

References build_tools.merge_all().

Referenced by build().

32 def compile():
33  # Call merge_all to merge everything in order, for a given directory
34  merge_all(source_dir, build_dir)
35 
36 
def compile()
Definition: build_test.py:32
def merge_all(source_dir, build_dir)
Definition: build_tools.py:29
def build_test.rebuild ( )

Definition at line 41 of file build_test.py.

References build(), clean(), and BlessedPlots.main().

41 def rebuild():
42  clean()
43  build()
44 
45 
46 main() # built in fabricate function
47 
def build()
Definition: build_test.py:25
def clean()
Definition: build_test.py:37
def rebuild()
Definition: build_test.py:41

Variable Documentation

string build_test.build_dir = 'merged_predictions'

Definition at line 22 of file build_test.py.

string build_test.source_dir = '/pnfs/nova/scratch/users/aback/prod4/HowToAna2019/2019-01-30/allxp_nue/FHC/FHCNeutronSyst_nueconcat_fakeNDData_2019-01-30/'

Definition at line 15 of file build_test.py.