|
ant
A2 ant: class-based analysis framework
|
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_t & | GetElementFlags (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) |
The Detector_t struct is the minimal base class for all detectors.
| using ant::Detector_t::ElementFlags_t = bitflag<ElementFlag_t, 16> |
|
strong |
|
strong |
|
virtualdefault |
|
inlineexplicitprotected |
|
protecteddelete |
|
static |
|
pure virtual |
Implemented in TestDetector_t, ant::expconfig::detector::Trigger, ant::expconfig::detector::TAPS, ant::expconfig::detector::CB, ant::expconfig::detector::Tagger, ant::expconfig::detector::Cherenkov, ant::expconfig::detector::EPT, ant::expconfig::detector::PID, and ant::expconfig::detector::TAPSVeto.
|
pure virtual |
Implemented in TestDetector_t, ant::expconfig::detector::TAPS, ant::expconfig::detector::Trigger, ant::expconfig::detector::CB, ant::expconfig::detector::Tagger, ant::expconfig::detector::Cherenkov, ant::expconfig::detector::EPT, ant::expconfig::detector::PID, and ant::expconfig::detector::TAPSVeto.
|
pure virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in TestDetector_t, ant::expconfig::detector::TAPS, ant::expconfig::detector::CB, ant::expconfig::detector::Trigger, ant::expconfig::detector::Tagger, ant::expconfig::detector::Cherenkov, ant::expconfig::detector::EPT, ant::expconfig::detector::PID, and ant::expconfig::detector::TAPSVeto.
|
static |
|
friend |
| const Type_t ant::Detector_t::Type |