titles_wpca
Titles: WPCA
============
Contact: J. Cameron, Oxford.
Revision History:-
================
3.02 J. Cameron First version
4.02 J. Cameron Add walk version 2
The bank number specifies which crate the calibrations are for.
The bank numbers run from 0-18.
Titles Files
------------
These are of the form wpca_yyyymmdd_hh.dat
or recently wpca_rrrrrrrrrr_yyyymmdd_hh.dat
Verification
------------
Description
-----------
Holds PCA walk information
Data Words
----------
Data types: B(bit), I, F, D(double), H(hollerith 4 char)
The banks consist of a header followed by the data.
No mnemonics have been defined.
For WPCA version 1:
-------------------
Header:
Word Type Description
---- ---- -----------
+1 I Crate number (duplicate of bank number)
+2 I Version number of bank.
+3 I Number of words per tube.
+4 I Number of interpolation points per tube.
+5 I Number of bits used for the packed time.
+6 I Factor by which the packed time has been multiplied.
+7 I Number of bits used for the packed charge.
+8 I Factor by which the packed charge has been multiplied.
+9 I Spare.
+10 I Spare.
Data:
offset = 10 + icons(lnk+3)*(icard*32+ichan)
Where 10 is the header size and icons(lnk+3) is the number
of words per tube.
Word Type Description
---- ---- -----------
offset+1 I Human readable word
100*tube_type + 10*status + quality
where tube_type can be
1- Normal PMT
2- OWL
3- Low Gain
4- Butt
5- Neck
6- Calibration
10- Spare
11- Invalid
status can be
0- fine
1- offline
2- zero occupancy
3- low occupancy
4- not enough ECA calibrated hits
and quality can be
0- no fit
1- good fit
2- ok fit
3- bad fit
offset+2 I First bit packed data point (given in order)
N bits Description
------ -----------
1 0-bad point
1-good point
1 sign of charge 0=- 1=+
Ntbits Integer packed charge
1 sign of time 0=- 1=+
Nqbits Integer packed time
offset+2+Npoints Gives the low and high charge walked times
N Bits Description
------ -----------
1 0-bad point
1-good point
1 sign of low q time 0=- 1=+
Ntbits Integer packed low q time
1 0-bad point
1-good point
1 sign of high q time 0=- 1=+
Ntbits Integer packed high q time
next tube...
For WPCA version 2:
-------------------
Header:
Word Type Description
---- ---- -----------
+1 I Crate number (duplicate of bank number)
+2 I Version number of bank.
+3 I Number of words in the header
+4 I Number of words per tube.
+5 I Number of interpolation points per tube.
+6 I =1 if DQID bank was found =0 otherwise
+7 I Offset to the DQID information
+8 I =1 if DQCR and DQCH were found =0 otherwise
+9 I Number of bits used for the packed charge.
+10 I Factor by which the packed charge has been multiplied.
+11 I Number of bits used for the packed time.
+12 I Factor by which the packed time has been multiplied.
+13 I Number of bits used for the packed intercept.
+14 I Factor by which the packed intercept has been multiplied.
+15 I Number of bits used for the packed gradient.
+16 I Factor by which the packed gradient has been multiplied.
+17 I Spare.
+18 I Spare.
+19 I Spare.
+20 I Spare.
DQIDs:
offset = icons(lnk+7) + 6*icard
The board IDs are in the same order as in the DQID bank
Data:
offset = icons(lnk+3) + icons(lnk+4)*(icard*32+ichan)
Word Type Description
---- ---- -----------
offset+1 I 100*tube_type + 10*tube_status + fit_quality
where tube_type can be
1- Normal PMT
2- OWL
3- Low Gain
4- Butt
5- Neck
6- Calibration
10- Spare
11- Invalid
status can be
0- fine
1- offline
2- zero occupancy
3- low occupancy
4- not enough ECA calibrated hits
and quality can be
0- no fit
1- good fit
2- no points
3- failed cut but good rms
4- bad rms
offset+2 Word indicating which cuts the channel failed
Bit 1 : failed rms
Bit 2 : failed tstep
Bit 3 : failed fout
Bit 4 : failed flate
offset+3 I First bit packed interpolation point
This number is unpacked by pca_wkv2_packer.for
N bits Description
------ -----------
1 0-bad point
1-good point
1 sign of charge 0=- 1=+
Nqbits Integer packed charge
1 sign of time 0=- 1=+
Ntbits Integer packed time
offset+3+Npoints Bit packed intercept and gradient at high charge
This number is unpacked by pca_wkv2_packer.for
N Bits Description
------ -----------
1 0-bad fit
1-good fit
1 sign of intercept 0=- 1=+
Nibits Integer packed intercept
1 sign of gradient 0=- 1=+
Nmbits Integer packed gradient
next tube...
Go Back to the
Snoman Companion Top Page