How to run L&S:



 Download and compile LandS

Currently L&S needs ROOT for supporting the plotting routines inside L&S,
though the main part of L&S is dealing with modeling and statistical analysis which do not requiring ROOT installation.

Here we assume you will run from lxplus5.cern.ch

# get L&S and unpack it
wget https://mschen-exp.web.cern.ch/mschen-exp/Statistics/lands.tgz

tar -xzf lands.tgz

# set up ROOT enviroment
# assuming you are using c-shell
setenv ROOTSYS "/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00/slc4_amd64_gcc34/root" 
setenv PATH "$ROOTSYS/bin:$PATH"
setenv LD_LIBRARY_PATH "$ROOTSYS/lib"

# compile L&S
cd LandS;
make clean; make all;
cd test;


 Run without data card

# run Modified Frequentist approach, using CLs.exe,
# you can try it without parameters and it will give detailed instruction on how to config your model

./CLs.exe

# run Bayesian approach, using Bayesian.exe
# you can try it without parameters and it will give detailed instruction on how to config your model

./Bayesian.exe


# example for multi-channels combination
# you may need to modify inputs inside the file Multichannels.cc, and recompile it

./MultipleChannels.exe

# example for shape analysis
# you may need to modify inputs inside the file Shapeanalysis.cc, and recompile it

./ShapeAnalysis.exe
กก

Running with data card:
 An input data card is designed for multi-channels with detailed breakdown of systematics/backgrounds
 you can find the template in the following link,    please have a try to modify it to be your own input card
 https://mschen-exp.web.cern.ch/mschen-exp/Statistics/2010.06.22_hww_mh160B_3ch_0jets.txt

The conceptual format of the data card can be found in Korytov's talks at

 http://indico.cern.ch/getFile.py/access?contribId=1&resId=0&materialId=slides&confId=96787

 http://indico.cern.ch/getFile.py/access?contribId=1&resId=1&materialId=slides&confId=99459

1. run CLs limit

./CLs_dataCard.exe inputCard.txt

2. run bayesian limit

./Bayesian_dataCard.exe inputCard.txt

3. calc significance using PLR or Frequentist methods

./Significance_dataCard.exe inputCard.txt  

simply running the command without argument will print out the help message