NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER 1 C. Leggett <CGLeggett@ lbl.gov> Intelligent Intelligent (or not completely stupid) (or not completely stupid) Unpacking Unpacking Structure and Timing Studies of the Level 3 Calorimeter Unpacking Tool l3tCalUnp l3tCalUnp
20
Embed
N ATIONAL E NERGY R ESEARCH S CIENTIFIC C OMPUTING C ENTER 1 C. Leggett Intelligent (or not completely stupid) Unpacking Structure and Timing Studies of.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
1C. Leggett <CGLeggett@ lbl.gov>
Intelligent Intelligent (or not completely stupid)(or not completely stupid)
Unpacking Unpacking
Structure and Timing Studies of the Level 3
Calorimeter Unpacking Tool
l3tCalUnpl3tCalUnp
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
• Selectively unpacks sections of the calorimeter according
to input directives:
– Level 1 & 2 seed towers
– Entire calorimeter
– By region
– Size of neighborhood to unpack
– Energy thresholds
– Hot cell flagging thresholds
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
3C. Leggett <CGLeggett@ lbl.gov>
Low Level StructureLow Level Structure
• The calorimeter unpacker will share many low level unpacking routines with other subdetectors.
• Reads in RawDataChunks, and accesses them on a per-module (ADC card) basis, which is the granularity of the unpacker. This means that if you ask for 1 channel in a module, the unpacker will unpack all 384 channel, reducing the time to access other channels in the same module.
• No method for getting the L2 trigger seed tower information exists, so artificially creates seed towers according to various RCP flags.
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
• memory is allocated at beginning of run, and reused. Very
little dynamic memory allocation occurs.
• Big, with lots of empty space.
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
6C. Leggett <CGLeggett@ lbl.gov>
Initial Setup : Initial Setup : MakeMe()MakeMe()
• Initialize CalUnpData, and other variables
• Reserve space for all stl objects
• Calculate and fill lookup tables
• Queries run_config_mgr to determine hardware configuration, then builds translation tables between (moduleID, crateID) and (crate number, slot number)
• Load CalGainTable
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
• Loop over all unpacked towers and cells, and zero CalUnpData
• Reset vector of all unpacked modules
• Reset vector of all unpacked towers
• Accumulate statistics for hot cell killer
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
12C. Leggett <CGLeggett@ lbl.gov>
Timing StudiesTiming Studies
• Majority of time spent in low level routines, such as extracting the module ID for a given seed tower, or translating physics cell addresses to electronic addresses. Already uses lookup tables for some of this, may use more.
• Significant time spent sorting and unique-ing vectors.
• Time does not rise linearly with number of cells/towers unpacked.
• Impossible to say if current implementation is satisfactory, as we don’t have an optimized version of the D0RunII software that runs on NT
• WAY OUT OF DATE
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
13C. Leggett <CGLeggett@ lbl.gov>
Timing ResultsTiming Results
t-tbar sample, no lookup tables
running on d02ka
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
14C. Leggett <CGLeggett@ lbl.gov>
Timing ResultsTiming Results
Using lookup tables
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
15C. Leggett <CGLeggett@ lbl.gov>
Timing ResultsTiming Results
Unpacking Entire Detector
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
16C. Leggett <CGLeggett@ lbl.gov>
Timing ResultsTiming Results
Directed unpacking, trigger threshold = 0.5GeV
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER
17C. Leggett <CGLeggett@ lbl.gov>
Timing ResultsTiming Results
Directed unpacking, trigger tower energy > 2 GeV
NATIONAL ENERGY RESEARCH SCIENTIFIC COMPUTING CENTER