Contact Name

Tricia Vahle + Mike Kordosky.


The CalDetSI package is designed to extract CalDet specific information from the raw data. This package provides two main utilities, namely a Candidate object to easily pass the CalDet specific information to other functions, and a set of cut utility functions that performs the cuts necessary to extract a clean CalDet data sample. The candidate package provides a handle to the CandCalDetSI object. Each method works on a single snarl at a time. The more useful data members contained in CandCalDetSI are listed in the following table:

Table: Data members of CandCalDetSI, 1#1Denotes Oxford External Electronics Box
Type Fnct. Name Description
Bool_t GetTriggerPMT() kTRUE if the trigger PMT is digitized
Bool_t GetCosmicCnt() kTRUE if any Cosmic Cntr is digitized
Bool_t GetFafErr() kTRUE if Faf error encountered
Bool_t GetSparseErr() kTRUE if Sparsification error encountered
Int_t GetTrigSource() bit field that identifies trigger source
Int_t GetKovADCn() ADC of nth CER (n=1,2,3)
Int_t GetKovTimeStampn() timestamp (FD ticks) of hit in nth CER
ULong_t GetSnarlMinTimeStamp() timestamp (FD ticks) of earliest snarl hit
ULong_t GetSnarlMaxTimeStamp() timestamp (FD ticks) of latest snarl hit
Int_t GetTofTDC0() TDC from TDC Chan 0(DS/MID TOF paddle)
Int_t GetTofTDC1() TDC from TDC Chan 1(not used)
Int_t GetTofTDC2() TDC from TDC Chan 2 (US TOF paddle)
Int_t GetTofADCn() ADC from nth(n=0,1,2) input of OEE1#1
Int_t GetTofADCTimeStampn() timestamp of hit on nth input of OEE
Int_t GetTofTimeStamp() timestamp on VARC lemo input
Int_t GetTickSinceLast() timestamps (FD ticks) since last triggered event
RawChanId GetCerenkovChanneln() RawChannelId of nth .
vector&   GetDeadChips()

The second utility provided in the CalDetSI package is a JobModule called Cutter. Cutter consists of a number of functions defined to facilitate the pre-analysis cuts that are made on the CalDet data to obtain a clean sample. The following table lists and describes the cuts that are defined in the Cutter package. Each cut can be toggled on or off in the job module macro by using the Cmd(``CutON(OFF) CntlString'') method of the JobModule. The table lists the cuts in the order they are applied and also lists the default configuration of the cuts. Cutter writes out the results of cuts to a root file. The name of the root file may be specified by using the Config capability of JobModules to set the parameter ``FileName''.

Table: Cut functions defined in Cutter. 2#2 indicates deprecated functions
  Fnct Prefix Ctrl String Hist Label Pass Requirement Default
1 Trigger TrigCut Trig 2/3 plane trigger ON
2 TOFTrig TOFTrig TOFTrig TOF coincidence OFF
3 Kov1Trig Kov1TrigCut Kov1Trig non-zero CER1 OFF
4 Kov2Trig Kov2TrigCut Kov2Trig non-zero CER2 OFF
5 Kov3Trig Kov3TrigCut Kov3Trig non-zero CER3 OFF
6 KovORTrig KovORTrigCut KovORTrig any non-zero CER OFF
7 AllKovTrig AllKovTrigCut AllKovTrig all CER non-zero OFF
8 PIDOrTrig PIDOrTrigCut PIDTrig Cut 2 or Cut 6 OFF
9 LITrig LITrigCut LITrig event is not LI ON
10 DeadChip DeadChipCut DC No dead chips below set plane ON
11 Kov   Kov CER ADC within set limit2#2 OFF
12 SparseError SparseErrCut SE No Sparsification Errors ON
13 FafError FafErrCut Faf No Faf Errors ON
14 OverShoot   OS No chips in overshoot period2#2 OFF
15 TOF TOFCut TOF Any TDC non-zero2#2 OFF
16 CosmicCounter CosmicCntCut Cos No Cosmic Cntr readout OFF
17 TrigPMT TriggerPMTCut PMT No Trigger PMT signal2#2 OFF
18 DeadKov   DK No dead CERs ON
19 NDError NDErrorCut NDE No QIE error bits set ON


Input Objects

Requires a RawRecord and a CandRecord The Cutter Module requires a CandCalDetSI

Output Objects

Produces a CandCalDetSI

Database Access

The special electronics channels reserved for particle identification, trigger information, and timing differences between the Far Detector and the Near Detector are identified in the PLEXRAWCHANNELREADOUTTYPE offline database table.

Each special channel has a readout type tag:-

  1. in the CalDetSI context refers to the downstream , which has a readout type tag of ``DSCER''.
  2. refers to the middle , which has a readout type tag of ``MIDCER''.
  3. refers to the upstream which has a readout type tag of ``USCER''.
Finally, the timestamp of one of the VARC input lemos is used as the time ``toftime''. It is identified in the PLEXRAWCHANNELREADOUTTYPE database table as ``TTIME''

Configuring & Running

CalDetSI requires no configuration. Each of the cuts in Cutter can be turned off and on. See table above for details. For an example of running and configuring both CalDetSI and Cutter, see uber-all.C

Further Links

Tricia Vahle Last Modified: $Date: 2004/05/27 17:50:37 $