7.3.1 Offline Primary Vertex Finding

Complete: 5
Detailed Review status


Primary Vertex reconstruction

The reconstruction of Primary vertices using the full tracks is part of the default reconstruction sequence. It is done using the generalTracks track collection. The vertices are stored in the event as reco::Vertex collections. Two collections are stored in the event:

  • offlinePrimaryVertices : The standard vertex collection, where the offlineBeamSpot is used to filter the tracks. This is the collection which we advise to use.
  • offlinePrimaryVerticesWithBS : For this collection, the offlineBeamSpot is used not only to filter the tracks, but also as an additional constraint in the fit. It improves the resolution of the vertices, but we do not yet advise to use it until further robustness studies are done, especially for the initial conditions.

Opening a data file in root, the data of the primary vertices (such as the coordinates, chi-squared, degrees of freedom) can be viewed direclty. More information on how to redo the primary vertex reconstruction is given in the offline guide.

From CMSSW 1.8.0 onwards, if no reconstructed vertex is found in an event using the tracks, a vertex based on the [[SWGuideFindingBeamSpot][beam-spot] is put into the event. In this case, the vertex contains no tracks (as non have been used) , the chi^2 and the ndof are 0, and the flag isFake() is set to true.

Vertex reconstruction analysis

In cmsRun mode, the primary vertices can be analyzed with the CMS.PrimaryVertexAnalyzer module by running demoAnalyzePrimaryVertex_cfg.py:

cmsRun demoAnalyzePrimaryVertex_cfg.py

in the same directory. A root histogram file simpleVertexAnalyzer.root is produced, that, in addition to histograms of the fitted position, covariance, chi2 and degrees of freedom, also contains results of sanity checks of the number of valid track links and invalid fit parameters.

root simpleVertexAnalyzer.root

A simple test of the input track parameters is done by

cmsRun demoAnalyzeTracks_cfg.py

which produces histograms of track parameter pulls. For instance, to look at curvature and z0:

root simpleTrackAnalyzer.root

Review status

Reviewer/Editor and Date (copy from screen) Comments
Main.werdmann - 04 Dec 2006 update
ThomasSpeer - 11 Feb 2008 update
ThomasSpeer - 16 Sep 2008 update for 2.1.X

Responsible: ThomasSpeer
Last reviewed by: ThomasSpeer - 16 Sep 2008

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcff OfflinePrimaryVerticesFromCTFTracks.cff r1 manage 0.2 K 2006-07-19 - 10:58 UnknownUser .cff for vertices from CTF tks
Texttxt OfflinePrimaryVerticesFromCTFTracks_cff.txt r1 manage 0.2 K 2006-07-27 - 22:32 AnneHeavey .cff for vertices from CTF tks
Unknown file formatcff OfflinePrimaryVerticesFromRSTracks.cff r1 manage 0.2 K 2006-07-19 - 10:57 UnknownUser .cff for vertices from RS tks
Texttxt OfflinePrimaryVerticesFromRSTracks.cff.txt r1 manage 0.2 K 2006-07-27 - 22:31 AnneHeavey .cff for vertices from RS tks
Texttxt analyzePrimaryVertex_cfg.txt r1 manage 0.4 K 2006-07-28 - 17:44 AnneHeavey  
Texttxt analyzeTracks_cfg.txt r1 manage 0.4 K 2006-07-28 - 17:46 AnneHeavey  
Texttxt demoAnalyzePrimaryVertex.cfg.txt r1 manage 0.8 K 2006-11-17 - 12:05 UnknownUser  
Texttxt demoProducePrimaryVertex.cfg.txt r1 manage 1.2 K 2006-11-17 - 11:25 UnknownUser  
JPEGjpg dx.jpg r1 manage 17.3 K 2006-06-07 - 16:59 VanlaerPascal  
JPEGjpg dz.jpg r1 manage 16.8 K 2006-06-07 - 16:56 VanlaerPascal  
JPEGjpg ndf.jpg r1 manage 16.1 K 2006-06-07 - 17:01 VanlaerPascal  
Unknown file formatcfg producePV.cfg r1 manage 0.6 K 2006-07-19 - 09:50 UnknownUser .cfg file for offline p.v. production from already produced tracks
Texttxt producePV_cfg.txt r1 manage 0.6 K 2006-07-27 - 22:29 AnneHeavey .cfg file for offline p.v. production from already produced tracks
C source code filec pv.C r1 manage 0.4 K 2006-06-16 - 18:29 VanlaerPascal  
C source code filec pv080.C r1 manage 0.6 K 2006-07-10 - 14:39 UnknownUser pv inspection in FWLITE, cmssw 080_pre3
C source code filec pv111.C r2 r1 manage 0.4 K 2006-11-15 - 12:21 UnknownUser  
GIFgif pvx.gif r2 r1 manage 7.8 K 2006-07-18 - 10:00 UnknownUser x-residuals, cmssw_080_pre5
GIFgif pvz.gif r2 r1 manage 8.0 K 2006-07-18 - 10:01 UnknownUser z-residuals, cmssw_080_pre5
C source code filec tracks.C r1 manage 0.5 K 2006-06-07 - 14:18 VanlaerPascal  
C source code filec tracks080.C r1 manage 0.8 K 2006-07-10 - 14:18 UnknownUser track inspect in FWLITE, cmssw080_pre3
Edit | Attach | Watch | Print version | History: r42 < r41 < r40 < r39 < r38 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r42 - 2010-08-06 - SudhirMalik



    • 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-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