Public Member Functions | Protected Member Functions | Private Attributes | List of all members
daq2raw::NOvAInputDriverBase Class Reference

#include "/cvmfs/"

Inheritance diagram for daq2raw::NOvAInputDriverBase:
daq2raw::DAQHit2Raw daq2raw::NOvARawInputDriver daq2raw::NOvASocketInputDriver daq2raw::TestBeamRawInputDriver

Public Member Functions

 NOvAInputDriverBase (std::string gdmlBase="")
virtual ~NOvAInputDriverBase ()

Protected Member Functions

std::string getDetectorGDML (const int detid) const

Private Attributes

std::string fGDMLBase

Detailed Description

Definition at line 14 of file NOvAInputDriverBase.h.

Constructor & Destructor Documentation

daq2raw::NOvAInputDriverBase::NOvAInputDriverBase ( std::string  gdmlBase = "")

Definition at line 14 of file NOvAInputDriverBase.cxx.

15  : fGDMLBase(gdmlBase)
16  {}
daq2raw::NOvAInputDriverBase::~NOvAInputDriverBase ( )

Definition at line 17 of file NOvAInputDriverBase.cxx.

17 {}

Member Function Documentation

std::string daq2raw::NOvAInputDriverBase::getDetectorGDML ( const int  detid) const

Definition at line 22 of file NOvAInputDriverBase.cxx.

References fGDMLBase, novadaq::cnv::kFARDET, novadaq::cnv::kNDOS, novadaq::cnv::kNEARDET, novadaq::cnv::kTESTBEAM, and string.

Referenced by daq2raw::DAQHit2Raw::beginRun(), daq2raw::NOvARawInputDriver::readNext(), daq2raw::NOvASocketInputDriver::readNext(), and daq2raw::TestBeamRawInputDriver::readNext().

22  {
24  // get the base form of the geometry file for the current detector
25  if(!fGDMLBase.empty()) return fGDMLBase;
27  //\todo at some point we should query a database to get this, especially
28  //\todo when we have instances of only part of a detector working
29  std::string detFileBase("");
30  if (detid == novadaq::cnv::kNDOS)
31  detFileBase = "ndos-2x3-4block_nomc-xtru-vacuum";
32  else if (detid == novadaq::cnv::kNEARDET)
33  detFileBase = "neardet-3x3-8block-xtru-vacuum-stagger";
34  else if(detid == novadaq::cnv::kFARDET)
35  detFileBase = "fardet-12x12-28block-xtru-vacuum-stagger-pivoter";
36  else if(detid == novadaq::cnv::kTESTBEAM)
37  detFileBase = "testbeam-2x2-2block-xtru-vacuum-stagger";
39  return detFileBase;
40  }
Far Detector at Ash River, MN.
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
enum BeamMode string

Member Data Documentation

std::string daq2raw::NOvAInputDriverBase::fGDMLBase

Definition at line 24 of file NOvAInputDriverBase.h.

Referenced by getDetectorGDML().

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