Public Member Functions | List of all members
novaddt::utils::_detail::FDUtil Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-11/DDTUtilities/DetectorUtils.h"

Inheritance diagram for novaddt::utils::_detail::FDUtil:
novaddt::utils::_detail::VirtualDetUtil

Public Member Functions

double GetPigtail (const DAQHit &) const
 
double GetDCMoffset (const DAQHit &) const
 
double GetCellLength (const novaddt::View &) const
 

Detailed Description

Definition at line 26 of file DetectorUtils.h.

Member Function Documentation

double novaddt::utils::_detail::FDUtil::GetCellLength ( const novaddt::View ) const
inlinevirtual

Implements novaddt::utils::_detail::VirtualDetUtil.

Definition at line 30 of file DetectorUtils.h.

31  {
32  return 1560;
33  }
double _detail::FDUtil::GetDCMoffset ( const DAQHit hit) const
virtual

Implements novaddt::utils::_detail::VirtualDetUtil.

Definition at line 36 of file DetectorUtils.cxx.

References novaddt::DAQHit::Cell(), and novaddt::Cell::val.

37 {
38  return (hit.Cell().val/64)*40.;
39 }
Definition: structs.h:12
double _detail::FDUtil::GetPigtail ( const DAQHit hit) const
virtual

methods for FarDet

Implements novaddt::utils::_detail::VirtualDetUtil.

Definition at line 9 of file DetectorUtils.cxx.

References novaddt::DAQHit::Cell(), novaddt::Cell::val, novaddt::View::val, novaddt::DAQHit::View(), and daqchannelmap::X_VIEW.

10 {
11  auto cellid = hit.Cell().val;
12  //NOTE: Do we think 32 cells per module can ever change
13  //This number can be found in DAQChannelMap but did not want to add that
14  //dependancy to geometry unless needed.
15  const int kCellsPerModule = 32;
16  cellid = cellid % kCellsPerModule;
17  // In vertical planes, high cell numbers have longer fibres.
18  // In horizontal planes it's the opposite, so flip it round.
19  if(hit.View().val == daqchannelmap::X_VIEW)
20  cellid = kCellsPerModule-cellid-1;
21 
22  // This should really never happen, but just to be safe...
23  if(cellid < 0 || cellid >= kCellsPerModule) return 100;
24  // Email from Tom Chase 2011-04-29
25  // NB: this isn't just a ~3.8cm change per cell. Every 8 cells something
26  // different happens.
27  const double kPigtails[kCellsPerModule] = {
28  34.5738, 38.4379, 42.3020, 46.1660, 50.0301, 53.8942, 57.7582, 61.6223,
29  64.7504, 68.6144, 72.4785, 76.3426, 80.2067, 84.0707, 87.9348, 91.0790,
30  95.3301, 99.1941, 103.058, 106.922, 110.786, 114.650, 118.514, 122.379,
31  125.507, 129.371, 133.235, 137.099, 140.963, 144.827, 148.691, 150.751
32  };
33  return kPigtails[cellid];
34 }
Identifier for the X measuring view of the detector (top)
Definition: structs.h:12

The documentation for this class was generated from the following files: