Difference between revisions of "Verfication of Mother/Daughter Occupancy"
Jump to navigation
Jump to search
![DC SECTORS ROOT.png](/./images/d/d3/DC_SECTORS_ROOT.png)
![DC SUPERLAYERS ROOT.png](/./images/5/5f/DC_SUPERLAYERS_ROOT.png)
![DC LAYERS ROOT.png](/./images/4/44/DC_LAYERS_ROOT.png)
![DC WIRE ROOT.png](/./images/d/d6/DC_WIRE_ROOT.png)
(→Root) |
(→Txt) |
||
Line 154: | Line 154: | ||
===Txt=== | ===Txt=== | ||
+ | <pre> | ||
+ | awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR-1}' Molr.txt > temp.dat | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | awk 'NR-2==473{print $1}' temp.dat | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | 14 | ||
+ | </pre> | ||
==Layers== | ==Layers== |
Revision as of 05:48, 26 July 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
![DC SECTORS ROOT.png](/./images/d/d3/DC_SECTORS_ROOT.png)
Txt
Using the line:
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/4/,"") "\t" NR-1}' Molr.txt > temp.dat
Using the fact that the 471 line of the Molr.txt file corresponds to the sector number, we can find:
awk 'NR-2==471{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-1}' Molr.txt > temp.dat
Using the fact that the 471 line of the Molr.txt file corresponds to the sector number, we can find:
awk 'NR-2==471{print $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
![DC SUPERLAYERS ROOT.png](/./images/5/5f/DC_SUPERLAYERS_ROOT.png)
Txt
awk -F'|' 'BEGIN{print "count", "lineNum"}{print gsub(/1/,"") "\t" NR-1}' Molr.txt > temp.dat
awk 'NR-2==473{print $1}' temp.dat
14
Layers
Root
![DC LAYERS ROOT.png](/./images/4/44/DC_LAYERS_ROOT.png)
Txt
Wires
Root
![DC WIRE ROOT.png](/./images/d/d6/DC_WIRE_ROOT.png)
Txt
References
DC: Drift Chambers(specs)
FTOF: Forward Time of Flight(specs)(Manual)
EC/PCAL:Electron Calorimeters(specs)