ATLAS Offline Software
|
#include <AFP_Raw2DigiTool.h>
Public Member Functions | |
AFP_Raw2DigiTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual | ~AFP_Raw2DigiTool () override |
Does nothing. More... | |
virtual StatusCode | initialize () override |
Does nothing. More... | |
StatusCode | recoSiHits (const EventContext &ctx) const override |
Creates xAOD for silicon detector. More... | |
StatusCode | recoToFHits (const EventContext &ctx) const override |
Creates xAOD for time-of-flight detector. More... | |
StatusCode | recoAll (const EventContext &ctx) const override |
virtual StatusCode | finalize () override |
Does nothing. More... | |
unsigned int | decodeTimeOverThresholdSi (const unsigned int input, const unsigned int discConfig) const |
Method that decodes raw information about time-over-threshold to number of clock ticks. More... | |
Protected Member Functions | |
void | newXAODHitToF (xAOD::AFPToFHitContainer *tofHitContainer, const AFP_ToFRawCollection &collection, const AFP_ToFRawData &data, const EventContext &ctx) const |
Method that creates a new AFPToFHit and sets it valus according to data. More... | |
void | newXAODHitSi (xAOD::AFPSiHitContainer *xAODSiHit, const AFP_SiRawCollection &collection, const AFP_SiRawData &data) const |
Method that creates a new AFPSiHit and sets it valus according to data. More... | |
void | setBarAndTrainID (xAOD::AFPToFHit *tofHit, const EventContext &ctx) const |
Method mapping hptdcID and hptdcChannel to train ID and bar in train ID. More... | |
Protected Attributes | |
SG::ReadHandleKey< AFP_RawContainer > | m_rawDataContainerName {this, "rawDataContainerName", "AFP_RawData"} |
SG::WriteHandleKey< xAOD::AFPSiHitContainer > | m_AFPSiHitsContainerName {this, "AFPSiHitsContainerName", "AFPSiHitContainer"} |
SG::WriteHandleKey< xAOD::AFPToFHitContainer > | m_AFPHitsContainerNameToF {this, "AFPHitsContainerNameToF", "AFPToFHitContainer"} |
Gaudi::Property< std::string > | m_totToChargeTransfExpr {this, "TotToChargeTransfExpr", "1909 + x*363 + x*x*141", "Function that transforms time-over-threshold to charge"} |
Function that transforms time-over-threshold to charge. More... | |
Gaudi::Property< std::string > | m_totToChargeTransfName {this, "TotToChargeTransfName", "TotToChargeTransfFunction", "Name of the function that transforms time-over-threshold to charge"} |
TF1 | m_totToChargeTransformation |
Static Protected Attributes | |
static constexpr double | s_timeConversionFactor = 25./1024. |
Factor converting signal to time. More... | |
static constexpr double | s_pulseLengthFactor = 0.521 |
Factor converting pulse length to time. More... | |
Private Attributes | |
const int | m_channel2train [3][2][12] |
const int | m_channel2bar [3][2][12] |
Definition at line 17 of file AFP_Raw2DigiTool.h.
AFP_Raw2DigiTool::AFP_Raw2DigiTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 20 of file AFP_Raw2DigiTool.cxx.
|
overridevirtual |
unsigned int AFP_Raw2DigiTool::decodeTimeOverThresholdSi | ( | const unsigned int | input, |
const unsigned int | discConfig | ||
) | const |
Method that decodes raw information about time-over-threshold to number of clock ticks.
Definition at line 231 of file AFP_Raw2DigiTool.cxx.
|
overridevirtual |
|
overridevirtual |
Does nothing.
Definition at line 29 of file AFP_Raw2DigiTool.cxx.
|
protected |
Method that creates a new AFPSiHit and sets it valus according to data.
Definition at line 147 of file AFP_Raw2DigiTool.cxx.
|
protected |
Method that creates a new AFPToFHit and sets it valus according to data.
Definition at line 116 of file AFP_Raw2DigiTool.cxx.
|
override |
Definition at line 42 of file AFP_Raw2DigiTool.cxx.
|
override |
|
override |
Creates xAOD for time-of-flight detector.
Definition at line 78 of file AFP_Raw2DigiTool.cxx.
|
protected |
Method mapping hptdcID and hptdcChannel to train ID and bar in train ID.
The method requires that hptdcID and hptdcChannel are set in the tofHit passed as argument. Mapping is implemented according to https://twiki.cern.ch/twiki/bin/view/Atlas/AFPHPTDC#Channel_Mapping
Definition at line 191 of file AFP_Raw2DigiTool.cxx.
|
protected |
Definition at line 47 of file AFP_Raw2DigiTool.h.
|
protected |
Definition at line 46 of file AFP_Raw2DigiTool.h.
|
private |
Definition at line 89 of file AFP_Raw2DigiTool.h.
|
private |
Definition at line 86 of file AFP_Raw2DigiTool.h.
|
protected |
Definition at line 45 of file AFP_Raw2DigiTool.h.
|
protected |
Function that transforms time-over-threshold to charge.
Transformation function can be set in steering cards
Definition at line 62 of file AFP_Raw2DigiTool.h.
|
protected |
Definition at line 63 of file AFP_Raw2DigiTool.h.
|
protected |
Definition at line 64 of file AFP_Raw2DigiTool.h.
|
staticconstexprprotected |
Factor converting pulse length to time.
The value of the factor is 0.521 nanoseconds
Definition at line 57 of file AFP_Raw2DigiTool.h.
|
staticconstexprprotected |
Factor converting signal to time.
The value of the factor is 25/1024 nanoseconds
Definition at line 52 of file AFP_Raw2DigiTool.h.