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

#include <Trigger.h>

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

Public Member Functions

virtual void BuildMappings (std::vector< hit_mapping_t > &, std::vector< scaler_mapping_t > &) const override
 
virtual std::string GetScalerReference (const std::string &scalername) const override
 
virtual void ApplyTo (const readhits_t &hits) override
 
 Trigger_2014 ()
 
std::bitset< 16 > GetL1Pattern () const
 
std::bitset< 16 > GetL2Pattern () const
 
std::bitset< 64 > GetMultiplicityPattern () const
 
std::uint16_t GetMultiplicityValue () const
 
std::bitset< 16 > GetHelicityPattern () const
 
std::bitset< 16 > GetTriggerFiredPattern () const
 
- Public Member Functions inherited from ant::expconfig::detector::Trigger
 Trigger ()
 
virtual vec3 GetPosition (unsigned) const override
 
virtual unsigned GetNChannels () const override
 
virtual void SetElementFlags (unsigned, const ElementFlags_t &) override
 
virtual const ElementFlags_tGetElementFlags (unsigned) const override
 
virtual void BuildMappings (std::vector< hit_mapping_t > &, std::vector< scaler_mapping_t > &) 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
 
- Public Member Functions inherited from ant::ReconstructHook::Base
virtual ~Base ()=default
 

Static Public Attributes

static const ReferenceTimingHitMapping_t Reference_V1190_TAPSPbWO4 = {1002, 29192}
 
- Static Public Attributes inherited from ant::expconfig::detector::Trigger
static const ReferenceTimingHitMapping_t Reference_CATCH_TaggerCrate = {1000, 1400}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC1 = {1010, 927}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC2 = {1011, 1055}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC3_1 = {1012, 1151}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC3_2 = {1013, 1183}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC1_2 = {1014, 910}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC2_2 = {1015, 1038}
 
static const ReferenceTimingHitMapping_t Reference_V1190_TaggerTDC3_3 = {1016, 1166}
 
static const ReferenceTimingHitMapping_t Reference_CATCH_CBCrate = {1001, 2000}
 

Protected Types

using scaler_mapping_t = std::map< std::string, unsigned >
 

Static Protected Member Functions

static scaler_mapping_t MakeScalerMapping ()
 

Protected Attributes

std::vector< std::bitset< 16 > > patterns
 
const scaler_mapping_t scaler_mapping
 

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 >
 
- Public Types inherited from ant::ReconstructHook::Base
using readhits_t = std_ext::mapped_vectors< Detector_t::Type_t, std::reference_wrapper< TDetectorReadHit > >
 
using clusterhits_t = std::map< Detector_t::Type_t, TClusterHitList >
 
using clusters_t = std::map< Detector_t::Type_t, TClusterList >
 
- 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
 
- 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
 

Member Typedef Documentation

◆ scaler_mapping_t

using ant::expconfig::detector::Trigger_2014::scaler_mapping_t = std::map<std::string, unsigned>
protected

Constructor & Destructor Documentation

◆ Trigger_2014()

ant::expconfig::detector::Trigger_2014::Trigger_2014 ( )
inline

Member Function Documentation

◆ ApplyTo()

void ant::expconfig::detector::Trigger_2014::ApplyTo ( const readhits_t hits)
overridevirtual

◆ BuildMappings()

void Trigger_2014::BuildMappings ( std::vector< hit_mapping_t > &  ,
std::vector< scaler_mapping_t > &   
) const
overridevirtual
Todo:
check when those V1190 modules actually were installed and move the emplace_back to base class maybe...

◆ GetHelicityPattern()

std::bitset< 16 > Trigger_2014::GetHelicityPattern ( ) const

◆ GetL1Pattern()

std::bitset< 16 > Trigger_2014::GetL1Pattern ( ) const
Todo:
once more about the old trigger system is known, those methods could be generalized and/or put into base class (possibly virtual)
Todo:
since those patterns might be needed in Reconstruct, it might be better NOT to use those methods too much

◆ GetL2Pattern()

std::bitset< 16 > Trigger_2014::GetL2Pattern ( ) const

◆ GetMultiplicityPattern()

std::bitset< 64 > Trigger_2014::GetMultiplicityPattern ( ) const
Todo:
check if this is the right byte-order for the multiplicty pattern

◆ GetMultiplicityValue()

uint16_t Trigger_2014::GetMultiplicityValue ( ) const

◆ GetScalerReference()

string Trigger_2014::GetScalerReference ( const std::string &  scalername) const
overridevirtual

◆ GetTriggerFiredPattern()

std::bitset< 16 > Trigger_2014::GetTriggerFiredPattern ( ) const

◆ MakeScalerMapping()

Trigger_2014::scaler_mapping_t Trigger_2014::MakeScalerMapping ( )
staticprotected

Member Data Documentation

◆ patterns

std::vector<std::bitset<16> > ant::expconfig::detector::Trigger_2014::patterns
protected

◆ Reference_V1190_TAPSPbWO4

const Trigger::ReferenceTimingHitMapping_t Trigger_2014::Reference_V1190_TAPSPbWO4 = {1002, 29192}
static

◆ scaler_mapping

const scaler_mapping_t ant::expconfig::detector::Trigger_2014::scaler_mapping
protected

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