Skip to content

kmohrman/VVVNanoLooper

 
 

Repository files navigation

Four Lepton Analysis

Setting the correct Input/Output Paths

After you clone the repo, the I/O paths for NanoLooper are set in setup.sh. Prior to sourcing setup.sh, you need to modify the $condorPath and the $looperOutput environment variables to correspond to the location of your VVVNanoLooper/condor directory and the location where you want the VVVTrees (the output of the VVVNanoLooper) placed, respectively. The skimDir variable need not be changed unless you want to use a different set of skims. If you do not change these variables prior to sourcing setup.sh you will encounter errors!

Quick start

Run the following commands to produce plots. Prior to sourcing setup.sh please follow the instructions given above in the section "Setting the correct Input/Output Paths".

ssh uaf-10.t2.ucsd.edu
cd your/favoriate/working/directory
git clone --recursive --branch WWZ_debug [email protected]:cmstas/VVVNanoLooper.git
cd VVVNanoLooper/rooutil
make -j
cd ..
source setup.sh
cd analysis/
make -j
python run_analyzer.py
python plot.py

<<<<<<< HEAD Or, if you had done the following the equivalent of above two lines would have already been ran.

source source_all.sh

Then go to condor directory.

cd ../condor
sh maketar.sh # it will make clean; make -j again before tarring up
python submitMetis.py -y year -t tag -m mode 
python submitMetis.py -m mode -y year -t tag

To write out intermediate ntuple with Common_* branches, add the -a " -w" option

python submitMetis.py -m mode -y year -t tag -a " -w"

To submit jobs on lpc cluster, substitute submitMetis.py with submitlpc.py, i.e.

python submitlpc.py -m mode -y year -t tag (-d)
python submitlpc.py -m mode -y year -t tag -a " -w" (-d)

Note that this submission script does not merge files automatically, to merge files, do

source merge_out.sh -y year -t tag (-d)

The output direction of condor job and merge script are

/<username>/VVVAnalysis/<tag>/<year>
/<username>/merged/VVV/<tag>/output/<year>/

in group space

ProjectMetis

N.B. ProjectMetis is a tool that takes care of book keeping on condor jobs and much more.

Nano Skimmer

WWZ_debug

Submitting NanoSkimmer job

Prior to sourcing setup.sh please follow the instructions given above in the section "Setting the correct Input/Output Paths".

source setup.sh
cd condor/
# Modify in the code the tag version
python submitNanoSkimmerMetis.py

Existing NanoSkimmed output (v9)

/ceph/cms/store/user/kdownham/skimOutput/3LepTau_4Lep/

VVVNanoLooper

Installation

Prior to sourcing setup.sh please follow the instructions given above in the section "Setting the correct Input/Output Paths".

ssh uaf-10.t2.ucsd.edu
cd your/favoriate/working/directory
git clone --recursive --branch Run3_WWZ [email protected]:cmstas/VVVNanoLooper.git
cd VVVNanoLooper/
source setup.sh
make cleansmall; // Clean only VVV looper related
make clean; // Full clean include NanoTools/rooutil related objects
make -j;

Submitting VVVNanoLooper jobs (This makes VVVTree ntuple)

Prior to sourcing setup.sh please follow the instructions given above in the section "Setting the correct Input/Output Paths".

source setup.sh

Before making the tarball for the VVVNanoLooper jobs, you first must create the necessary text files containing the cross section information and scale1fb information for the samples you want to run on. You may need to modify these files slightly to point to the correct NanoSkims.

cd weights/
python parse_xsec.py > xsec.txt
python parse_scale1fbs.py > scale1fbs.txt
cd ../

Now that you have stored this information for the samples, you can now make the tarball.

sh condor/maketar.sh # Tar up the code
cd condor/

Prior to submitting the condor jobs, you may want to set the mode that you want to use for the VVVNanoLooper. The different modes correspond to different final states. This setting is found on line 83 of the condor submission script submit4Lep.py. The different modes are:

--mode 0=4LepMET
--mode 1=3LepTauMET
--mode 2=3Lep2jetMET  #This case has not been implemented yet
--mode 3=All          #By "All", I mean 4LepMET and 3LepTauMET

Once you have set the mode that you want to run (in submit4Lep.py), you can now submit the jobs:

# Update the version to the skimmer
python submit4Lep.py -t TAG

Once your jobs are finished, you need to hadd the outputs together (required to run the analysis looper). This is handled using the merge_skim_output.sh script in the condor/ directory.

# hadd the VVVNanoLooper outputs together
./merge_skim_output.sh

Existing vvvtree ntuple (v9)

The most up-to-date version of the vvvtree is stored in Keegan's area on ceph:

/ceph/cms/store/user/kdownham/VVVAnalysis/051723

Running the analysis looper on VVVTree ntuple

Prior to sourcing setup.sh please follow the instructions given above in the section "Setting the correct Input/Output Paths".

source setup.sh
cd analysis/
make -j
python run_analyzer.py
python plot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.7%
  • Python 19.2%
  • Shell 8.7%
  • C 6.3%
  • Makefile 3.1%