Reina's playground!

SVN+SSH

SVN checkout

export SVN_SSH="ssh -l camacho"
svn co svn+ssh://svn.cern.ch/reps/atlasperf/CombPerf/JetETMiss/GSC2012CONF GSC2012CONF

SVN create a tag from a branch

svn copy svn+ssh://svn.cern.ch/reps/atlasperf/CombPerf/JetETMiss/GSC2012CONF/branches/GSC2012CONF-00-00-00-branch svn+ssh://svn.cern.ch/reps/atlasperf/CombPerf/JetETMiss/GSC2012CONF/tags/GSC2012CONF-00-00-10 -m "Creating tag GSC2012CONF-00-00-10"

OpenAFS

El primer link te dice que hacer: http://information-technology.web.cern.ch/services/fe/afs/howto/openafs-mac-os

Pero en resumen, necesitas este segundo: http://openafs.org/macos.html

Setup Rootcore (07/07/2015)

Let's setup the ATLAS software environment for the first time. If you are outside lxplus you need

export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'
setupATLAS

Now let's setup the Analysis Release, we will use a 'flavor' called AnalysisBase (which is the general purpose one maintained by ASG):

rcSetup Base,2.3.15
rc find_packages
rc compile

What to do every time you log in:

setupATLAS
rcSetup
More information: https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/SoftwareTutorialxAODAnalysisInROOT

Generating events

EVNT generation

DC14:


##Henso's help, March 11th 2015
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'

setupATLAS

cd /afs/cern.ch/user/c/camacho/workspace/testarea/AtlasProduction

source $AtlasSetup/scripts/asetup.sh 17.2.14.2,32,slc5,AtlasProduction

export JOBOPTSEARCHPATH=$JOBOPTSEARCHPATH:/cvmfs/atlas.cern.ch/repo/sw/Generators/MC12JobOptions/latest/common

Generate_trf.py ecmEnergy=13000 maxEvents=-1 runNumber=000001 firstEvent=1 randomSeed=29078 outputEVNTFile=evgen.root jobConfig=test.py

MC15:

##Arturo's help, July 4th 2015

export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'

setupATLAS

cd /afs/cern.ch/user/c/camacho/workspace/testarea/AtlasProduction

#source $AtlasSetup/scripts/asetup.sh 19.2.3.9,32,slc5,AtlasProduction
asetup 19.2.3.9

export JOBOPTSEARCHPATH=$JOBOPTSEARCHPATH:/cvmfs/atlas.cern.ch/repo/sw/Generators/MC15JobOptions/latest/common

Generate_tf.py --ecmEnergy=13000 --firstEvent=1 --randomSeed=1234 --jobConfig=JOs/MC15.301528.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_nonallhad_mtt_1.py --outputEVNTFile=evgen.ttbar.nonallhad.00001.root --runNumber=301528 --maxEvents=100 --steering=afterburner

In the grid:

export PATHENA_GRID_SETUP_SH=/afs/cern.ch/project/gd/LCG-share/current_3.2/etc/profile.d/grid_env.sh
source /afs/cern.ch/atlas/offline/external/GRID/DA/panda-client/latest/etc/panda/panda_setup.sh
source ~camacho/dq2-setup.sh
pathena --trf="Generate_tf.py --ecmEnergy=13000 --runNumber=429030 --firstEvent=1 --maxEvents=100 --randomSeed=%RNDM:100 --jobConfig=JOs/MC15.429030.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_allhad_mtt_1.py --outputEVNTFile=%OUT.test.pool.root --steering=afterburn" --outDS user.camacho.thirdtest13TeV.MC15.429030.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_allhad_mtt_1_EVNT/ --nFilesPerJob=10 --split 10

TRUTH generation

Para crear la DxAOD TRUTH, en un directorio limpio:

1) Setup in local (lxplus o maquina con acceso a /afs/ y /cvmfs/)

export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
setupATLAS

asetup 20.1.4.4,AtlasDerivation,gcc48,here

2) Run the Reco command

Reco_tf.py —inputEVNTFile <path_to_your_generation_events>/<new_of_the_input_file> —outputDAODFile test.pool.root —reductionConf TRUTH1

In the grid:

export PATHENA_GRID_SETUP_SH=/afs/cern.ch/project/gd/LCG-share/current_3.2/etc/profile.d/grid_env.sh
source /afs/cern.ch/atlas/offline/external/GRID/DA/panda-client/latest/etc/panda/panda_setup.sh
source ~camacho/dq2-setup.sh
pathena --trf="Reco_tf.py --inputEVNTFile %IN --outputEVNTFile=%OUT.test.pool.root --reductionConf TRUTH1" --inDS=user.camacho.thirdtest13TeV.MC15.429030.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_allhad_mtt_1_EVNT_EXT0/ --outDS=user.camacho.secondtest13TeV.MC15.429030.PowhegPythiaEvtGen_P2012_ttbar_hdamp172p5_allhad_mtt_1_TRUTH/ --nFilesPerJob=10

My understanding is that MCGN1 contained the full truth, plus things like MET_Truth, truth jets and relative variables. But this format is not available in Rel20. This means too that this format is really huge. But at the same time I can imagine this is one of the reason it has been useful for you studies.

While the documentation (https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TruthDAOD) says that TRUTH0 is basically a dump of EVNT in xAOD format (with a large size too) and doesn’t contain truth MET nor truth jets.

And the TRUTH1 is a very compact format, with a small size, taking from the twiki: "This is the main truth analysis format. In addition to the main truth record it contains a series of extra containers for specific states, as well as various TruthJet and TruthMET collections. The main truth record is also aggressively thinned to reduce the size"

Alex has been using the option MCGN1 instead of TRUTH1

3) Mas información en https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/DerivationFramework#Special_instructions_for_running

Producing derivations

Here is what I used some weeks ago to create JETM8 derivations (09/06/2015):


setupATLAS
asetup 20.1.X.Y-VAL,rel_1,AtlasDerivation,gcc48,here --nightliesarea=/afs/cern.ch/atlas/software/builds/nightlies/
cmt co -r DerivationFrameworkCore-00-02-18 PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore
cmt co -r DerivationFrameworkJetEtMiss-00-02-15 PhysicsAnalysis/DerivationFramework/DerivationFrameworkJetEtMiss
setupWorkArea.py
cd WorkArea/cmt
cmt bro cmt config 
cmt bro gmake 
cd ../run
Reco_tf.py --inputAODFile mc14_13TeV.203496.MadGraphPythia8_AU2MSTW2008LO_RSG_hh_bbbb_m500.recon.AOD.e3219_s1982_s2008_r6252_tid05272175_00/AOD.05272175._000051.pool.root.1 --outputDAODFile output.pool.root --reductionConf JETM8

Instructions for which setup version to use can be found here: https://twiki.cern.ch/twiki/bin/viewauth/AtlasProtected/DerivationFramework#Software_to_use I think the latest version to be used is 20.1.5.1 (week 1 data)

How to run RootCoreValidation code

More info: https://svnweb.cern.ch/trac/atlasphys-exa/browser/Physics/Exotic/Analysis/DibosonResonance/Data2015/VV_JJ/Code/trunk/RootCoreValidation/README

cd /afs/cern.ch/work/c/camacho/testarea/VV_JJ/RootCoreValidation
svn co svn+ssh://svn.cern.ch/reps/atlasphys-exa/Physics/Exotic/Analysis/DibosonResonance/Data2015/VV_JJ/Code/trunk/RootCoreValidation RootCoreValidation

To run it you will need to setup a rootcore release then do,

rc find_packages
rc compile

It should then have executables that you can use to run over truth xAOD files you produce from the GenerateEVNT folder.

cd Validation
qqqqValRun 
The path to the input file folder should be change in Validation/util/qqqqValRun.cxx. The inputs should be in a folder inside the folder you have in the path. The outputs will be in a folder called submitDir/hist-test.root.


Major updates:

-- ReinaCamacho - 2015-05-18

%RESPONSIBLE% ReinaCamacho
%REVIEW% Never reviewed

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r8 - 2015-07-08 - ReinaCamacho
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback