CMS Fast Simulation

  • Recipe. Note: if you get errors with the "cvs" command, see my comments about cvs in this page.
cmsrel CMSSW_5_3_6
cd CMSSW_5_3_6/src
cvs co Configuration/GenProduction/python/EightTeV/
scram b

  • We will use the script. You can get more information about the options using the help option: --help Configuration/GenProduction/python/EightTeV/ --step GEN,SIM --beamspot Realistic8TeVCollision --conditions START52_V9::All --pileup NoPileUp --datamix NODATAMIXER --eventcontent RAWSIM --datatier GEN-SIM --filein=file:lhe/tttt_unweighted_events.lhe -n 20 * Run GEN and FASTSIM (detector simulation): Configuration/GenProduction/python/EightTeV/ --filein=file:lhe/tttt_unweighted_events.lhe
-s GEN,FASTSIM,HLT:5E33v4 --conditions=auto:startup_5E33v4 --beamspot Realistic8TeVCollision --pileup 2012_Startup_inTimeOnly --datatier AODSIM --eventcontent AODSIM -n 20 
* Check content of the EDM output file. Notice that below is just an example! the list is incomplete.
edmDumpEventContent ../../../Hadronizer_TuneZ2star_8TeV_generic_LHE_pythia_tauola_cff_py_GEN_SIM.root 
Type                           Module                      Label             Process   
LHEEventProduct                "source"                    ""                "SIM"     
edm::RandomEngineStates        "randomEngineStateProducer"   ""                "SIM"     
edm::TriggerResults            "TriggerResults"            ""                
vector                    "genParticles"              ""                "SIM"     
vector           "ak5GenJets"                ""                "SIM"     
vector           "ak7GenJets"                ""                "SIM"     
vector           "iterativeCone5GenJets"     ""                "SIM"     
vector           "kt4GenJets"                ""                "SIM"     
vector           "kt6GenJets"                ""                "SIM"     
vector           "genMetCalo"                ""                "SIM"     
vector           "genMetCaloAndNonPrompt"    ""                "SIM"     
vector           "genMetTrue"                ""                "SIM"     
vector      "genParticles"              ""                "SIM"     
---++ Analyzing the output ROOT file from FastSim * Below is a template python script to loop over events and produce a simple histogram:
cvs co UserCode/Yumiceva/Scripts
cd UserCode/Yumiceva/Scripts
python -i 
* The generator particle data is stored in the root file as a collection of GenParticles. This object is part of the HEP MC Event record. More information about the member functions are [[][here]], and below is snapshot of these functions. Screen_Shot_2013-03-17_at_10.25.16_PM.png
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2013-03-19 - FranciscoYumiceva
    • 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-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback