hbd software status update

29
By Sky Rolnick UC Riverside HBD Software Status Update 5/13/09 1 Sky Rolnick, UC Riverside

Upload: deion

Post on 21-Jan-2016

24 views

Category:

Documents


0 download

DESCRIPTION

HBD Software Status Update. By Sky Rolnick UC Riverside. Outline. HBD Local Coordinate Issues. Status on Gain Calibrations. HbdEventDisplay Hub n’ Spoke Clustering Algorithm HbdAnalyzer EventAccumulator. HBD Local Coordinates. Current Issues. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: HBD Software Status Update

By Sky RolnickUC Riverside

HBD Software Status Update

5/13/091 Sky Rolnick, UC Riverside

Page 2: HBD Software Status Update

OutlineHBD Local Coordinate Issues.Status on Gain Calibrations.HbdEventDisplayHub n’ Spoke Clustering AlgorithmHbdAnalyzerEventAccumulator

5/13/092 Sky Rolnick, UC Riverside

Page 3: HBD Software Status Update

HBD Local Coordinates

5/13/093 Sky Rolnick, UC Riverside

Page 4: HBD Software Status Update

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

Page 5: HBD Software Status Update

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

Page 6: HBD Software Status Update

5/13/096 Sky Rolnick, UC Riverside

HbdFinalSimSupport

Page 7: HBD Software Status Update

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

Page 8: HBD Software Status Update

Define “new” Local Coordinates

5/13/098 Sky Rolnick, UC Riverside

Page 9: HBD Software Status Update

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

Page 10: HBD Software Status Update

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

Page 11: HBD Software Status Update

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

Page 12: HBD Software Status Update

cvs co offline/analysis/HbdEventDisplay

HbdEventDisplay

5/13/0912 Sky Rolnick, UC Riverside

Page 13: HBD Software Status Update

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

Page 14: HBD Software Status Update

HBD Gain Calibrations

5/13/0914 Sky Rolnick, UC Riverside

Page 15: HBD Software Status Update

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

Page 16: HBD Software Status Update

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

Page 17: HBD Software Status Update

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

Page 18: HBD Software Status Update

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

Page 19: HBD Software Status Update

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

Page 20: HBD Software Status Update

Hub n’ Spoke Clustering

5/13/0920 Sky Rolnick, UC Riverside

Page 21: HBD Software Status Update

5/13/09Sky Rolnick, UC Riverside21

Hub n’ Spoke Clustering

Page 22: HBD Software Status Update

5/13/09Sky Rolnick, UC Riverside22

Hub n’ Spoke Clustering

Page 23: HBD Software Status Update

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

Page 24: HBD Software Status Update

cvs co offline/analysis/HbdAnalyzer

HbdAnalyzer

5/13/0924 Sky Rolnick, UC Riverside

Page 25: HBD Software Status Update

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

Page 26: HBD Software Status Update

cvs co offline/analysis/EvntAccumulator/

EventAccumulator

5/13/0926 Sky Rolnick, UC Riverside

Page 27: HBD Software Status Update

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.

Page 28: HBD Software Status Update

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

Page 29: HBD Software Status Update

5/13/09Sky Rolnick, UC Riverside29

The End