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

#include <Detector_t.h>

+ Inheritance diagram for ant::TaggerDetector_t:
+ Collaboration diagram for ant::TaggerDetector_t:

Classes

struct  Element_t
 
struct  taggeff_t
 The taggeff_t struct provides the tagging efficiency data format. More...
 

Public Member Functions

virtual double GetPhotonEnergy (unsigned channel) const =0
 
bool TryGetChannelFromPhoton (double photonEnergy, unsigned &channel) const
 
virtual double GetPhotonEnergyWidth (unsigned channel) const
 GetPhotonEnergyWidth. More...
 
virtual vec3 GetPosition (unsigned) const final
 
- Public Member Functions inherited from ant::Detector_t
virtual unsigned GetNChannels () 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
 

Protected Member Functions

 TaggerDetector_t (const Type_t &type, double beamEnergy)
 
- Protected Member Functions inherited from ant::Detector_t
 Detector_t (const Type_t &type)
 
 Detector_t (const Detector_t &)=delete
 

Protected Attributes

double BeamEnergy
 

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

◆ TaggerDetector_t()

ant::TaggerDetector_t::TaggerDetector_t ( const Type_t type,
double  beamEnergy 
)
inlineprotected

Member Function Documentation

◆ GetPhotonEnergy()

virtual double ant::TaggerDetector_t::GetPhotonEnergy ( unsigned  channel) const
pure virtual

◆ GetPhotonEnergyWidth()

double TaggerDetector_t::GetPhotonEnergyWidth ( unsigned  channel) const
virtual

GetPhotonEnergyWidth.

Parameters
channel
Returns
Width of channel in MeV

Calculates the with from the distance to the neighbor channels. Override if this is not what you want for your tagger.

Note
Only works for taggers with more than one channel.

Reimplemented in ant::expconfig::detector::Tagger.

◆ GetPosition()

virtual vec3 ant::TaggerDetector_t::GetPosition ( unsigned  ) const
inlinefinalvirtual

Implements ant::Detector_t.

◆ TryGetChannelFromPhoton()

bool TaggerDetector_t::TryGetChannelFromPhoton ( double  photonEnergy,
unsigned &  channel 
) const

Member Data Documentation

◆ BeamEnergy

double ant::TaggerDetector_t::BeamEnergy
protected

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