Make a DWC collection with DWC processor.
<execute> <processor name="myDWCProcessor"/> </execute> <processor name="myDWCProcessor" type="DWCProcessor"> <parameter name="InputCollectionNameBIF" type="string"> BIFData </parameter> <parameter name="OutputCollectionNameDWC" type="string"> DWCData </parameter> <parameter name="InputFileNameBIF" type="string"> /pnfs/desy.de/calice/tb-cern/native/cernAhcalMay2018/BifRaw/Electron/n60GeV/PP/bifraw-run060520__14p05p2018__15p39p28.raw </parameter> <parameter name="InputFileNameAHCAL" type="string"> /pnfs/desy.de/calice/tb-cern/native/cernAhcalMay2018/AhcalRaw/Electron/n60GeV/PP/ahcalRaw_Run060520__14p05p2018__15p39p28.raw </parameter> <parameter name="InputFileNameDWC" type="string"> /pnfs/desy.de/calice/tb-cern/native/cernAhcalMay2018/DWC/root/dwc_run_520.root </parameter> </processor>
Five Parameters:
- InputCollectionNameBIF
The name of input BIF collection. The one created by Event Builder. - OutputCollectionNameDWC
The name of output DWC Collection. - InputFileNameBIF
The full path of the BIF raw file corresponding to the processing run. - InputFileNameAHCAL
The full path of the AHCAL raw file corresponding to the processing run. - InputFileNameDWC
The full path of the DWC root file corresponding to the processing run.
The output collection created by the DWC processor contains 4 float values: segment x/y, slope x/y (mm).
Root tree writer.
<processor name="HcalRootTreeWriter_HCAL" type="RootTreeWriter"> <parameter name="DwcWriteEngine_enable" type="int"> 1 </parameter> <parameter name="DwcWriteEngine_prefix" type="string"> dwc_ </parameter> <parameter name="DwcWriteEngine_InCol" type="string"> DWCData </parameter> </processor>
DWC write engine writes down 5 branches.
- nTrack
The number of tracks associated to the event. - segmentX / segmentY
The x and y position where the beam incident in the detector (mm).The position zero is at the center of DWC, not the AHCAL.
- slopeX / slopeY
The slope of the track as the z increases.
The track is written as
x = \mathrm{segmentX} + \mathrm{slopeX} \times z\\ y = \mathrm{segmentY} + \mathrm{slopeY} \times z |
Event display with track.
<processor name="MyEventDisplayProcessor" type="DEHEventDisplayProcessor"> ... ... <parameter name="InputCollectionNameDWC" type="String"> DWCData </parameter> <parameter name="track_Draw" type="int"> 1 </parameter> <parameter name="trackOffsets" type="int"> -17.3896 23.8753 </parameter> </processor>
Parameter trackOffsets can be derived by fitting ahc_cogX : dwc_segmentX plot with linear function.