|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MUONCSC_CNVTOOL_CSCRODREADOUT_H
6 #define MUONCSC_CNVTOOL_CSCRODREADOUT_H
47 void encodeFragments(
const std::vector<uint16_t>& amplitude, std::vector<uint32_t>&
v)
const;
53 void setParams(
double timeOffset,
double signalWidth);
71 static int findCharge(
double samplingTime,
const std::vector<uint16_t>& amplitude,
double&
time) ;
118 return sourceIdentifier;
123 sourceID = (sourceIDIn & 0xff000000) >> 24;
124 moduleType = (sourceIDIn & 0x00ff0000) >> 16;
125 subDetectorId = (sourceIDIn & 0x0000ff00) >> 8;
126 rodId = (sourceIDIn & 0x000000ff);
136 v32 = v32 | (
v <<
p);
145 uint16_t amplitudeTest = (fragment >> 12);
150 uint32_t addressTest = (fragment >> 17);
155 amp2 = 0x0000FFFF & fragment;
156 amp1 = (0xFFFF0000 & fragment) >> 16;
174 int wireLayer = ((
address & 0x00000600) >> 9) + 1;
175 int measuresPhi = ((
address & 0x00000100) >> 8);
194 int wireLayer = ((
address & 0x00000600) >> 9) + 1;
195 int measuresPhi = ((
address & 0x00000100) >> 8);
212 int wireLayer = ((
address & 0x00000600) >> 9) + 1;
213 int measuresPhi = ((
address & 0x00000100) >> 8);
226 throw (std::runtime_error(
"CscRODReadOut::hashIdentifier: Unable to get identifier!"));
279 nameIndex << 16 |
phiIndex << 13 | etaIndex << 12 | chamberIndex << 11 | layerIndex << 9 | stripType << 8 | stripNumber;
284 #endif // MUONCSC_CNVTOOL_CSCRODREADOUT_H
Identifier decodeAddress(const uint32_t address) const
uint32_t hashIdentifier(const uint32_t address, const Identifier &moduleId) const
uint32_t getSourceID(uint16_t side, uint16_t rodId) const
static const uint32_t ROD_FOOTER_SIZE
constexpr uint8_t stationPhi
station Phi 1 to 8
uint32_t numberOfStrips(const uint32_t fragment) const
static int findCharge(double samplingTime, const std::vector< uint16_t > &litude, double &time)
void setParams(double timeOffset, double signalWidth)
double getMaxTimeBin() const
static const uint16_t MODULE_TYPE
Scalar phi() const
phi method
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
static const uint32_t NUM_SAMPLES
static const uint32_t DPU_HEADER_MARKER
uint32_t numSamples() const
uint32_t samplingRate() const
const CscIdHelper * m_cscIdHelper
int stationName(const Identifier &id) const
uint32_t fragmentToAddress(const uint32_t fragment) const
uint32_t address(const Identifier &channelId, int &eta, int &phi) const
uint32_t getHeaderSize() const
void decodeAmplitude(const uint32_t fragment, uint16_t &1, uint16_t &2) const
static const uint32_t LATENCY
int wireLayer(const Identifier &id) const
void set(const CscIdHelper *cscIdHelper)
uint32_t dpuHeader() const
bool isAmplitude(const uint16_t fragment) const
static const uint16_t BODY_AMPLITUDE
void setChamberBitVaue(uint32_t value)
static const uint32_t BODY_ADDRESS
uint32_t m_chamberBitValue
double signal(double z) const
double m_CHARGE_TO_ADC_COUNT
double getConversion() const
bool discard(const uint32_t fragment) const
int stationPhi(const Identifier &id) const
bool isDPU(const uint32_t fragment) const
void set32bits(const uint16_t *v16, uint32_t &v32) const
void encodeFragments(const std::vector< uint16_t > &litude, std::vector< uint32_t > &v) const
static const uint32_t DPU_HEADER_SIZE
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
double signal_amplitude(double samplingTime) const
int stationEta(const Identifier &id) const
uint32_t getFooterSize() const
bool isAddress(const uint32_t fragment) const
Identifier elementID(int stationName, int stationEta, int stationPhi) const
unsigned int phiIndex(float phi, float binsize)
calculate phi index for a given phi
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
uint32_t dpuHeaderSize() const
int m_NUMBER_OF_INTEGRATION
static const uint32_t DPU_DISCARD
double getStartTime() const
void decodeSourceID(uint32_t sourceIdIDIn, uint16_t &sourceID, uint16_t &moduleType, uint16_t &subDetectorId, uint16_t &rodId) const
static const uint16_t SOURCE_ID
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...
constexpr int pow(int base, int exp) noexcept
static const uint32_t ROD_HEADER_SIZE
static const uint32_t RATE
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
static const uint32_t NUM_DPU
MHz.
int chamberLayer(const Identifier &id) const