NOvAInputDriverBase.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file NOvARawInputSource.cxx
3 /// \brief Source to convert raw binary files to root files
4 ///
5 /// \version $Id: NOvAInputDriverBase.cxx,v 1.19 2012-12-01 07:05:47 bckhouse Exp $
6 ////////////////////////////////////////////////////////////////////////
8 #include "NovaDAQConventions/DAQConventions.h"
9 
10 namespace daq2raw{
11 
12  //------------------------------------------------------------------------------
13  // Required constructor.
15  : fGDMLBase(gdmlBase)
16  {}
18 
19 
20 
21  //------------------------------------------------------------------------------
23 
24  // get the base form of the geometry file for the current detector
25  if(!fGDMLBase.empty()) return fGDMLBase;
26 
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";
38 
39  return detFileBase;
40  }
41 
42 
43 }// end of namespace
44 
std::string getDetectorGDML(const int detid) const
Far Detector at Ash River, MN.
NOvAInputDriverBase(std::string gdmlBase="")
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
A module to produce rawdata::RawDigits from NOvADDT DAQHits.
enum BeamMode string