ant
A2 ant: class-based analysis framework
ant::expconfig::detector::CB Struct Reference

#include <CB.h>

+ Inheritance diagram for ant::expconfig::detector::CB:
+ Collaboration diagram for ant::expconfig::detector::CB:

Classes

struct  Element_t
 

Public Member Functions

 CB ()
 
virtual vec3 GetPosition (unsigned channel) const override
 
virtual double GetInnerRadius () const
 
virtual unsigned GetNChannels () const override
 
virtual void SetElementFlags (unsigned channel, const ElementFlags_t &flags) override
 
virtual const ElementFlags_tGetElementFlags (unsigned channel) const override
 
virtual bool IsHole (unsigned channel) const
 
virtual void BuildMappings (std::vector< hit_mapping_t > &, std::vector< scaler_mapping_t > &) const override
 
virtual const ClusterDetector_t::Element_tGetClusterElement (unsigned channel) const override
 
- Public Member Functions inherited from ant::Detector_t
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
 

Protected Member Functions

void SetTouchesHoleOfNeighbours (unsigned hole)
 
- Protected Member Functions inherited from ant::ClusterDetector_t
 ClusterDetector_t (const Type_t &type)
 
- Protected Member Functions inherited from ant::Detector_t
 Detector_t (const Type_t &type)
 
 Detector_t (const Detector_t &)=delete
 
- Protected Member Functions inherited from ant::UnpackerAcquConfig
 ~UnpackerAcquConfig ()=default
 

Protected Attributes

std::vector< Element_telements
 

Static Protected Attributes

static const std::vector< Element_telements_init
 

Additional Inherited Members

- Public Types inherited from ant::Detector_t
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 >
 
- Static Public Member Functions inherited from ant::Detector_t
static const char * ToString (const Type_t &type)
 
static Type_t FromString (const std::string &str)
 
- Public Attributes inherited from ant::Detector_t
const Type_t Type
 

Constructor & Destructor Documentation

◆ CB()

CB::CB ( )

Member Function Documentation

◆ BuildMappings()

void CB::BuildMappings ( std::vector< hit_mapping_t > &  hit_mappings,
std::vector< scaler_mapping_t > &   
) const
overridevirtual

◆ GetClusterElement()

virtual const ClusterDetector_t::Element_t* ant::expconfig::detector::CB::GetClusterElement ( unsigned  channel) const
inlineoverridevirtual

◆ GetElementFlags()

virtual const ElementFlags_t& ant::expconfig::detector::CB::GetElementFlags ( unsigned  channel) const
inlineoverridevirtual

Implements ant::Detector_t.

◆ GetInnerRadius()

virtual double ant::expconfig::detector::CB::GetInnerRadius ( ) const
inlinevirtual

◆ GetNChannels()

virtual unsigned ant::expconfig::detector::CB::GetNChannels ( ) const
inlineoverridevirtual

Implements ant::Detector_t.

◆ GetPosition()

virtual vec3 ant::expconfig::detector::CB::GetPosition ( unsigned  channel) const
inlineoverridevirtual

Implements ant::Detector_t.

◆ IsHole()

bool CB::IsHole ( unsigned  channel) const
virtual

◆ SetElementFlags()

void CB::SetElementFlags ( unsigned  channel,
const ElementFlags_t flags 
)
overridevirtual

Implements ant::Detector_t.

◆ SetTouchesHoleOfNeighbours()

void CB::SetTouchesHoleOfNeighbours ( unsigned  hole)
protected

Member Data Documentation

◆ elements

std::vector<Element_t> ant::expconfig::detector::CB::elements
protected

◆ elements_init

const std::vector< ant::expconfig::detector::CB::Element_t > ant::expconfig::detector::CB::elements_init
staticprotected

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