![]() |
ATLAS Offline Software
|
#include <CscCalibTool.h>
Public Member Functions | |
CscCalibTool (const std::string &, const std::string &, const IInterface *) | |
virtual | ~CscCalibTool ()=default |
virtual StatusCode | initialize () override final |
virtual int | femtoCoulombToADCCount (uint32_t stripHashId, const double femtoCoulombs) const override final |
given a charge on the CSC strip, convert that to ADC counts this is needed in the digitization for example where it is the charges on the strips that are simulated first and converter to AOD samples in a subsequent step. More... | |
virtual int | numberOfElectronsToADCCount (uint32_t stripHashId, const int numberOfElecEquiv) const override final |
Here the charge on the CSC strip is given in number of equivalent electrons; conversion to ADC counts. More... | |
virtual double | adcCountToFemtoCoulomb (const float adcCounts, const float slope) const override final |
given one CSC ADC sample value, convert that to charge in femtoCoulomb More... | |
virtual double | adcCountToFemtoCoulomb (uint32_t stripHashId, const float adcCounts) const override final |
virtual double | adcCountToNumberOfElectrons (const float adcValue, const float slope) const override final |
given one CSC ADC sample value, convert that to charge in number of equivalent electrons More... | |
virtual double | adcCountToNumberOfElectrons (uint32_t stripHashId, const float adcValue) const override final |
virtual bool | adcToCharge (const std::vector< uint16_t > &samples, uint32_t stripHashId, std::vector< float > &charges) const override final |
Conversion of ADC value to charge - Here the charges is returned in numbers of equivalent electrons. More... | |
virtual bool | findCharge (const float samplingTime, const unsigned int samplingPhase, const std::vector< float > &samples, double &charge, double &time) const override final |
Given sampling values for a CSC strip, find the corresponding charge by fitting the time samples. More... | |
virtual double | stripNoise (uint32_t stripHashId, const bool convert=true) const override final |
return the noise(sigma) on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true More... | |
virtual double | stripRMS (uint32_t stripHashId, const bool convert=true) const override final |
return the RMS on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true More... | |
virtual double | stripF001 (uint32_t stripHashId, const bool convert=true) const override final |
return the F001 on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true More... | |
virtual double | stripPedestal (uint32_t stripHashId, const bool convert=true) const override final |
return the pedestal on the readout strip in ADC counts or Number of Electrons More... | |
virtual bool | isGood (uint32_t stripHashId) const override final |
return the status of this strip, good channel, dead channel, noisy channel - it will return true for strip that working fine, false is returned for dead/noisy channels More... | |
virtual int | stripStatusBit (uint32_t stripHashId) const override final |
return status bit More... | |
virtual bool | stripT0phase (uint32_t stripHashId) const override final |
return T0phase related to 5 ASM. More... | |
virtual double | stripT0base (uint32_t stripHashId) const override final |
return T0base related to 5 ASM. More... | |
virtual double | func (const double x, const float slope) const override final |
these function used in the AOD <-> conversion; may not be needed once we integrate the calibration service More... | |
virtual double | func_prime (const double x, const float slope) const override final |
virtual double | signal (const double z) const override final |
virtual double | signal_amplitude (const double driftTime, const double samplingTime) const override final |
virtual double | getZ0 () const override final |
ROOT version of bipolar function. More... | |
virtual double | getSamplingTime () const override final |
virtual double | getTimeOffset () const override final |
virtual double | getSignalWidth () const override final |
virtual double | getNumberOfIntegration () const override final |
virtual double | getNumberOfIntegration2 () const override final |
virtual std::pair< double, double > | addBipfunc (const double driftTime0, const double stripCharge0, const double driftTime1, const double stripCharge1) const override final |
virtual std::vector< float > | getSamplesFromBipolarFunc (const double driftTime0, const double stripCharge0) const override final |
virtual double | getLatency () const override final |
Public Attributes | |
std::atomic_int | m_messageCnt_t0base {} |
std::atomic_int | m_messageCnt_t0phase {} |
Protected Attributes | |
SG::ReadCondHandleKey< CscCondDbData > | m_readKey {this, "ReadKey", "CscCondDbData", "Key of CscCondDbData"} |
bool | m_readFromDatabase |
bool | m_slopeFromDatabase |
float | m_slope |
float | m_noise |
float | m_pedestal |
double | m_integrationNumber |
ROOT version of bipolar function. More... | |
double | m_integrationNumber2 |
double | m_samplingTime |
double | m_signalWidth |
double | m_timeOffset |
double | m_latency |
unsigned int | m_nSamples |
bool | m_onlineHLT |
bool | m_use2Samples |
Private Member Functions | |
float | getPSlope (uint32_t stripHashId) const |
Definition at line 36 of file CscCalibTool.h.
Definition at line 11 of file CscCalibTool.cxx.
|
virtualdefault |
|
finaloverridevirtual |
given one CSC ADC sample value, convert that to charge in femtoCoulomb
Definition at line 332 of file CscCalibTool.cxx.
|
finaloverridevirtual |
the strip hash id will be used to access the data base
subtract the pedestal
Definition at line 502 of file CscCalibTool.cxx.
|
finaloverridevirtual |
given one CSC ADC sample value, convert that to charge in number of equivalent electrons
conversion from ADC value to number of equivalent electrons
Definition at line 138 of file CscCalibTool.cxx.
|
finaloverridevirtual |
the strip hash id will be used to access the data base
subtract the pedestal
Definition at line 529 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Conversion of ADC value to charge - Here the charges is returned in numbers of equivalent electrons.
subtract the pedestal
Definition at line 554 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 643 of file CscCalibTool.cxx.
|
finaloverridevirtual |
given a charge on the CSC strip, convert that to ADC counts this is needed in the digitization for example where it is the charges on the strips that are simulated first and converter to AOD samples in a subsequent step.
Definition at line 126 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Given sampling values for a CSC strip, find the corresponding charge by fitting the time samples.
By default, a parabolic fit is done. The charge and the time are returned. The time is calculated with respect to the time of the first sample.
find the maximum
all the samples are zeros
now the parabolic interpolation
a==0: 3 points on a line, no parabola possible
a>0: convex parabola isn't useful for peak finding
if the time offset is out of range
successful interpolation
Find the peaking time: this is no longer assuming a 4-time sample system The peaking time is the time of the largest sample. This is corrected by the timeOffset interpolation, which should range from -0.5 to 0.5.
Multiply by sampling time to convert to nanoseconds. Finally subtract 25ns if the sampling phase is 1.
Definition at line 364 of file CscCalibTool.cxx.
these function used in the AOD <-> conversion; may not be needed once we integrate the calibration service
Definition at line 341 of file CscCalibTool.cxx.
Definition at line 355 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 693 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 696 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 697 of file CscCalibTool.cxx.
|
private |
Definition at line 92 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 617 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 692 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 695 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 694 of file CscCalibTool.cxx.
|
finaloverridevirtual |
|
finaloverridevirtual |
Definition at line 63 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return the status of this strip, good channel, dead channel, noisy channel - it will return true for strip that working fine, false is returned for dead/noisy channels
return the status of this strip, good channel, dead channel, noisy channel -
it will return true for strip that working fine, false is returned for dead/noisy channels
Definition at line 254 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Here the charge on the CSC strip is given in number of equivalent electrons; conversion to ADC counts.
Definition at line 112 of file CscCalibTool.cxx.
|
finaloverridevirtual |
Definition at line 600 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return the F001 on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true
return the F001 on the readout strip in ADC count or Number of Electrons
ADC counts initialized with m_noise...
Definition at line 201 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return the noise(sigma) on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true
return the noise on the readout strip in ADC count or Number of Electrons
ADC counts
Definition at line 146 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return the pedestal on the readout strip in ADC counts or Number of Electrons
return the pedestal on the readout strip in ADC counts or number of electrons
Definition at line 227 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return the RMS on the readout strip in ADC counts or Number of Electrons number of electrons by default: convert=true
return the rms on the readout strip in ADC count or Number of Electrons
ADC counts initialized with m_noise...
Definition at line 173 of file CscCalibTool.cxx.
|
finaloverridevirtual |
|
finaloverridevirtual |
return T0base related to 5 ASM.
For convenience, we use stripHashId to get it
Definition at line 307 of file CscCalibTool.cxx.
|
finaloverridevirtual |
return T0phase related to 5 ASM.
For convenience, we use stripHashId to get it
Definition at line 283 of file CscCalibTool.cxx.
|
protected |
ROOT version of bipolar function.
Definition at line 159 of file CscCalibTool.h.
|
protected |
Definition at line 160 of file CscCalibTool.h.
|
protected |
Definition at line 166 of file CscCalibTool.h.
|
mutable |
Definition at line 131 of file CscCalibTool.h.
|
mutable |
Definition at line 132 of file CscCalibTool.h.
|
protected |
Definition at line 152 of file CscCalibTool.h.
|
protected |
Definition at line 168 of file CscCalibTool.h.
|
protected |
Definition at line 170 of file CscCalibTool.h.
|
protected |
Definition at line 153 of file CscCalibTool.h.
|
protected |
Definition at line 148 of file CscCalibTool.h.
|
protected |
Definition at line 146 of file CscCalibTool.h.
|
protected |
Definition at line 162 of file CscCalibTool.h.
|
protected |
Definition at line 163 of file CscCalibTool.h.
|
protected |
Definition at line 151 of file CscCalibTool.h.
|
protected |
Definition at line 149 of file CscCalibTool.h.
|
protected |
Definition at line 164 of file CscCalibTool.h.
|
protected |
Definition at line 171 of file CscCalibTool.h.