Classes | Typedefs | Functions
daq2raw Namespace Reference

A module to produce rawdata::RawDigits from NOvADDT DAQHits. More...

Classes

class  BeamlineEvent
 
class  BeamlineEvents
 
struct  BeamlineFileIndex
 
class  BeamlineRawInputDriver
 
struct  BeamlineSpillIndex
 
struct  BeamlineTriggerIndex
 
class  BeamlineUnpack
 
class  DAQHit2Raw
 
class  NOvAInputDriverBase
 
class  NOvARawInputDriver
 
class  NOvASocketInputDriver
 
class  OnlineUnpack
 
class  SpillWrapper
 
class  TestBeamRawInputDriver
 
struct  UnpackedEvent
 

Typedefs

typedef art::Source< NOvARawInputDriverNOvARawInputSource
 
typedef art::Source< NOvASocketInputDriverNOvASocketInput
 
typedef art::Source< BeamlineRawInputDriverBeamlineRawInputSource
 
typedef art::Source< TestBeamRawInputDriverTestBeamRawInputSource
 

Functions

void parseFilename (std::string const &filename, std::string &address, std::string &port)
 
template<typename PROD >
std::string getBranchName (const art::InputTag &tag)
 Retrieves branch name where object resides, using art convention. More...
 
artdaq::Fragments * getFragments (TBranch *br, unsigned entry)
 

Detailed Description

A module to produce rawdata::RawDigits from NOvADDT DAQHits.

Author
Gavin S. Davies - gsdav.nosp@m.ies@.nosp@m.iasta.nosp@m.te.e.nosp@m.du
Date
March 14 2013

Typedef Documentation

Definition at line 15 of file BeamlineRawInputSource_source.cc.

Definition at line 16 of file NOvARawInputSource_source.cc.

Definition at line 16 of file NOvASocketInput_source.cc.

Definition at line 15 of file TestBeamRawInputSource_source.cc.

Function Documentation

template<typename PROD >
std::string daq2raw::getBranchName ( const art::InputTag tag)

Retrieves branch name where object resides, using art convention.

Definition at line 51 of file BeamlineUnpack.h.

References getBrightness::br, HTMLTools::entry(), art::TypeID::friendlyClassName(), getFragments(), art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().

51  {
52  std::ostringstream oss;
53  oss << art::TypeID(typeid(PROD)).friendlyClassName()
54  << '_'
55  << tag.label()
56  << '_'
57  << tag.instance()
58  << '_'
59  << tag.process()
60  << ".obj";
61  return oss.str();
62  }
std::string friendlyClassName() const
std::string const & process() const noexcept
Definition: InputTag.h:67
std::string const & instance() const noexcept
Definition: InputTag.h:60
std::string const & label() const noexcept
Definition: InputTag.h:55
artdaq::Fragments * daq2raw::getFragments ( TBranch *  br,
unsigned  entry 
)
void daq2raw::parseFilename ( std::string const &  filename,
std::string address,
std::string port 
)

Parse a string (the "filename") to yield an address and a port. The "filename" is expected to have the form <address>:<port>, where neither address nor port contain a colon.

Definition at line 49 of file NOvASocketInputDriver.cxx.

References naming_schema::components, art::errors::Configuration, and cet::split().

Referenced by daq2raw::NOvASocketInputDriver::readFile().

52  {
53  std::vector<std::string> components;
54  cet::split(filename, ':', std::back_inserter(components));
55  if (components.size() != 2)
56  {
58  << "Bad socket address in NOvASocketDriver: "
59  << filename
60  << "\n";
61  }
62  address = components[0];
63  port = components[1];
64  }
dictionary components
string filename
Definition: shutoffs.py:106
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
void split(std::string const &s, char c, OutIter dest)
Definition: split.h:35
int port
Definition: client_test.C:9