- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
Checking Recent Gamma Maker Changes
Abstract: Recently Pibero checked some changes into the offline/StGammaMaker code. I noticed some discrepancies in event yields between old and new versions of the code. While there are discrepancies between the two codes, they are smaller that what I was seeing. Nevertheless, it is important to start tracking code changes.
Method:
1. Check out the "current" and "old" versions of the code, defined as
-
old: cvs co -D 06/01/2008 offline/StGammaMaker
-
cur: cvs co -D 06/27/2008 offline/StGammaMaker
2. Compile the code in each directory
3. Generate gamma trees for run 7136022
4. Compare event yields for trigger ID = 137641
Number of triggers expected: 10449
06/01/2008 code
- 6102 events in gamma trees
- 5079 events w/ reconstructed TPC vertex
- 5079 events w/ gamma candidates (3x3 cluster w/ ET > 5 GeV)
06/27/2008 code
- 10410 events in gamma trees
- 9074 events w/ reconstructed TPC vertex
-
5072 events w/ gamma candidates (3x3 cluster w/ ET > 5 GeV)
The current version of the code differs by 7 events in 5k (1.4%) from the earlier version of the code.
Changes to the code which explain some of the above discrepancies:
-
Old version of gamma tree maker requires a valid gamma candidate before writing the event. New version does not.
-
Old version of raw maker has a different (possibly incorrect?) vertexing cut.
-
Old version of the code does no trigger filtering during tree creation. New verion does. Thus, old event total of 6102 (before cuts) represents the total number of events found in the MuDst which satisfies a 3x3 ET > 5.0 GeV cut, from which 5079 have a valid TPC vertex.
New and old version of the code are consistent within 1.4%. Not clear why we lose the 1.4%. Possibly due to the accessor methods used to get the TPC vertex.
07/03/2008
Data sample:
1. Fill 7863, kick run 7136046 (ppProductionLong w/ no TPC and it crashes the new code).
2. Apply the "classic" conversion method cuts
- isolation cut, 90% R=0.3
- hadronic veto, R=0.3
- charged particle veto R=0.3
- analyzer cut R=0.3
Old version:
N triggers = 30577
N triggers w/ flag = 25626
N triggers w/ cand = 25626
N eemc candidates = 25626
N isolated candidates = 11873
N nonhadronic candidates = 2400
N neutral candidates = 135
N analyzer = 122
Current version:
N triggers = 53134
N triggers w/ flag = 46618
N triggers w/ cand = 25716
N eemc candidates = 25711
N isolated candidates = 11764
N nonhadronic candidates = 2348
N neutral candidates = 132
N analyzer = 121
There are subtle differences here, of a few % by the time we apply the cut on EEMC candidates, and isolation cuts.
Groups:
- jwebb's blog
- Login or register to post comments