Giter Club home page Giter Club logo

analyzer's Introduction

####################################################################################################### Code developed by: Alfredo Gurrola (Vanderbilt), Andres Florez (Los Andes), Amandeep Kalsi (Panjab) #######################################################################################################

In order to use the checkout and use the code, follow these steps:

  1. You need to work at the SLC6 area.

    1.1 If you are working from the LPC cluster, you need to do the following:
    source /cvmfs/cms.cern.ch/cmsset_default.csh
    setenv SCRAM_ARCH slc6_amd64_gcc491

  2. set the CMSSW release: cmsrel CMSSW_7_4_7

  3. cd CMSSW_7_4_7/src

  4. cmsenv

  5. Install and compile the code to use the PAT-electron ID:

5.1 git cms-merge-topic ikrav:egm_id_747_v2
5.2 scram b -j 10

  1. Get the NTupleMaker code and compile it:

6.1 git clone https://github.com/florez/NtupleMaker_740
6.2 mv NtupleMaker_740 NtupleMaker
6.3 scram b -j 10

  1. Get the Analyzer code and compile it (code that performs the analysis and produces histograms):

7.1 git clone https://github.com/gurrola/Analyzer
7.2 scram b -j 10

  1. cd into the appropriate NtupleMaker directory to start running the code:

9.1 cd NtupleMaker/BSM3G_TNT_Maker/python

  1. Copy a test input miniAOD root file from gurrola's area (or your own):

// FROM VANDERBILT:
10.1 cp /home/gurrola/mini_AODSIM.root .
// FROM LPC:
10.1 cp /uscms/home/florez/mini_AODSIM.root .
10. Run the NtupleMaker code:

10.1 cmsRun miniAOD_747_50ns.py

  1. cd into the appropriate Analyzer directory to start running the code:

11.1 cd Analyzer/BSM3G_TNT_MainAnalyzer/

  1. Copy a the Ntuple root file from step 10 and compile the code:

12.1 cp $CMSSW_BASE/src/NtupleMaker/BSM3G_TNT_Maker/python/OutTree.root .
12.2 make clean
12.3 make BSM3GAnalyzer

  1. Run the analyzer code and inspect the output root file:

13.1 ./BSM3GAnalyzer OutTree.root analysis.root
13.2 root -l analysis.root

  1. To run multiple files at LPC using CONDOR, please go to this link and follow the instructions:
    https://github.com/florez/CONDOR
    Please make sure to read carefully the scripts to understand how to configure the code.
    if you have questions, please contact Andres Florez.

  2. Use the Plotter code and output from running the analyzer to produce plots and a cut flow eff table:

16.1 cd ../../Plotter/TNTCode/
16.2 cp ../../Analyzer/BSM3G_TNT_MainAnalyzer/analysis.root Data
16.3 cp ../../Analyzer/BSM3G_TNT_MainAnalyzer/analysis.root DYMuMu
16.4 root -l -b main.C

  1. Inspect the output root file:

16.1 root -l Plots_Rebin1.root

analyzer's People

Contributors

gurrola avatar florez avatar

Watchers

Priyanka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.