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

#include <TAPSVeto.h>

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

Classes

struct  BaF2_Element_t
 
struct  PbWO4_Element_t
 

Public Member Functions

virtual vec3 GetPosition (unsigned channel) const override
 
virtual unsigned GetNChannels () const override
 
virtual void SetElementFlags (unsigned channel, const ElementFlags_t &flags) override
 
virtual const ElementFlags_tGetElementFlags (unsigned channel) const override
 
virtual void BuildMappings (std::vector< hit_mapping_t > &, std::vector< scaler_mapping_t > &) const override
 
virtual double GetZPosition () const
 GetZPosition distance of front face from center of target. More...
 
double GetElementDiameter () const
 Get a rough diameter containing the veto element. More...
 
bool IsPbWO4 (const unsigned channel) const
 
- 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 Types

using TAPSVeto_Element_t = Detector_t::Element_t
 

Protected Member Functions

 TAPSVeto (bool cherenkovInstalled, bool pizzaInstalled, const std::vector< BaF2_Element_t > &BaF2s, const std::vector< PbWO4_Element_t > &PbWO4s)
 
- 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
 

Static Protected Attributes

static constexpr unsigned NSectors = 6
 

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
 

Member Typedef Documentation

◆ TAPSVeto_Element_t

Constructor & Destructor Documentation

◆ TAPSVeto()

ant::expconfig::detector::TAPSVeto::TAPSVeto ( bool  cherenkovInstalled,
bool  pizzaInstalled,
const std::vector< BaF2_Element_t > &  BaF2s,
const std::vector< PbWO4_Element_t > &  PbWO4s 
)
inlineprotected

Member Function Documentation

◆ BuildMappings()

void TAPSVeto::BuildMappings ( std::vector< hit_mapping_t > &  hit_mappings,
std::vector< scaler_mapping_t > &   
) const
overridevirtual
Todo:
Provide switch to use sensitive/non-sensitive?

Implements ant::UnpackerAcquConfig.

◆ GetElementDiameter()

double ant::expconfig::detector::TAPSVeto::GetElementDiameter ( ) const
inline

Get a rough diameter containing the veto element.

Returns
diameter in cm
Note
Roughly estimated by looking at a dummy TAPS element

◆ GetElementFlags()

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

Implements ant::Detector_t.

◆ GetNChannels()

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

Implements ant::Detector_t.

◆ GetPosition()

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

Implements ant::Detector_t.

◆ GetZPosition()

double TAPSVeto::GetZPosition ( ) const
virtual

GetZPosition distance of front face from center of target.

Returns
distance in centimeters

◆ IsPbWO4()

bool TAPSVeto::IsPbWO4 ( const unsigned  channel) const

◆ SetElementFlags()

virtual void ant::expconfig::detector::TAPSVeto::SetElementFlags ( unsigned  channel,
const ElementFlags_t flags 
)
inlineoverridevirtual

Implements ant::Detector_t.

Member Data Documentation

◆ NSectors

constexpr unsigned ant::expconfig::detector::TAPSVeto::NSectors = 6
staticprotected

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