Code Monkey home page Code Monkey logo

latinoanalysis's Introduction

The latinos framework is roughly divided in three parts.

1. Read miniAOD

The code used to read and analyse miniAOD is documented here,

https://github.com/latinos/LatinoTrees/tree/master/AnalysisStep/test

We produce simple ROOT trees from the data and MC miniAOD datasets. To limit the size of the trees we require the events to have at least one lepton that passes a very loose ID requirement.

2. Latino trees post-processing

As calibrations, efficiencies, NLO weights, etc, are often coming a bit late, we have a second processing step based on the previous trees, that allows us to modify the 4-vectors of objects (like leptons and jets) and recompute event kinematics, plugin efficiencies, add weights. This same post-processing is used to apply systematics like scale uncertainties (leptons, MET, jets) that require to modify the 4-vectors of objects. Once we have all the outputs of the second step we derive skimmed ROOT trees applying different selections, to reduce the size as deemed for a given analysis. The code used at this level is documented here,

https://github.com/latinos/LatinoAnalysis/tree/master/Gardener

3. Analysis

The following python code is used to produce plots, study backgrounds and produce data cards for computing significance and limits,

https://github.com/latinos/PlotsConfigurations

As a starting point one can try this WW configuration,

https://github.com/latinos/PlotsConfigurations/tree/master/Configurations/ControlRegions/WW/Full2016

The first step reads the post-processed latino trees and produces histograms for several variables and phase spaces,

mkShapes.py --pycfg=configuration.py \
            --inputDir=/eos/cms/store/group/phys_higgs/cmshww/amassiro/Full2016/Feb2017_summer16/MCl2looseCut__hadd__bSFL2pTEffCut__l2tight \
            --batchSplit=Cuts,Samples \
            --doBatch=True \
            --batchQueue=8nh
            
mkBatch.py --status

Once the previous jobs have finished we hadd the outputs,

mkShapes.py --pycfg=configuration.py \
            --inputDir=/eos/cms/store/group/phys_higgs/cmshww/amassiro/Full2016/Feb2017_summer16/MCl2looseCut__hadd__bSFL2pTEffCut__l2tight \
            --batchSplit=Cuts,Samples \
            --doHadd=True

Now we are ready to make data/MC comparison plots,

mkPlot.py --inputFile=rootFile/plots_WW.root \
          --showIntegralLegend=1

To move or copy the plots to the web,

mkdir $HOME/www/latino
pushd $HOME/www/latino
wget https://raw.githubusercontent.com/latinos/PlotsConfigurations/master/index.php
popd
cp plotWW/*png $HOME/www/latino/.

Time to check and share the results.

https://piedra.web.cern.ch/piedra/latino/

4. Tutorials

In the twiki below we have documented the tutorials that have been written for different pieces of the latino framework.

https://twiki.cern.ch/twiki/bin/view/CMS/LatinosFrameworkTutorials

latinoanalysis's People

Contributors

achiapparini avatar adrianalvarezf avatar amassiro avatar anmehta avatar arunhep avatar cedricpri avatar corrinnemills avatar d4space avatar davidedicroce avatar dennroy avatar dermotmoran avatar dittmer avatar freejiebao avatar jasperlauwers avatar lenzip avatar lviliani avatar mpresill avatar ntrevisani avatar pageyu avatar piedraj avatar rseidita avatar scodella avatar sebsiebert avatar sennevanputte avatar siewyan avatar soarnsoar avatar tomaskello avatar uajanssen avatar valsdav avatar yiiyama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

latinoanalysis's Issues

Include error in melaReweighterWW.C

I'm executing mkPostProc.py while I get this error:

In file included from input_line_12:9:
In file included from ./Gardener/python/variables/melaReweighterWW.C:20:
/afs/cern.ch/user/g/gpizzati/CMSSW_10_6_4/src/MelaAnalytics/CandidateLOCaster/interface/MELACandidateRecaster.h:8:10: fatal error: 'Mela.h' file not found
#include "Mela.h"
         ^~~~~~~~
Error in <ACLiC>: Dictionary generation failed!

The thing is that while compiling MelaAnalytics/CandidateLOCaster I get no errors.
This happens with both the new version of MELA (JHUGenMELA/MELA) and the old ZZMatrixElement.

I'm using CMSS_10_6_4 and the command mkPostProc.py -p Autumn18_102X_nAODv7_Full2018v7 -s MCl1loose2018v7 -b -T EWKZ_2Jets_with_Higgs to submit the post processing.

Updating scale factor for electron ID [sign-off needed]

Hello,

I have prepared the electron ID for:

  • passingMVA102Xwp90isoHWWiso0p06
  • passingMVA102Xwp90isoHWWiso0p06SS
  • TightHWW_ttHMVA_0p7
  • TightHWW_SS_ttHMVA_0p7

for 2017, and 2018. The Electron IDs are derived from nanoV7. And i have committed the changes [1].
Validation on those ID has been performed and it deemed consistent between v6 and v7 for 4 WPs. The validation results can be found here TIghtHWW [2] and ttHMVA [3].

Could you take a brief look and eventually close this issue?

Thanks,
Siewyan

[1] 1e6baa5
[2] https://shoh.web.cern.ch/shoh/Topics/webspace/view.php?dir=HWW/ttHMVA_Ele_ID/validation/nano_v6_v7/TightHWW
[3] https://shoh.web.cern.ch/shoh/Topics/webspace/view.php?dir=HWW/ttHMVA_Ele_ID/validation/nano_v6_v7/ttHMVA0p7

Wrong indentation?

Hi,
I'm running a configuration without any nuisance and I may have found a bug:

if 'symmetrize' in nuisance:
self._symmetrize(outputsHistoUp, outputsHistoDo)

If nuisances are defined this piece of code would look only at the last nuisance in the loop since it is outside of it.

Could you please confirm this?
Cheers
Davide

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.