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:

  1. InputCollectionNameBIF
    The name of input BIF collection. The one created by Event Builder.
  2. OutputCollectionNameDWC
    The name of output DWC Collection.
  3. InputFileNameBIF
    The full path of the BIF raw file corresponding to the processing run.
  4. InputFileNameAHCAL
    The full path of the AHCAL raw file corresponding to the processing run.
  5. 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.

  1. nTrack
    The number of tracks associated to the event.
  2. 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. (警告)
  3. 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.


  • No labels