Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
*.root
*.o
*.swp
*.root
*.log
.depend
leaf/DataModelRootDict*
leaf/HKAstroAnalysis.*
leaf/DataModel
lib/*
job.sh
Config.sh
32 changes: 32 additions & 0 deletions example/ConfigExample.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash +x

# This script is used to set up the environment for running LEAF

export HitTimeLimitsNegative=-4
export HitTimeLimitsPositive=8
export SearchVtxStep=300
export SearchVtxTolerance=20
export maxHitsAngle=190
export N_Neighbors=5
export maxDistanceToNeighbors=6800

export STimePDFLimitsQueueNegative=-3;
export STimePDFLimitsQueuePositive=4;
export STimePDFLimitsQueueNegative_fullTimeWindow=0;
export STimePDFLimitsQueuePositive_fullTimeWindow=0;
export TimeWindowSizeFull=1500;
export Averaging=20; # Number of points we used to average the vertex on.

export MinimizeLimitsNegative=-700;
export MinimizeLimitsPositive=1000;

export IntegrationTimeWindow=50;

export DirTolerance=30;

export StepByStep=false; # Step by step mode was not test and is not supported by multithreading
export UseDirectionality=false;
export HighEnergy=false;
export DoubleNLL=true;
export Limit_mPMT=true;
export DirTakeAll=false;
12 changes: 8 additions & 4 deletions example/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,23 @@ CXXFLAGS += $(shell root-config --cflags)
CXXFLAGS += '-fPIC' -std=c++11 -Wall -Wpedantic -Wno-long-long

INCFLAGS = -I. -I$(shell root-config --incdir)
INCFLAGS += -I$(WCSIMDIR)/include
INCFLAGS += -I$(BONSAIDIR)/bonsai
INCFLAGS += -I$(WCSIM_BUILD_DIR)/include/WCSim
# INCFLAGS += -I$(WCSIMDIR)/include
# INCFLAGS += -I$(BONSAIDIR)/bonsai
INCFLAGS += -I$(LEAFDIR)/leaf
INCFLAGS += -I$(LEAFDIR)/leaf/DataModel

LIBS += -L${WCSIMDIR} -lWCSimRoot
# LIBS += -L${WCSIMDIR} -lWCSimRoot
LIBS += -L${WCSIM_BUILD_DIR}/lib -lWCSimRoot
LIBS += $(shell root-config --libs) -lMinuit
LIBS_BONSAI += -L${BONSAIDIR} -lWCSimBonsai
# LIBS_BONSAI += -L${BONSAIDIR} -lWCSimBonsai
LIBS_LEAF += -L${LEAFDIR}/lib -lDataModelLite -lHKManager -lLEAF #-lHKAstroAnalysis


OBJECT = analysis

CXXFLAGS += -std=c++17

all: $(OBJECT)

analysis: analysis.o
Expand Down
Loading