HBD Software Status Update
description
Transcript of HBD Software Status Update
By Sky RolnickUC Riverside
HBD Software Status Update
5/13/091 Sky Rolnick, UC Riverside
OutlineHBD Local Coordinate Issues.Status on Gain Calibrations.HbdEventDisplayHub n’ Spoke Clustering AlgorithmHbdAnalyzerEventAccumulator
5/13/092 Sky Rolnick, UC Riverside
HBD Local Coordinates
5/13/093 Sky Rolnick, UC Riverside
Current Issues Multiple coordinates defined in code which
are inconsistent and incompatible.Almost no documentation exists to define
coordinate system used. Need to discuss weather we should keep
things “as is”, or if its worth cleaning this up a bit.
5/13/094 Sky Rolnick, UC Riverside
HbdFinalSimSupportDefined coordinates are Left Handed!!!There are 24 individual local coordinates
defined.Many of these coordinates are related
through a parallel transport.Transformations require unnecessary shift
depending on module.Coordinates are different than what is
defined on PCB coordinates.
5/13/095 Sky Rolnick, UC Riverside
5/13/096 Sky Rolnick, UC Riverside
HbdFinalSimSupport
Technically coordinates are consistent due to two cancelling effects. If one goes from glob2loc and then loc2glob everything is okay since shifts cancel out. But if someone uses PCB coordinates and uses loc2glob then coordinates are shifted. Result of not using standard PCB coordinates in definition of local coordinate system.
HbdFinalSimSupport
5/13/097 Sky Rolnick, UC Riverside
Define “new” Local Coordinates
5/13/098 Sky Rolnick, UC Riverside
New Coordinates much Simpler
New coordinates much simpler to use. Will be completely compatible with all code that goes from glob2loc and loc2glob and also compatible with PCB coordinates. Will require minor modifications to FindPad, and DistanceFromPoint in HbdFinalSimSupport. Seems to work fine for me, but should be tested by others.
5/13/099 Sky Rolnick, UC Riverside
hbdDetectorGeoUses database to fetch local coordinates. Has advantage that module mapping does
not depend on cable connections.
Would like to add row, col coordinates for pad, sector, as well as padkey to database.
hbdDetectorGeo hbdgeo;hbdgeo.fetch(215034); hbdgeo.LocToGlob(PosY, PosZ,x_glob,y_glob,z_glob,sector);
5/13/0910 Sky Rolnick, UC Riverside
What to do???Remove one of these coordinate systems
to eliminate confusion or keep them both for backwards compatibility?
Redefine coordinates to be consistent with PCB coordinates.
Include (row, col) functionality to allow clustering across boundaries.
I have worked out my own mapping that eliminates “boundary effects” but I could use help in how to add multimap to data base.
5/13/0911 Sky Rolnick, UC Riverside
cvs co offline/analysis/HbdEventDisplay
HbdEventDisplay
5/13/0912 Sky Rolnick, UC Riverside
HbdEventDisplayThis is original event display as created by Weizmann Institute but packaged in Fun4All framework allowing display of multiple data types including DST & PRDF for looking at raw data or sim data. run275586
pp 500 GeV in (+-) field configuration
5/13/0913 Sky Rolnick, UC Riverside
HBD Gain Calibrations
5/13/0914 Sky Rolnick, UC Riverside
Without calibrations we see very high charge >120 fC. After calibrations this settles down by ~factor of 5 depending on module, padnum, P/T, and gain settings.
HBD Gain Calibrations
5/13/0915 Sky Rolnick, UC Riverside
5/13/0916 Sky Rolnick, UC Riverside
Gains vary slightly among modules depending on characteristics of GEM. Also pad by pad variations due primarily to irregularities of GEM holes.We can compare Module by Module gain calibrations to Pad by Pad gain calibrations. Typically, analysis will use both calibrations to achieve greatest uniformity. Are we satisfied with what is in the database, or do these need to be updated further?
HBD Gain Calibrations
cvs co offline/packages/hbd/HbdHnSClusterizer
.Ccvs co
offline/packages/hbd/HbdHnSClusterizer.h
Hub n’ Spoke Clustering Algorithm
5/13/0917 Sky Rolnick, UC Riverside
Hub n’ Spoke Clustering Apologies for taking so long…
Complicated pad mapping.Issues with coordinate system.Lots of memory leaks and other bugs.Multiple versions not always updated.Differences between simulated and real data.My poor programming skills.
cvs co offline/packages/hbd/HbdHnSClusterizer.Ccvs co offline/packages/hbd/HbdHnSClusterizer.h
5/13/0918 Sky Rolnick, UC Riverside
How it worksUses track projections to locate hub, where
hub is defined as three-tuple consisting of three closest pads to track.
Searches for spoke defined as the three-tuple surrounding the hub with the largest charge.
Currently search region includes a spoke radius of 2, which means at most spoke can be located a distance of two hub centers away.
5/13/0919 Sky Rolnick, UC Riverside
Hub n’ Spoke Clustering
5/13/0920 Sky Rolnick, UC Riverside
5/13/09Sky Rolnick, UC Riverside21
Hub n’ Spoke Clustering
5/13/09Sky Rolnick, UC Riverside22
Hub n’ Spoke Clustering
Limitations
5/13/09Sky Rolnick, UC Riverside23
As you can see, very often electrons are detected which have little or no HBD response. These are likely to be conversion pairs on outside of HBD.
Many of the HnS cluster shapes do not agree well with actual cluster shape and are therefore pick up extra scintillation. Is there a way around this?
It is very difficult to distinguish between “single”, “double”, and “hadron” just by looking at distributions.
Higher multiplicity events will pick up lots of scintillation light, skewing results. Unavoidable???
cvs co offline/analysis/HbdAnalyzer
HbdAnalyzer
5/13/0924 Sky Rolnick, UC Riverside
HbdAnalyzer• Allows one to apply hub n’ spoke
parameters in analysis.• HbdHnSClusterizer must be added before
HbdAnalyzer otherwise track variables will not be filled.
• Implemented new version of PHCentralTrack, up to v24 now.
5/13/0925 Sky Rolnick, UC Riverside
cvs co offline/analysis/EvntAccumulator/
EventAccumulator
5/13/0926 Sky Rolnick, UC Riverside
EventAccumulatorUses some of the fancy
stuff in Fun4All to accumulate tracks.
Has the ability to accumulate tracks over multiple events as way of stacking events.
Currently using a buffer to store tracks but this is the dumb way, the much smarter way will be just to use PHCentralTrack as the container.
Starting new buffer of Accumulated events
Ncalls = 96There are 0 tracks in PHCentralTrackTotal number of accumulated tracks is 0Ncalls = 97There are 2 tracks in PHCentralTrackTotal number of accumulated tracks is 2Ncalls = 98There are 2 tracks in PHCentralTrackTotal number of accumulated tracks is 4Ncalls = 99There are 2 tracks in PHCentralTrackTotal number of accumulated tracks is 6Ncalls = 100There are 3 tracks in PHCentralTrackTotal number of accumulated tracks is 9************************************There are 9 tracks in MEGACentralTrack
5/13/0927 Sky Rolnick, UC Riverside
Accumulates over previous 5 events.
EventAccumulatorDoes it make sense only to accumulate
events that have a similar vertex? There could be some funny side effects of
tracking with events from multiple vertex points.
Maybe I should create vertex pools similar to what is done in Cabanaboy?
5/13/0928 Sky Rolnick, UC Riverside
5/13/09Sky Rolnick, UC Riverside29
The End