Difference between revisions of "Verfication of Mother/Daughter Occupancy"
(39 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
=Detector Banks= | =Detector Banks= | ||
{| border=1 | {| border=1 | ||
Line 19: | Line 18: | ||
|- | |- | ||
| 1002 | | 1002 | ||
− | | 0 | + | | 0 (11 sub banks) |
| [[ftof_p1a:Integrated Digitized Bank]] | | [[ftof_p1a:Integrated Digitized Bank]] | ||
|- | |- | ||
Line 80: | Line 79: | ||
|} | |} | ||
+ | =EVIO to ROOT= | ||
+ | <pre> | ||
+ | ~/src/CLAS/evioRoot/bin/evio2root Molr.evio Molr.root 1 | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | EVIO 2 ROOT Convertor for CLAS12 | ||
+ | |||
+ | *************************************************************** | ||
+ | * Initializing EvioFileReader library implementing interface * | ||
+ | *************************************************************** | ||
+ | ***** OPENED FILE : Molr.evio NEVENT = 3 | ||
+ | # of Generated Particles = 2 | ||
+ | pid px py pz vx vy vz | ||
+ | 11 2.53564 0.00000 5.43788 0.00000 0.00000 0.00000 | ||
+ | 11 -2.53564 0.00000 5.43788 0.00000 0.00000 0.00000 | ||
+ | # of Reconstructed Particles = 0 | ||
+ | pid status charge px py pz vx vy vz | ||
+ | # of hits = 74 | ||
+ | processed 1 events | ||
+ | </pre> | ||
+ | |||
+ | =Verify with txt output= | ||
+ | |||
+ | ==Sectors== | ||
+ | |||
+ | ===Root=== | ||
+ | |||
+ | <center>[[File:DC_SECTORS_ROOT.png]]</center> | ||
+ | |||
+ | ===Txt=== | ||
+ | Using the line: | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/4/,"") "\t" NR}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | Using the fact that the 472 line of the Molr.txt file corresponds to the sector number, we can find: | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-1==472{print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | This gives us the number of times hit were detected in sector 4 as: | ||
+ | <pre> | ||
+ | 37 | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | Similarly, for Sector number 1: | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | Using the fact that the 472 line of the Molr.txt file corresponds to the sector number, we can find: | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-1==4712print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | This gives us the number of times hit were detected in sector 1 as: | ||
+ | <pre> | ||
+ | 39 | ||
+ | </pre> | ||
+ | Accounting for the two occurances of "1" in the line header (1302,1) representing the bank and subbank, we find that there are | ||
+ | <pre> | ||
+ | 37 | ||
+ | </pre> | ||
+ | |||
+ | This gives the total number of hits as 74 as expected. | ||
+ | |||
+ | ==Superlayers== | ||
+ | ===Root=== | ||
+ | <center>[[File:DC_SUPERLAYERS_ROOT.png]]</center> | ||
+ | |||
+ | ===Txt=== | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-1==473{print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | 13 | ||
+ | </pre> | ||
+ | Accounting for the 1 within the header (1302,2), we find 12 | ||
+ | |||
+ | Using similar expressions for the remaining superlayers, and accounting for numbers which appear in the header (1302,2): | ||
+ | |||
+ | |||
+ | <center> | ||
+ | {| border=1 | center | ||
+ | |+ Numbers of Superlayer Hits | ||
+ | |- | ||
+ | ! Superlayer | ||
+ | ! Count | ||
+ | ! Adjusted Count | ||
+ | |- | ||
+ | | 1 | ||
+ | | 13 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 2 | ||
+ | | 14 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 3 | ||
+ | | 13 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 4 | ||
+ | | 12 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 5 | ||
+ | | 13 | ||
+ | | 13 | ||
+ | |- | ||
+ | | 6 | ||
+ | | 13 | ||
+ | | 13 | ||
+ | |} | ||
+ | </center> | ||
+ | This verifies the Superlayer counts. | ||
+ | |||
+ | ==Layers== | ||
+ | ===Root=== | ||
+ | <center>[[File:DC_LAYERS_ROOT.png]]</center> | ||
+ | |||
+ | ===Txt=== | ||
+ | Using the line: | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | Using the fact that the 474 line of the Molr.txt file corresponds to the layer number, we can find: | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-1==474{print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | This gives us the number of times hit were detected in layer 1 as: | ||
+ | <pre> | ||
+ | 14 | ||
+ | </pre> | ||
+ | Accounting for the header (1302,3), this count becomes | ||
+ | |||
+ | <pre> | ||
+ | 13 | ||
+ | </pre> | ||
+ | |||
+ | Similarly, for layers 2-6: | ||
+ | <center> | ||
+ | {| border=1 | center | ||
+ | |+ Numbers of Layer Hits | ||
+ | |- | ||
+ | ! Layer | ||
+ | ! Count | ||
+ | ! Adjusted Count | ||
+ | |- | ||
+ | | 1 | ||
+ | | 14 | ||
+ | | 13 | ||
+ | |- | ||
+ | | 2 | ||
+ | | 14 | ||
+ | | 13 | ||
+ | |- | ||
+ | | 3 | ||
+ | | 14 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 4 | ||
+ | | 12 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 5 | ||
+ | | 12 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 6 | ||
+ | | 12 | ||
+ | | 12 | ||
+ | |} | ||
+ | </center> | ||
+ | This verifies the layer counts. | ||
+ | |||
+ | ==Wires== | ||
+ | ===Root=== | ||
+ | <center>[[File:DC_WIRE_ROOT.png]]</center> | ||
+ | |||
+ | ===Txt=== | ||
+ | Using the line: | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/52/,"") "\t" NR}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | Using the fact that the 475 line of the Molr.txt file corresponds to the wire number, we can find: | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-1==475{print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | This gives us the number of times hit were detected in wire 52 as: | ||
+ | <pre> | ||
+ | 5 | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | Similarly, for wires 53-60: | ||
+ | <center> | ||
+ | {| border=1 | center | ||
+ | |+ Numbers of Wire Hits | ||
+ | |- | ||
+ | ! Wire | ||
+ | ! Count | ||
+ | ! Adjusted Count | ||
+ | |- | ||
+ | | 52 | ||
+ | | 5 | ||
+ | | 5 | ||
+ | |- | ||
+ | | 53 | ||
+ | | 8 | ||
+ | | 8 | ||
+ | |- | ||
+ | | 54 | ||
+ | | 12 | ||
+ | | 12 | ||
+ | |- | ||
+ | | 55 | ||
+ | | 1 | ||
+ | | 1 | ||
+ | |- | ||
+ | | 56 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 57 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 58 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 59 | ||
+ | | 24 | ||
+ | | 24 | ||
+ | |- | ||
+ | | 60 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 61 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 62 | ||
+ | | 0 | ||
+ | | 0 | ||
+ | |- | ||
+ | | 63 | ||
+ | | 24 | ||
+ | | 24 | ||
+ | |} | ||
+ | </center> | ||
+ | This verifies the wire counts. | ||
+ | |||
+ | =Visual Conformation= | ||
+ | |||
+ | Using: | ||
+ | <pre> | ||
+ | ~/src/CLAS/coatjava-2.4/bin/run-groovy dcStudies.groovy Molr.evio | ||
+ | </pre> | ||
+ | |||
+ | [[File:Dc_debug.png]] | ||
+ | |||
+ | =References= | ||
DC: Drift Chambers[https://www.jlab.org/Hall-B/clas12-web/specs/dc.pdf (specs)] | DC: Drift Chambers[https://www.jlab.org/Hall-B/clas12-web/specs/dc.pdf (specs)] | ||
Line 85: | Line 364: | ||
EC/PCAL:Electron Calorimeters[https://www.jlab.org/Hall-B/clas12-web/specs/pcal.pdf (specs) ] | EC/PCAL:Electron Calorimeters[https://www.jlab.org/Hall-B/clas12-web/specs/pcal.pdf (specs) ] | ||
+ | |||
+ | =Links= | ||
+ | |||
+ | [[DV_RunGroupC_Moller#Verfication_of_Mother.2FDaughter_Occupancy|Back]] |
Latest revision as of 16:37, 1 August 2016
Detector Banks
Bank Number | Sub Bank Number | Purpose |
---|---|---|
ftof_p1a | ||
1000 | 0 | Bank Header |
1001 | 0 (26 sub banks) | ftof_p1a: Integrated True Info Back Header |
1002 | 0 (11 sub banks) | ftof_p1a:Integrated Digitized Bank |
ftof_p1b | ||
1100 | 0 | Bank Header |
1101 | 0 (26 sub banks) | ftof_p1b Integrated True Info Back Header |
1102 | 0 | ftof_p1b:Integrated Digitized Bank |
dc | ||
1300 | 0 | Bank Header |
1301 | 0 (26 sub banks) | dc: Integrated True Info Back Header |
1302 | 0 | dc:Integrated Digitized Bank |
pcal | ||
1500 | 0 | Bank Header |
1501 | 0 (26 sub banks) | pcal: Integrated True Info Back Header |
1502 | 0 | pcal:Integrated Digitized Bank |
ec | ||
1600 | 0 | Bank Header |
1601 | 0 (26 sub banks) | ec: Integrated True Info Back Header |
1602 | 0 | ec:Integrated Digitized Bank |
EVIO to ROOT
~/src/CLAS/evioRoot/bin/evio2root Molr.evio Molr.root 1
EVIO 2 ROOT Convertor for CLAS12 *************************************************************** * Initializing EvioFileReader library implementing interface * *************************************************************** ***** OPENED FILE : Molr.evio NEVENT = 3 # of Generated Particles = 2 pid px py pz vx vy vz 11 2.53564 0.00000 5.43788 0.00000 0.00000 0.00000 11 -2.53564 0.00000 5.43788 0.00000 0.00000 0.00000 # of Reconstructed Particles = 0 pid status charge px py pz vx vy vz # of hits = 74 processed 1 events
Verify with txt output
Sectors
Root
Txt
Using the line:
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/4/,"") "\t" NR}' Molr.txt > temp.dat
Using the fact that the 472 line of the Molr.txt file corresponds to the sector number, we can find:
awk 'NR-1==472{print $1}' temp.dat
This gives us the number of times hit were detected in sector 4 as:
37
Similarly, for Sector number 1:
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat
Using the fact that the 472 line of the Molr.txt file corresponds to the sector number, we can find:
awk 'NR-1==4712print $1}' temp.dat
This gives us the number of times hit were detected in sector 1 as:
39
Accounting for the two occurances of "1" in the line header (1302,1) representing the bank and subbank, we find that there are
37
This gives the total number of hits as 74 as expected.
Superlayers
Root
Txt
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat
awk 'NR-1==473{print $1}' temp.dat
13
Accounting for the 1 within the header (1302,2), we find 12
Using similar expressions for the remaining superlayers, and accounting for numbers which appear in the header (1302,2):
Superlayer | Count | Adjusted Count |
---|---|---|
1 | 13 | 12 |
2 | 14 | 12 |
3 | 13 | 12 |
4 | 12 | 12 |
5 | 13 | 13 |
6 | 13 | 13 |
This verifies the Superlayer counts.
Layers
Root
Txt
Using the line:
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR}' Molr.txt > temp.dat
Using the fact that the 474 line of the Molr.txt file corresponds to the layer number, we can find:
awk 'NR-1==474{print $1}' temp.dat
This gives us the number of times hit were detected in layer 1 as:
14
Accounting for the header (1302,3), this count becomes
13
Similarly, for layers 2-6:
Layer | Count | Adjusted Count |
---|---|---|
1 | 14 | 13 |
2 | 14 | 13 |
3 | 14 | 12 |
4 | 12 | 12 |
5 | 12 | 12 |
6 | 12 | 12 |
This verifies the layer counts.
Wires
Root
Txt
Using the line:
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/52/,"") "\t" NR}' Molr.txt > temp.dat
Using the fact that the 475 line of the Molr.txt file corresponds to the wire number, we can find:
awk 'NR-1==475{print $1}' temp.dat
This gives us the number of times hit were detected in wire 52 as:
5
Similarly, for wires 53-60:
Wire | Count | Adjusted Count |
---|---|---|
52 | 5 | 5 |
53 | 8 | 8 |
54 | 12 | 12 |
55 | 1 | 1 |
56 | 0 | 0 |
57 | 0 | 0 |
58 | 0 | 0 |
59 | 24 | 24 |
60 | 0 | 0 |
61 | 0 | 0 |
62 | 0 | 0 |
63 | 24 | 24 |
This verifies the wire counts.
Visual Conformation
Using:
~/src/CLAS/coatjava-2.4/bin/run-groovy dcStudies.groovy Molr.evio
References
DC: Drift Chambers(specs)
FTOF: Forward Time of Flight(specs)(Manual)
EC/PCAL:Electron Calorimeters(specs)