status of meg software
DESCRIPTION
Status of MEG Software. Fabrizio Cei INFN and University of Pisa INFN Scientific Commission I Rome, 06 February 2007. Outline. MEG Software organization Status of Monte Carlo simulation Short remind of analysis framework Status of analysis codes - PowerPoint PPT PresentationTRANSCRIPT
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 11
Fabrizio CeiFabrizio Cei
INFNINFN and and UniversityUniversity of of PisaPisa
INFN Scientific Commission IINFN Scientific Commission I
Rome, 06 February 2007Rome, 06 February 2007
Status of MEG SoftwareStatus of MEG Software
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 22
OutlineOutline
MEG Software MEG Software organizationorganization Status of Status of Monte Carlo simulationMonte Carlo simulation Short remind of Short remind of analysis frameworkanalysis framework Status of Status of analysis codesanalysis codes Status of Status of MEG computing powerMEG computing power @PSI@PSI PreliminaryPreliminary analysis of analysis of 2006 beam test2006 beam test
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 33
MEG Software MEG Software OrganizationOrganization
MCMC
BartendBartenderer
(ROME)(ROME)AnalyzerAnalyzer
(ROME)(ROME)
DAQDAQ
ZEBRAZEBRA
ROOTROOT
MIDASMIDAS
ROOTROOT
SimulationSimulation
Real DataReal Data
WFM andWFM and pile-up simulationsimulation
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 44
Status of Monte CarloStatus of Monte CarloMEGMC programMEGMC program
- - written in written in Geant3.21Geant3.21;;- data output in - data output in ZEBRA banksZEBRA banks, automatically converted , automatically converted
to to C++ structuresC++ structures (readable from analysis codes); (readable from analysis codes);- it simulates - it simulates pairpair (e.g. (e.g. ee) or ) or singlesingle (e.g. (e.g. Michel positronsMichel positrons) ) events;events;- - full simulation of the detectorfull simulation of the detector: : DCH, TICP, TICZ, LXe, Target, DCH, TICP, TICZ, LXe, Target,
Beam, Magnet and magnetic field, mechanical supports, Beam Beam, Magnet and magnetic field, mechanical supports, Beam Upstream and Downstream elements, calibration devices (Upstream and Downstream elements, calibration devices (NaI, NaI,
proton accelerator tube & targets, LHproton accelerator tube & targets, LH22 target, target, sources …); sources …); - - LXeLXe & & TC beam testsTC beam tests simulated by specific modules ( simulated by specific modules (tbeamtbeam & & tbtctbtc););
- - different running configurationsdifferent running configurations ( (finalfinal or or run 2006run 2006););- - large sampleslarge samples (~ 10(~ 1055) ) of eventsof events generated without difficulties; generated without difficulties; - few event types missing, e.g. LED- few event types missing, e.g. LED
Completion Status: 99 %
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 55
Examples of MC Examples of MC eventsevents
ee event event Michel positronMichel positron
RUN 2006 configurationRUN 2006 configuration::No LXe, no TICZ, 8 DCH, No LXe, no TICZ, 8 DCH, TICP displaced by TICP displaced by ± 12 cm± 12 cm
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 66
MC Man PowerMC Man PowerAll persons @ 10 All persons @ 10 50 % of their time 50 % of their time:
Coordination: Coordination: S. Yamada (UCI)S. Yamada (UCI), , F. Cei (Pisa)F. Cei (Pisa);; SVN repository: SVN repository: S. YamadaS. Yamada, , P. Cattaneo (Pavia)P. Cattaneo (Pavia);; Event generation:Event generation:F. Cei, S. YamadaF. Cei, S. Yamada, , Y. Hisamatsu (Tokyo)Y. Hisamatsu (Tokyo);; LXe: LXe: S. Yamada, F. CeiS. Yamada, F. Cei, , G. Signorelli (Pisa);G. Signorelli (Pisa); TICP/TICZ: TICP/TICZ: P. Cattaneo,P. Cattaneo, Y. Uchiyama (Tokyo)Y. Uchiyama (Tokyo);; DCH: DCH: H. Nishiguchi (Tokyo)H. Nishiguchi (Tokyo), , M. Hillebrandt M. Hillebrandt
(PSI)(PSI); ; Beam & Magnet: Beam & Magnet: W. Ootani (Tokyo)W. Ootani (Tokyo);; Target: Target: V. Tumakov (UCI);V. Tumakov (UCI); NaI: NaI: Y.Y. Nishimura (Tokyo);Nishimura (Tokyo); Calibrations: Calibrations: F. CeiF. Cei
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 77
Software framework: Software framework: ROMEROME
ROMEROME ( (RRoot basedoot based OObjectbject OrientedOriented MMidasidas EEnvironmentnvironment) ) is a is a framework generatorframework generator;; ROMEROME is separated in is separated in one detector independentone detector independent and and one one detectordetector dependent partdependent part.. It has been adopted by It has been adopted by other other experimentsexperiments; ; It uses only It uses only 6 different C++ objects6 different C++ objects;; ROMEROME makes the makes the “dirty job”“dirty job”: : creating the structure, defining C++ classes, writing many creating the structure, defining C++ classes, writing many include include files, creating the dependences and the hierarchy …; files, creating the dependences and the hierarchy …; the users and detector expertsthe users and detector experts perform the perform the “smart job”“smart job”: : writing the analysis methods (tasks) and the related folders writing the analysis methods (tasks) and the related folders (data stored on memory) and trees (stored on disks);(data stored on memory) and trees (stored on disks); the most important feature is the modularitythe most important feature is the modularity: : the tasks can be exchanged at runtime.the tasks can be exchanged at runtime.Main developer: M. Schneebeli (PSI)Main developer: M. Schneebeli (PSI)
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 88
ROME InterconnectionsROME Interconnections
Folders
TasksTasksTasksFill
Read
TreesTreesTreesFill
Flag
HistogramsHistogramsHistograms
HistogramsHistogramsHistograms
HistogramsHistogramsHistograms
Fill
Fill
Disk (Output)Write (ROOT)
Disk (Input)
Read (Format: ZEBRA, MIDAS & ROOT)
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 99
ROME Event Display ROME Event Display (ARGUS)(ARGUS)
Display includes tracks Display includes tracks and energy depositsand energy deposits
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1010
Waveform/track Waveform/track displaydisplay
Liquid XenonLiquid Xenon
Drift ChamberDrift Chamber
Both used in on-line Both used in on-line and analysis tooand analysis too
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1111
Status of analysis Status of analysis codes 1)codes 1)
MEGBartenderMEGBartender Event mixing testedEvent mixing tested; multiple formats ; multiple formats
allowed (MIDAS, ROOT, ZEBRA);allowed (MIDAS, ROOT, ZEBRA); Waveform simulation completedWaveform simulation completed for for LXeLXe, ,
TICP/TICZ, DCH wiresTICP/TICZ, DCH wires; work needed ; work needed
for pad simulation;for pad simulation; Preliminary trigger simulationPreliminary trigger simulation included; included;
Completion statusCompletion status: : not far from not far from endend
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1212
Status of analysis Status of analysis codes 2)codes 2)
MEGAnalyzerMEGAnalyzer LXeLXe: ((R. Sawada (Tokyo)R. Sawada (Tokyo), , G. SignorelliG. Signorelli, Y. , Y.
Uchiyama, Uchiyama, S. Yamada, F. Cei)S. Yamada, F. Cei)
-- Waveform decodingWaveform decoding implemented; implemented;- Charge-based reconstruction algorithms Charge-based reconstruction algorithms
implementedimplemented; most of them tested;; most of them tested;- Timing reconstruction & calibration algorithmsTiming reconstruction & calibration algorithms under implementation and testing;under implementation and testing;- Peak findingPeak finding and and pattern recognition taskspattern recognition tasks existing; existing;
Completion statusCompletion status: : ~ ~ 90 %90 %
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1313
Status of analysis Status of analysis codes 3)codes 3)
TICP/Z TICP/Z ((P. CattaneoP. Cattaneo, Y. Uchiyama, D. Zanello , Y. Uchiyama, D. Zanello (Rome) (Rome)
F. Xiao (UCI), A. Barchiesi (Rome), S. Dussoni (Genova))F. Xiao (UCI), A. Barchiesi (Rome), S. Dussoni (Genova))-- Waveform analysis implementedWaveform analysis implemented (baseline, pulses, (baseline, pulses, charges, left/right timing, pile-up flags …);charges, left/right timing, pile-up flags …);- Preliminary hit reconstruction implemented- Preliminary hit reconstruction implemented
(Q,t(Q,tLL,t,tRR) ) (z,<t>) (z,<t>); ; - TBD- TBD: correlation between adjacent bars, : correlation between adjacent bars,
correlation with DCH correlation with DCH
Completion statusCompletion status:: ~ 75 %, but sufficient man ~ 75 %, but sufficient man powerpower
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1414
Status of analysis Status of analysis codes 4)codes 4)
DCH DCH ((H. NishiguchiH. Nishiguchi, M. Schneebeli, M. Hildebrandt), M. Schneebeli, M. Hildebrandt)
- 3D-map of magnetic field- 3D-map of magnetic field;;
- tracking by (preliminary) Kalman filter implemented- tracking by (preliminary) Kalman filter implemented;;
- waveform decoding existing, but slow- waveform decoding existing, but slow;;
- - hit extraction (x,t hit extraction (x,t 3D coordinates) still 3D coordinates) still missingmissing;;
- - extraction of z-coordinate from cathode padextraction of z-coordinate from cathode pad
information still missinginformation still missing..
Since the Since the DCH software seems the most critical DCH software seems the most critical partpart, (, (somesome tasks missing, reduced man powertasks missing, reduced man power) ) we we decided to decided to put some effort on this.put some effort on this.
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1515
Status of analysis Status of analysis codes 5)codes 5)
Trigger Trigger (G. Signorelli, (G. Signorelli, D. NicolD. Nicolòò (Pisa) (Pisa))) - Trigger info/banks coded in MIDAS:- Trigger info/banks coded in MIDAS: run #run #, , event #event #, , trigger codetrigger code,, trigger WFMstrigger WFMs, , scalersscalers (useful for determining run/live time);(useful for determining run/live time); - - ChargeCharge and and timing reconstruction algorithmstiming reconstruction algorithms implemented implemented and under testing (see later)and under testing (see later)
Database Database ((R. SawadaR. Sawada)) - Two databases:- Two databases: MySQLMySQL and and sqlite3sqlite3; easy conversion. ; easy conversion. - MySQL needs network; sqlite3 for stand-alone environment in a - MySQL needs network; sqlite3 for stand-alone environment in a separate svn module (separate svn module (megdbmegdb). ). - Included:- Included: geometry, trigger/hardware configuration, run geometry, trigger/hardware configuration, run
table,table, physical constants, reconstruction coefficients …physical constants, reconstruction coefficients …
Completion statusCompletion status:: ~ OK~ OK
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1616
MEG computing @PSIMEG computing @PSI
Sun Fire x4100 quad core 4 GB
Sun Fire x4100 quad core 4 GB
Sun Fire x4100 quad core 4 GB
Sun Fire x4100 quad core 4 GB
Sun Fire x4100 quad core 4 GB
Fib
er
Ch
an
nel Sw
itch
15 x 500 GB SATA
GB
it E
thern
et
Offline cluster for MEGOffline cluster for MEG
• Presently available : Presently available : 20 CPU cores + 30 TB disk20 CPU cores + 30 TB diskFinal situation : Final situation : 64 CPU cores + 100 TB disk in total64 CPU cores + 100 TB disk in total
• Easily Easily extensibleextensible• GBit link to online cluster requested GBit link to online cluster requested
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1717
PreliminaryPreliminary analysis of analysis of 2006 run2006 run
Hardware configurationHardware configuration::- no - no LXeLXe; no ; no TICZTICZ; 8/16 ; 8/16 DCHDCH installed; installed;- - TICPTICP shifted by shifted by ± 12 cm for mechanical ± 12 cm for mechanical compatibility;compatibility;- Both detectors equipped with - Both detectors equipped with triggertrigger
and and read-out electronics read-out electronics (Domino sampling chip);(Domino sampling chip);- trigger by - trigger by single TICP Bar single TICP Bar DCH events DCH events seen seen
asas “accidentals” “accidentals” in timein time
MC SimulationMC Simulation::- - 500000 Michel positrons500000 Michel positrons with isotropic angular with isotropic angular
distribution and distribution and “RUN2006” configuration“RUN2006” configuration
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1818
Run 2006 Run 2006 configurationconfiguration
Only 3 DCH effectively Only 3 DCH effectively working; one broken working; one broken wire in one of these.wire in one of these.No couples of adjacent No couples of adjacent chambers working chambers working no tracks.no tracks.
Six TICP bars always off Six TICP bars always off (four of them equipped (four of them equipped with test electronics); with test electronics); two others off in some two others off in some runsruns
DSDS USUS
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 1919
Pulse finding Pulse finding algorithm algorithm
Designed to be Designed to be fast fast (no fit, ~ 8 kWFM/s) (no fit, ~ 8 kWFM/s) and and versatileversatile;; Smooth the waveformSmooth the waveform to reduce noise; to reduce noise; Find Find reasonable baseline.reasonable baseline.
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2020
Search for pulseSearch for pulse Bool_t inPulse + FindPulseStart() Bool_t inPulse + FindPulseStart() andand FindPulseEnd(); FindPulseEnd(); Pulse Merge / Pulse Cleanup Pulse Merge / Pulse Cleanup (remove too small pulses).(remove too small pulses).
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2121
Application to DCH 1)Application to DCH 1)
DCH waveform exampleDCH waveform example
Wire signalsWire signals
Cathode signalsCathode signals
CathodesCathodes not yet not yet usedused
Low RateLow Rate
High RateHigh Rate
Time correlation with Time correlation with the trigger signalthe trigger signal
DRS Data (500 MHz)DRS Data (500 MHz)
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2222
Application to DCH 2)Application to DCH 2)
Plane APlane APlane BPlane B
Events selected by Events selected by wire-end wire-end coincidencescoincidences Cuts on MC events by Cuts on MC events by comparing expected/measured comparing expected/measured charge distributions charge distributions (~ 30 % uncertainty) (~ 30 % uncertainty) Reasonable agreement with Reasonable agreement with MC predictionsMC predictions
Slightly lower rate on Plane B (outmost)Slightly lower rate on Plane B (outmost)
AB
COBRACOBRAcentercenter
Black DataBlack DataRed MCRed MC
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2323
Application to DCH: 2D-Application to DCH: 2D-mapmap
• In the In the MCMC we have the we have the hit hit z-z-coordinatecoordinate, for , for datadata we use we use asymmetriesasymmetries
• A “shadow” is present on the upstream sideA “shadow” is present on the upstream side
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2424
Application to TICP Application to TICP 1)1)
Amplitude vs Charge relationAmplitude vs Charge relation
Trigger threshold:Trigger threshold:50 mV50 mV in amplitude in amplitude for for both channelsboth channels && && 200 mV on sum200 mV on sum..
Amplitude vs charge Amplitude vs charge relation fitted for relation fitted for determining an determining an equivalent charge equivalent charge thresholdthreshold and simulate and simulate the the trigger threshold trigger threshold for MC eventsfor MC events. .
DRS amplitude attenuated DRS amplitude attenuated by a factor fiveby a factor five
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2525
Application to TICP Application to TICP 2)2)Charge distributionsCharge distributions
Bar 6, run Bar 6, run 154154 Red DataRed Data
Black MC Black MC (scaled to superimpose (scaled to superimpose peaks)peaks)
Bar 11, run Bar 11, run 154154
MC events selected by MC events selected by cuts on charge distributioncuts on charge distribution to to schematize trigger selectionsschematize trigger selections (25% uncertainty) (25% uncertainty)
All bars together.All bars together.Individual calibrationsIndividual calibrationsto be improvedto be improved
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2626
Application to TICP 3)Application to TICP 3)
Run 154 Low Run 154 Low IntensityIntensity
Red Data
Black MC
Run 236 High IntensityRun 236 High Intensity
Number of hit bar per eventNumber of hit bar per event
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2727
Number of hits on each Number of hits on each barbar
Down Down streamstream
Down Down streamstream
Up streamUp stream
Up streamUp stream
Run 154 Low Run 154 Low IntensityIntensity
Run 236 High Run 236 High IntensityIntensityRed
Data
Black MC
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2828
DCH and TICP ratesDCH and TICP rates
Expected ratesExpected rates computed computed by using the by using the nominal nominal opening of beam slits. opening of beam slits.
Measured ratesMeasured rates computed computed by using by using MC evaluated MC evaluated efficienciesefficiencies::
DCH DCH (single dch)(single dch) 6.6 % 6.6 % TICPTICP 4.2 % 4.2 %
Estimated uncertainties Estimated uncertainties on on trigger rates trigger rates 20 20 30 30 %:%: - limited statistics;- limited statistics; - MC cuts- MC cuts
R
ate
(x 1
0R
ate
(x 1
077
/s
)/s
)
16% 65% 88% 100%16% 65% 88% 100%
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 2929
Trigger data 1) WFMTrigger data 1) WFM
TICPTICP
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3030
Trigger Data 2)Trigger Data 2)
Correlation with DRS dataCorrelation with DRS data
DRSDRSChargeCharge
TriggerTriggerChargeCharge
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3131
Trigger Data 3)Trigger Data 3)
10 mV threshold 10 mV threshold imposed byimposed by analysis programanalysis program(otherwise, the (otherwise, the pulse finding pulse finding algorithm becomes algorithm becomes meaningless).meaningless).Charge distribution Charge distribution for data go down to for data go down to very small values, very small values, as predicted by as predicted by MC simulation.MC simulation.
Low Charge distributionLow Charge distribution (accidental events collected in (accidental events collected in 5 5 ss time time windowwindow)
Red MCRed MCBlack DataBlack Data
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3232
Results of TICP tests Results of TICP tests 1) 1)
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3333
Results of TICP test Results of TICP test 2)2)
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3434
TICP test bar resultsTICP test bar results
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3535
ConclusionsConclusions The MEG software is in an advanced state ofThe MEG software is in an advanced state of preparation:preparation:
– MEGMC + MEGBartenderMEGMC + MEGBartender: : almost finishedalmost finished– MEGAnalyzerMEGAnalyzer: :
LXeLXe: close to completion;: close to completion; TICP/ZTICP/Z: not very far from end; sufficient effort;: not very far from end; sufficient effort;
DCHDCH: delayed; : delayed; more effort neededmore effort needed Trigger/DatabaseTrigger/Database: : ~ ok~ ok..
The analysis of The analysis of RUN 2006 beam testRUN 2006 beam test was was entirely entirely performed performed within the general frameworkwithin the general framework, , which which
looks looks adequate for the whole MEG analysisadequate for the whole MEG analysis..
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3636
Trigger data 2) Trigger data 2) TimingTiming
RUN 154 (slit at 16 %)RUN 154 (slit at 16 %) RUN 236 (slit at 100 RUN 236 (slit at 100 %)%)
Time correlated with trigger pulseTime correlated with trigger pulse5 microseconds window5 microseconds window
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3737
Trigger data 2) Trigger data 2) ChargeCharge
(T(T11-T-T2)2) vs Log(Q vs Log(Q11/Q/Q22))
10 ns time binning 10 ns time binning (poor resolution); however, (poor resolution); however, well visiblewell visible correlationcorrelation
Time and charge Time and charge obtained obtained
through fitting through fitting operation:operation:
)exp()exp()(
1
0
2
0
12
0
ttttV
tV
06 February 20006 February 20077
Fabrizio CeiFabrizio Cei 3838
Application to TICP Application to TICP 4)4)
Log(Inner/Outer Charge) Log(Inner/Outer Charge) Distribution (Distribution ( z) z)
T vs Log(In/Out Charge)T vs Log(In/Out Charge)
Red DataRed Data Black MCBlack MC
Rough timing algorithmRough timing algorithm (it selects (it selects the pulse start in one 2 ns bin), the pulse start in one 2 ns bin), but but reasonable correlationreasonable correlation