|
ant
A2 ant: class-based analysis framework
|
#include <TAPS.h>
Inheritance diagram for ant::expconfig::detector::TAPS:
Collaboration diagram for ant::expconfig::detector::TAPS:Classes | |
| struct | BaF2_Element_t |
| struct | PbWO4_Element_t |
| struct | TAPS_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_t & | GetElementFlags (unsigned channel) const override |
| void | SetToFOffset (unsigned channel, double value) |
| virtual double | GetTimeOfFlight (double clustertime, unsigned channel, double trigger_reftime) const |
| GetTimeOfFlight returns the time of flight in nanoseconds, is 0 ns for photons (if correctly calibrated!) More... | |
| virtual double | GetBeta (const TCandidate &cand_taps, double trigger_reftime) const |
| GetBeta uses GetTimeOfFlight() to calculate the beta=v/c of the particle. More... | |
| virtual double | GetZPosition () const |
| GetZPosition distance of front face from center of target. More... | |
| virtual double | GetRadius () const |
| GetRadius radius of front face disk covering all elements. More... | |
| virtual void | BuildMappings (std::vector< hit_mapping_t > &, std::vector< scaler_mapping_t > &) const override |
| virtual const ClusterDetector_t::Element_t * | GetClusterElement (unsigned channel) const override |
| unsigned | GetRing (const unsigned channel) const |
| GetRing returns the ring number inside the hexagonal structure. More... | |
| unsigned | GetHexChannel (const unsigned channel) const |
| GetHexChannel returns the "usual" hexagonal channel as if four PbWO4s were one BaF2 hexagon. More... | |
| bool | IsPbWO4 (const unsigned channel) const |
| IsPbWO4 returns true if given logical channel is PbWO4 element. More... | |
| bool | IsBaF2 (const unsigned channel) const |
| IsBaF2 returns true if given logical channel is BaF2 element. More... | |
| std::vector< unsigned > | GetBaF2Channels () const |
| GetBaF2Channels returns a vector containing the channel numbers with the BaF2 channels of the used TAPS detector. More... | |
| std::vector< unsigned > | GetPbWO4Channels () const |
| GetPbWO4Channels returns a vector containing the channel numbers with the PbWO4 channels of the used TAPS detector. More... | |
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 | |
| TAPS (bool cherenkovInstalled, bool pizzaInstalled, bool useSensitiveChannels, const std::vector< BaF2_Element_t > &BaF2s, const std::vector< PbWO4_Element_t > &PbWO4s) | |
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 | |
Static Protected Attributes | |
| static constexpr unsigned | NHexElements = 384 |
| static constexpr unsigned | NSectors = 6 |
| static constexpr unsigned | PbWO4PerHex = 4 |
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 |
|
inlineprotected |
|
overridevirtual |
Implements ant::UnpackerAcquConfig.
| std::vector< unsigned > TAPS::GetBaF2Channels | ( | ) | const |
GetBaF2Channels returns a vector containing the channel numbers with the BaF2 channels of the used TAPS detector.
|
virtual |
GetBeta uses GetTimeOfFlight() to calculate the beta=v/c of the particle.
| cand_taps | the candidate from the event |
| trigger_reftime | the reference time, needs to match the calibration |
|
inlineoverridevirtual |
Implements ant::ClusterDetector_t.
|
inlineoverridevirtual |
Implements ant::Detector_t.
| unsigned TAPS::GetHexChannel | ( | const unsigned | channel | ) | const |
GetHexChannel returns the "usual" hexagonal channel as if four PbWO4s were one BaF2 hexagon.
| channel | logical channel |
|
inlineoverridevirtual |
Implements ant::Detector_t.
| std::vector< unsigned > TAPS::GetPbWO4Channels | ( | ) | const |
GetPbWO4Channels returns a vector containing the channel numbers with the PbWO4 channels of the used TAPS detector.
|
inlineoverridevirtual |
Implements ant::Detector_t.
|
virtual |
GetRadius radius of front face disk covering all elements.
| unsigned TAPS::GetRing | ( | const unsigned | channel | ) | const |
GetRing returns the ring number inside the hexagonal structure.
| channel | logical channel |
|
virtual |
GetTimeOfFlight returns the time of flight in nanoseconds, is 0 ns for photons (if correctly calibrated!)
| clustertime | time of cluster in detector |
| channel | central element |
| trigger_reftime | usually given by trigger, e.g. energy-averaged CB timing |
|
virtual |
GetZPosition distance of front face from center of target.
|
inline |
IsBaF2 returns true if given logical channel is BaF2 element.
| channel | logical channel |
| bool TAPS::IsPbWO4 | ( | const unsigned | channel | ) | const |
IsPbWO4 returns true if given logical channel is PbWO4 element.
| channel | logical channel |
|
overridevirtual |
Implements ant::Detector_t.
|
inline |
|
staticprotected |
|
staticprotected |
|
staticprotected |