SIM Data Format Table

Complete: 2

SIM Data in RECOSIM and AODSIM Formats

InputTag/Module (Instance name) Containers Description

GeneratorInterface collections (in RECOSIM and AODSIM)
generator LHEEventProduct General characteristics of a generated event (only present if the event starts from LHE events)
generator GenEventInfoProduct General characteristics of a generated event.
generator GenRunInfoProduct Run-specific parameters that define event generation, such as cross-sections, etc.
GeneratorInterface collections (in RECOSIM only)
generator edm::HepMCProduct A tree of final-state particles that form a generated event.
generator LHEEventProduct General characteristics of a generated event (only present if the event starts from LHE events)
generator GenEventInfoProduct General characteristics of a generated event.
generator GenRunInfoProduct Run-specific parameters that define event generation, such as cross-sections, etc.

SimG4Core collections (in RECOSIM and AODSIM)
none none none
SimG4Core collections (in RECOSIM only)
g4SimHits edm::SimTrackContainer collection of (selected) tracks produced during Geant4 tracing of the generator's particles through CMS detector
g4SimHits edm::SimVertexContainer collection of vertices associated with the SimTrack's (see above)

SimTracker collections (in RECOSIM and AODSIM)
nnn reco::TrackCollection description
SimTracker collections (in RECOSIM only)
anothernnn reco::TrackCollection description

SimMuon collections (in RECOSIM and AODSIM)
nnn reco::TrackCollection description
SimMuon collections (in RECOSIM only)
anothernnn reco::TrackCollection description

How to use the table

In your analyzer, you should have the header of the data format you will access - you find this by clicking on the entry in the Containers column - and in you should add the corresponding entries in the BuildFile, see WorkBookBuildFilesIntro.

Do the following in analyze method of your analyzer

     Handle<reco::TrackCollection> tracks;
     iEvent.getByLabel("generalTracks",tracks);
     for(reco::TrackCollection::const_iterator itTrack = tracks->begin();
       itTrack != tracks->end();
       ++itTrack) {
          //  your code
   }
where reco::TrackCollection comes from the Containers column and generalTracks from the InputTag/Module column in the following table. If the data you want to access has an instance name (in parenthesis in the first column) you should use the corresponding getByLabel method:
     Handle<reco::SuperCluster> clusters;
     iEvent.getByLabel("islandSuperClusters","islandEndcapSuperClusters", clusters);
     for(reco::SuperCluster::const_iterator itClust = clusters->begin();
       itClust != clusters->end();
       ++itClust) {
          //  your code
   }
Note that for the sake of commodity, you can define the input tag name (and instance names) in the configuration file so you do not have to recompile your code when you want to access objects of different types. This is already done for you if you use the mkedanlz script with -track option and in many tutorials in the WorkBook. The basic use of the script is explained in WorkBookWriteFrameworkModule.

Contacts

Information sources

The full table is put together from separate pages corresponding to EventContent_cff.py. These pages are for RECO and AOD

for SIM (new): for cosmic data (cosmics specific event constents from EventContentCosmics_cff.py)

Review status

Reviewer/Editor and Date (copy from screen) Comments
KatiLassilaPerini - 24 Jul 2008 created the page

Responsible: KatiLassilaPerini
Last reviewed by:

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2008-07-24 - KatiLassilaPerini
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic 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