Code Monkey home page Code Monkey logo

tm_aodproducer's Introduction

TM_AODProducer

Scripts to generate eta meson MC simulation events with condor, for among other things simulating True Muonium.

Quick setup

Clone the repository on the LPC and change directories:

$ git clone https://github.com/afrankenthal/TM_AODProducer.git
$ cd TM_AODProducer

Now just create a proxy and run the condor job(s):

$ voms-proxy-init --voms cms --valid 192:00
$ condor_submit condor_job_{EtaTo4Mu,EtaTo2Mu,TM}.sub

Default number of jobs (each job = 1k events) is 25. Can be adjusted in the last line of condor_job_XX.sub.

Default output folder on EOS is /store/user/[user]/TrueMuonium/AOD_Signal_Samples, where [user] is your LPC username. If that is different from your CERN DN, you might need to change it if the two are not mapped.

Also make sure that the path TrueMuonium/AOD_Signal_Samples exists before running the production, using e.g. eosmkdir /store/user/[user]/TrueMuonium/AOD_Signal_Samples.

Merging output files

The output AOD files are in CMS's Event Data Model (EDM) format, which prevents them from being hadd-ed together. Instead, use the mergeAODs.py CMS config provided here to merge all output files. Commands:

$ xrdfsls -u /store/user/[user]/TrueMuonium/AOD_Signal_Samples | grep .root > filelist.txt
$ mkdir -p /uscmst1b_scratch/lpc1/3DayLifetime/[user]
$ cmsRun mergeAODs.py outputFile=/uscmst1b_scratch/lpc1/3DayLifetime/[user]/merged.root inputFiles_load=filelist.txt

This creates a file named merged.root in the LPC's scratch space, so that it can be transferred to a permanent location (the merged file can be quite large so it might not fit in your personal LPC folder).

tm_aodproducer's People

Contributors

afrankenthal avatar bennettgberg avatar

Stargazers

Philip Burnham avatar

Watchers

 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.