|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONCSC_CNVTOOL_CSCRODREADOUTV1_H
6 #define MUONCSC_CNVTOOL_CSCRODREADOUTV1_H
49 void encodeFragments(
const std::vector<uint16_t>& amplitude, std::vector<uint32_t>&
v)
const;
54 void setParams(
double timeOffset,
double samplingTime,
double signalWidth);
75 int findCharge(
const std::vector<uint16_t>& amplitude,
double&
time);
143 return sourceIdentifier;
160 v32 = v32 | (
v <<
p);
169 uint16_t amplitudeTest = (fragment >> 12);
174 uint32_t addressTest = (fragment >> 17);
179 m_amp1 = 0x0000FFFF & fragment;
180 m_amp2 = (0xFFFF0000 & fragment) >> 16;
189 int chamberLayer = ((
address & 0x00000800) >> 11) + 1;
190 int wireLayer = ((
address & 0x00000600) >> 9) + 1;
191 int measuresPhi = ((
address & 0x00000100) >> 8);
204 m_address = nameIndex << 16 |
phiIndex << 13 | etaIndex << 12 | chamberIndex << 11 | layerIndex << 9 | stripType << 8 | stripNumber;
218 int chamberLayer = ((
m_address & 0x00000800) >> 11) + 0;
219 int wireLayer = ((
m_address & 0x00000600) >> 9) + 0;
220 int measuresPhi = ((
m_address & 0x00000100) >> 8);
226 int chamberLayer = ((
m_address & 0x00000800) >> 11) + 0;
227 int wireLayer = ((
m_address & 0x00000600) >> 9) + 1;
228 int measuresPhi = ((
m_address & 0x00000100) >> 8);
234 int chamberLayer = ((
m_address & 0x00000800) >> 11) + 0;
235 int wireLayer = ((
m_address & 0x00000600) >> 9) + 1;
236 int measuresPhi = ((
m_address & 0x00000100) >> 8);
287 nameIndex << 16 |
phiIndex << 13 | etaIndex << 12 | chamberIndex << 11 | layerIndex << 9 | stripType << 8 | stripNumber;
292 #endif // MUONCSC_CNVTOOL_CSCRODREADOUTV1_H
uint32_t m_TRIGGER_INFO[3]
static const uint32_t ROD_HEADER_SIZE
Identifier decodeAddress()
constexpr uint8_t stationPhi
station Phi 1 to 8
void triggerInfo(uint32_t *trigger)
Scalar phi() const
phi method
static const uint32_t NUM_DPU
MHz.
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
double signal_amplitude(double samplingTime) const
double m_CHARGE_TO_ADC_COUNT
const CscIdHelper * m_cscHelper
int findCharge(const std::vector< uint16_t > &litude, double &time)
int stationName(const Identifier &id) const
void decodeAmplitude(const uint32_t fragment)
void encodeFragments(const std::vector< uint16_t > &litude, std::vector< uint32_t > &v) const
static const uint32_t RATE
static const uint32_t DPU_HEADER_SIZE
void setAddress(const uint32_t address)
static const uint16_t MODULE_TYPE
int wireLayer(const Identifier &id) const
void decodeSourceID(uint32_t sourceId)
bool discard(const uint32_t fragment) const
static const uint32_t DPU_DISCARD
static const uint16_t BODY_AMPLITUDE
~CscRODReadOutV1()=default
bool isAddress(const uint32_t fragment) const
bool isDPU(const uint32_t fragment) const
double signal(double z) const
void setParams(double timeOffset, double samplingTime, double signalWidth)
uint32_t getSourceID(uint16_t side, uint16_t rodId)
static const uint32_t LATENCY
void setSamplingTime(double time)
uint16_t sourceID() const
int m_NUMBER_OF_INTEGRATION
int stationPhi(const Identifier &id) const
static const uint16_t SOURCE_ID
uint32_t numberOfStrips(const uint32_t fragment)
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
int stationEta(const Identifier &id) const
Identifier elementID(int stationName, int stationEta, int stationPhi) const
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
uint16_t moduleType() const
def time(flags, cells_name, *args, **kw)
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const override
Create hash id from compact id (return == 0 for OK)
int strip(const Identifier &id) const
bool isAmplitude(const uint16_t fragment) const
void set32bits(const uint16_t *v16, uint32_t &v32) const
uint16_t subDetectorId() const
static const uint32_t DPU_HEADER_MARKER
static const uint32_t NUM_SAMPLES
bool measuresPhi(const Identifier &id) const override
constexpr uint8_t stationEta
1 to 3
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
void set(const CscIdHelper *cscHelper)
constexpr int pow(int base, int exp) noexcept
static const uint32_t ROD_FOOTER_SIZE
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
static const uint32_t BODY_ADDRESS
uint32_t hashIdentifier(const Identifier &moduleId)
int chamberLayer(const Identifier &id) const