Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM...

19
Update on TOFSIM Status Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC Meeting Outline Outline TOFSIM Documentation TOFSIM Documentation Data and MC Comparison Data and MC Comparison Time Resolution and Time Resolution and Pull Dist. Pull Dist. TOF Simulation How-To TOF Simulation How-To Summary Summary

Transcript of Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM...

Page 1: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Update on TOFSIM StatusUpdate on TOFSIM Status

Bockjoo KimSeoul National University

21 Nov 2002

MC Meeting

OutlineOutline• TOFSIM DocumentationTOFSIM Documentation• Data and MC Data and MC

ComparisonComparison• Time Resolution and Time Resolution and

Pull Dist.Pull Dist.• TOF Simulation How-ToTOF Simulation How-To• SummarySummary

Page 2: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

TOFSIM DocumentationTOFSIM Documentation

• TOFSIM is documented in CDFNote6120 and what is presented at April MC workshop

• The note focuses on how the parameterization is done(ADC parameterization and twalk)

(TofEventdata.cc does the parameterization)

• USRTUNED parameterization uses calibration files (TofSimConfig.cc reads all the parameters from files)

Page 3: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Simulation OptionsSimulation Options• SIMPLE

– Use the simple parameterization– Good for quick test, e.g., material check, synched with rec.

• MODERATE– Same as SIMPLE but with an analytic time-walk– Not well tested

• USRTUNED– Use calibration files and can be used for analysis– But it is not in good shape yet, not well synched with rec. yet

• (DBFILE) In preparation– DB for time and File for ADC– DB reading capability is implemented

TOFSIM Documentation…continuesTOFSIM Documentation…continues

Page 4: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Option USRTUNED:Time to TDCOption USRTUNED:Time to TDC

• t = t0offset – (thit - tlight – twalk) thit : Bar hit time (Geant)

t0offset :measured during calib.

tlight = ±zhit/cbarhit(+ for east – for west)

twalk= log(Q(z)/Qmip(z)) – (log (Q(z)/Qmip(z)))2 Qmip (z) = Q0E,W e- (L/2 z )/∓ + az2

Q(z) = QLandau * Qmip (z)

• tsmeared = t ± (100 + 0.4*dhit ) (ps)

• TDC = (1+ e- tsmeared /)tsmeared

TOFSIM Documentation…continuesTOFSIM Documentation…continues

From calibration filesFrom calibration files

Page 5: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Underlying concept for ADC Parameterization

Charged particle

TOF Bar

Light

Landau Dist (no z dependence)

Charged particleLight

ADC(West)

ADC(East)

ADC =

Electronics

Landau from light Gaussian from

electronics

We measure

Width in log(ADC(East)/ADC(West)) vs z

Landau width from Landau fit - Width in log(ADC(East)/ADC(West)) vs z

Electronics resolution Width in log(ADC(East)/ADC(West))

Page 6: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Option USRTUNEDOption USRTUNEDE to ADCE to ADC

• Effect of photon statisticsQLandau = E/8*(Landau)

Landau = sqrt( (Q0E /Q0E)2 + (Q0W /Q0W)2 –0.5(r)2)/sqrt(2)

Q0E,W ,Q0E,W :Peak and width of the MIP’s ADC response⊥

r : electronics resolution from residual) of ln(QE/QW) vs z

• z-dependence– Q(z) = QLandau * Q0E,W e- (L/2 z )/∓ + az2

– Q0E,W ,and a are channel or bar dependent

• Electronics resolution ADC = Q(z) ± (Q0E,W r )/sqrt(2)

TOFSIM Documentation…continuesTOFSIM Documentation…continues

A fudge factorA fudge factor

Page 7: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

option DBFILE:Like Reconstructionoption DBFILE:Like Reconstruction

• Reconstruction gets TOF fromTOF = toff – tTOFD – twalk – tlight-(tres)

(Is this true?)

• In simulation we can put the effects astTOFD = toff - thit– twalk – tlight

For ADC, we should use USRTUNED parm. because there are no parameters for ADC in DB.

• If everything is perfect, TOF = thit

Page 8: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Example tcl (simulation part)Example tcl (simulation part)module talk SimulationControlMod

DetectorMenu simulateTof set t ; simulateCot set t exit add Tof3Pack TofDigi3Pack TofGroup ; add TofBar TofDigiBar TofGroup add CotSuperLayer CotDigitizer CotGroup ConfigMenus CotGroup_CotSuperLayer DriftModel set Garfield CreateMCOT set false ; CreateCOTM set true exit TofGroup_Tof3Pack globalChannelCalibFiles set TofSim/test/pmt_channels.dat \ TofSim/test/pmt_voltage.dat TofSim/test/bad_channels.dat \ TofSim/test/pmt_parameters.dat TofSim/test/calib_1e41e.dat \ usrChannelCalibFiles set TofSim/standalone/TofChannels_832x.dat level set DBFILE tacsimr set 135602 ; tacsimv set 1 ; tacsims set RAW ; pedsimr set 135602 pedsimv set 1 ; pedsims set RAW ; spdsimr set 135612 ; spdsimv set 1 spdsims set RAW ; attsimr set 135612 ; attsimv set 1 ; attsims set COMPLETE offsimr set 135612 ; offsimv set 1 ; offsims set COMPLETE; wlksimr set 135612 wlksimv set 1 ; wlksims set COMPLETE ; rsdsimr set 135612 ; rsdsimv set 2 rsdsims set RAW ; ressimr set 135612 ; ressimv set 2 ; ressims set RAW quit ; quit; quit

Databse SpecificationDatabse Specification

Files for parametersFiles for parameters

Simulation OPTIONSimulation OPTION

Page 9: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Reconstruction OptionsReconstruction Options

• Simple Pulse Finder

• Track extrapolation : Geometric

• Matching : TLR method

• T0 Calculation : Negative Log Likelihood

• Calibrator Type: – Dummy SIMPLE (sim-rec-synched )– Sim USRTUNED (in preparation)– Test DBFILE (in preparation)

Page 10: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

PT distributionPT distribution

Blue:J-stream dataBlue:J-stream dataRed :E-stream dataRed :E-stream dataBlack: MCBlack: MC

MC:MC: 5000 Pythia B-Bar5000 Pythia B-BarTracks which hit only single barTracks which hit only single barBasic track cuts, |d0|<1, |Z0|<75, and pBasic track cuts, |d0|<1, |Z0|<75, and pTT>0.35>0.35

Page 11: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

USRTUNED:Time distributionUSRTUNED:Time distribution

Red :Express-stream dataRed :Express-stream dataBlack: MC(option USRTUNED(=calib. from file) )Black: MC(option USRTUNED(=calib. from file) )

T westT westWalk cWalk coror

T eastT eastWalk coWalk corr

Page 12: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

USRTUNED:ADC distributionUSRTUNED:ADC distribution

Blue :Store832Blue :Store832Red :E-stream dataRed :E-stream dataBlack: MCBlack: MC

Page 13: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

DBFILE:Time DistributionDBFILE:Time Distribution

Red :Express-stream dataRed :Express-stream dataBlack: MC(option DBFILE(=calib. from DB+file) )Black: MC(option DBFILE(=calib. from DB+file) )

This is a work in progress.This is a work in progress.

Page 14: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

DBFILE:Time Distribution/offsetDBFILE:Time Distribution/offset

With MC time offset –3.2 ns.With MC time offset –3.2 ns.But the reason is unknown.But the reason is unknown.

Page 15: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

DBFILE:ADC distributionDBFILE:ADC distribution

Red :E-stream dataRed :E-stream dataBlack: MCBlack: MC

Page 16: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Measured T0 Measured T0

This needs to be investigated!

This needs to be investigated!Red :E-stream dataRed :E-stream dataBlack: MCBlack: MC option USRTUNEDoption USRTUNEDBlue:MC option DBFILEBlue:MC option DBFILE

Page 17: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

Measured TOFMeasured TOF

This needs to be investigated!This needs to be investigated!

Red :E-stream dataRed :E-stream dataBlack: MCBlack: MC option USRTUNEDoption USRTUNEDBlue:MC option DBFILEBlue:MC option DBFILE

Page 18: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

TOFSIM usage webpageTOFSIM usage webpage

• See TOFSIM webpage

• In the web, I will put the standard tcl files used for this presentation

Page 19: Update on TOFSIM Status Bockjoo Kim Seoul National University 21 Nov 2002 MC MeetingOutline TOFSIM DocumentationTOFSIM Documentation Data and MC ComparisonData.

SummarySummary

• A very crude version of TOFSIM CDF Note is prepared

• Simulation option DBFILE is added to use consistent parameters between Sim. and Rec.

• Various simulation options show discrepancies between MC and DATA

• T0 and TOF distribution should be understood