DAQ and Trigger Systems
for CLAS12
TDR supporting slides
November 2007

CLAS DAQ Analysis
CLAS DAQ performance (10kHz event rate, 35MB/s data rate, <15% dead time) is close to CLAS12 requirements (10kHz, 100MB/s, <15%)
FASTBUS ADCs will be replaced with Flash ADCs
Pipeline TDCs will be reused, new channels will be equipped with the same kind of modules
CAMAC discriminators will be replaced with JLAB-made modiles
FASTBUS 1877 TDCs will be reused for drift chambers, VME backup solution will be provided
ADB electronics will be partially reused, partially redesigned
Completely new trigger system will be built

CLAS12 Data Acquisition System
4108 channels of Flash ADCs and TDCs/discriminators collecting data from two calorimeters, two cerenkov counters and three time-of-flight detectors
12096 channels of TDCs collecting data from Drift Chambers
41 VME/VME64X/VXS/FASTBUS crates equipped with Readout Controllers and Trigger Interface Units
CODA DAQ software

Slide 4
Slide 5
Slide 6
Slide 7
Slide 8
CLAS12 Trigger System
Trigger system study is completed based on high energy CLAS data
CLAS12 trigger system conceptual design is completed; it includes fast detector-based Level1 trigger and Drift Chamber-based Level2 trigger subsystems (see following slides)
Future development includes CLAS12 simulation-based trigger study and electronics design

Slide 10
Slide 11
Slide 12
Slide 13
Slide 14
CLAS12 computing and network
CLAS online cluster is fast enough already to satisfy CLAS12 requirements, except data storage and data link to the JLAB computer center
Most of computing and network equipment will be upgraded in following years because of aging and maintenance reasons

Slide 16
CLAS12 Experiment Control System
New Experiment Control System (ECS) will be adopted for CLAS12
ECS will include monitoring, control and calibration subsystems
CLAS12 DAQ and Trigger systems will be incorporated into ECS

Slide 18
CLAS12 Trigger System Level 1:
EC cluster finding

EC algorithm description
For cluster reconstruction purposes EC can be considered as 3 planes called U, V and W, crossing each other at 120 degrees (see figure 1). Each plane has 36 strips, each strip equipped with PMT to be connected to individual Flash ADC channel. EC cluster finding procedure includes following steps:
Step 1: threshold[0] applied to the energies from individual strips; only strips with energies above threshold[0] reported to the following step in a form of STRIP(strip number, strip energy)
Step 2: each plane is scanned searching for 1-dim peaks, defined as Ôgroup of one or several neighbor strips with energy above threshold[0] separated from another groups by at least one strip with energy below threshold[0]Õ (see figure 2). Energy sum and weighted coordinate are calculated for every peak, and peaks with energy above threshold[1] are reported to the following step in a form of PEAK(peak ÔcenterÕ strip number, peak energy)
Step 3: 1-dim peaks from each of three planes are processed using following simple formula: (37-delta)<=(U+V+W)<=(37+delta) (see figure 3). If three peaks from 3 planes satisfies to that formula they considered as parts of one 2-dim cluster. Energy sum and weighted coordinate are calculated for every 2-dim cluster, and clusters with energy above threshold[2] are reported as final result in a form of CLUSTER(three cluster ÔcenterÕ strip numbers, cluster energy)
Described algorithm works in online and offline data processing for years. Now we should try to implement something like that into Level1 trigger electronics.

Slide 21
Slide 22
Slide 23
Slide 24
Slide 25
Slide 26
Slide 27
Level1: Forward Calorimeter Cluster Finding
16-channel Flash ADCs
21-slot crate: 16 FADC boards, dual-width processing unit, CPU, TI
256 channels maximum, we need 216 per sector

Slide 29
Slide 30
Slide 31