Title: Mupc 1
1TMuonAnalysisProcess
TMupcProcess
Process Mupc1
Mupc 1
Determine Bookend times
TMuscProcess
Process Musc Lo
Musc Lo
TMuscProcess
Process Musc with Various deadtimes
MuscWithDTs
TkickProcess
Process Kicker Bank
Kicks
TMuEntrances Process
Process muEntrances
muEntrances
2TMuonAnalysisProcess
Process muEntrances
muEntrances
kickEntrances
Process kickEntrances
TtpcNewProcess
Process tpcNew
tpcNew
Make histograms
Set Track flags on Entrance
3TmuscProcess Flowchart
MUFP
MUSC
Check for Pileup
MUFP Pileup Signal?
Yes
No
Musc fTimes
Throw Out
MOREMUSC?
Go Back to TMuonAnalysis
No
Yes
4TkickProcess Flowchart
KICK
HITS
MUFP
MQL HITS KICK to makeDiagnostic Histograms
Re-Extract kicker signals from raw HITS bank
Using ALL muon signals
Loop over kicker pulses and muons
MUFP Pulse Near?
No
Found Isolated kick time
Yes
Go Back to TMuonAnalysis
Found generic kick time
Any UIUC diag hists
5TMuEntrancesProcess Flowchart
Mupc 1
Musc Lo
Musc Hi (MuscWithDTs)
Kicks
Generate Mupc musclo coinc, hists
Simultaneous Loop over Mupc, Musc Hi
More Mupc Times?
More Musc Times?
Yes
Yes
Compare Next Mupc, Next Musc
No
Increment musc
Coincidence?
Yes
Increment mupc
Increment both
No
Mupc earlier?
Yes
Use musc time
Use mupc time
No
Check for PU/coinc for various banks against mu
Time
Go Back to TMuonAnalysis
Set Entrance Flags
6TtpcNewProcess
muEntrances
Find ROI around muEntrance
Save all Entrances?
Yes
Yes
Find Islands
No
More unused Muons?
How many islands?
1
Find Nearby Kicks
Characterize Track(s)
No
gt1
0
Find Nearby Kicks
mucapEvent-gtAddIsoMuon (muEntrance) No Track
Set Not Alone
Loop over all kicks
Yes
No
mucapEvent-gtAddMuon (muStop)SetTrack
Unused kick?
mucapEvent-gtAddKickerMuon (muEntrance) No Track