ant
A2 ant: class-based analysis framework
ant::Detector_t Struct Referenceabstract

The Detector_t struct is the minimal base class for all detectors. More...

#include <Detector_t.h>

+ Inheritance diagram for ant::Detector_t:

Classes

struct  Any_t
 
struct  Element_t
 
class  Exception
 

Public Types

enum  Type_t : std::uint8_t {
  Type_t::Trigger, Type_t::Tagger, Type_t::TaggerMicro, Type_t::EPT,
  Type_t::Moeller, Type_t::PairSpec, Type_t::CB, Type_t::PID,
  Type_t::MWPC0, Type_t::MWPC1, Type_t::TAPS, Type_t::TAPSVeto,
  Type_t::Cherenkov, Type_t::Raw
}
 
enum  ElementFlag_t {
  ElementFlag_t::Missing, ElementFlag_t::Broken, ElementFlag_t::BadTDC, ElementFlag_t::NoCalibFill,
  ElementFlag_t::NoCalibUseDefault
}
 
using ElementFlags_t = bitflag< ElementFlag_t, 16 >
 

Public Member Functions

virtual unsigned GetNChannels () const =0
 
virtual vec3 GetPosition (unsigned channel) const =0
 
virtual void SetElementFlags (unsigned channel, const ElementFlags_t &flags)=0
 
virtual const ElementFlags_tGetElementFlags (unsigned channel) const =0
 
virtual void SetElementFlag (ElementFlag_t flag, const std::vector< unsigned > &channels)
 
virtual bool HasElementFlags (unsigned channel, const ElementFlags_t &flags) const
 
virtual bool IsIgnored (unsigned channel) const
 
virtual ~Detector_t ()=default
 

Static Public Member Functions

static const char * ToString (const Type_t &type)
 
static Type_t FromString (const std::string &str)
 

Public Attributes

const Type_t Type
 

Protected Member Functions

 Detector_t (const Type_t &type)
 
 Detector_t (const Detector_t &)=delete
 

Friends

std::ostream & operator<< (std::ostream &stream, const Detector_t &o)
 

Detailed Description

The Detector_t struct is the minimal base class for all detectors.

Member Typedef Documentation

◆ ElementFlags_t

Member Enumeration Documentation

◆ ElementFlag_t

Enumerator
Missing 
Broken 
BadTDC 
NoCalibFill 
NoCalibUseDefault 

◆ Type_t

enum ant::Detector_t::Type_t : std::uint8_t
strong
Enumerator
Trigger 
Tagger 
TaggerMicro 
EPT 
Moeller 
PairSpec 
CB 
PID 
MWPC0 
MWPC1 
TAPS 
TAPSVeto 
Cherenkov 
Raw 

Constructor & Destructor Documentation

◆ ~Detector_t()

virtual ant::Detector_t::~Detector_t ( )
virtualdefault

◆ Detector_t() [1/2]

ant::Detector_t::Detector_t ( const Type_t type)
inlineexplicitprotected

◆ Detector_t() [2/2]

ant::Detector_t::Detector_t ( const Detector_t )
protecteddelete

Member Function Documentation

◆ FromString()

Detector_t::Type_t Detector_t::FromString ( const std::string &  str)
static

◆ GetElementFlags()

◆ GetNChannels()

◆ GetPosition()

◆ HasElementFlags()

bool Detector_t::HasElementFlags ( unsigned  channel,
const ElementFlags_t flags 
) const
virtual

◆ IsIgnored()

bool Detector_t::IsIgnored ( unsigned  channel) const
virtual

◆ SetElementFlag()

void Detector_t::SetElementFlag ( ElementFlag_t  flag,
const std::vector< unsigned > &  channels 
)
virtual

◆ SetElementFlags()

◆ ToString()

const char * ant::Detector_t::ToString ( const Type_t type)
static

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  stream,
const Detector_t o 
)
friend

Member Data Documentation

◆ Type

const Type_t ant::Detector_t::Type

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