5#ifndef MUONBYTESTREAM_CSCCRAWDATACOLLECTION_H
6#define MUONBYTESTREAM_CSCCRAWDATACOLLECTION_H
127 uint8_t
rate()
const;
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
DataVector< CscRawDataCollection > CSC_RAWDATACOLLECTION_vector
An STL vector of pointers that by default owns its pointed-to elements.
Collection of CSC Raw Hits, arranged according to CSC Detector Elements Author: Ketevi A.
void set_scaAddress(const uint32_t sca)
uint32_t scaAddress() const
uint32_t m_id
Identifier of this collection.
void set_dataType(const std::vector< uint8_t > &dataType)
bool sparsified() const
is sparsified data?
bool samplingPhase() const
void set_spuCount(const std::vector< uint16_t > &spuCount)
void set_eventType(const uint32_t eventType)
uint32_t m_eventType
event type/data type
IdentifierHash identifyHash() const
Returns the OFFLINE identifier hash for this collection.
void setRodId(uint16_t rodId)
set methods - the name should be self-descriptive
std::vector< uint16_t > m_spuCount
cluster counts for 10 SPU: 5 SPU in each chamber or RPU!
const std::vector< uint16_t > & spuCount() const
uint16_t m_numRPU
number of RPU
void set_enableCal()
is calibration enabled
void set_sparsified()
is this sparsified data?
void setLatency(const uint16_t latency)
insert the latency into the detector event type word
void setNumSamples(const uint16_t n)
insert the number of samples into the detector event type word
void set_triggerType(bool flag)
uint8_t calAmplitude() const
Calibration pulser amplitude.
void addDataType(const uint8_t dataType)
std::vector< uint8_t > m_dataType
void set_spuCount(unsigned int i, uint16_t count)
void set_calAmplitude(const uint8_t calAmp)
set the calibration amplitude
uint8_t firstBitSummary() const
IdentifierHash m_idHash
Offline IdentifierHash for this collection.
uint16_t identify() const
access methods
CscRawDataCollection(uint32_t id)
Default constructor.
void addRPU(const uint16_t rpuID)
virtual ~CscRawDataCollection()
bool calEnabled() const
is calibration enabled?
void setIdentifyHash(const IdentifierHash &idHash)
sets the OFFLINE IdentifierHash for this collection
uint16_t spuCount(unsigned int i) const
return the SPU cluster counts For all the non-precision layers,
std::vector< uint16_t > m_rpuID
RPU ID and data type.
void set_neutron()
is neutron rejection applied?
void setRPUID(const std::vector< uint16_t > &rpuID)
uint16_t subDetectorId() const
uint8_t m_firstBitSummary
First Bit Summary.
bool neutron() const
is neutron rejection ON?
void set_samplingPhase(bool flag)
const std::vector< uint16_t > & rpuID() const
void setNumDPU(const uint16_t numDPU)
obsolete - just backward compatibility with old data
bool m_triggerType
trigger Type
uint16_t numSamples() const
bool m_samplingPhase
sampling phase
uint8_t calLayer() const
Calibration layer.
uint16_t ID
typedef required by container
void setSamplingRate(const uint16_t rate)
insert the rate into the detector event type word - the rate can 20 or 40 MHz
void set_dataType(const unsigned int i, const uint8_t dataType)
uint32_t eventType() const
uint16_t m_rodId
online ROD Identifier
const std::vector< uint8_t > & dataType() const
void set_calLayer(const uint8_t calLay)
set the layer number where the calibration is been done
void set_firstBitSummary(const uint8_t summary)
void setOnlineId(uint16_t id)
void setSubDetectorId(uint16_t subDetectorId)
uint32_t m_scaAddress
SCA Address.
uint8_t rate() const
the rate could be 25 or 50 ns
Class to hold the electronic output for a single CSC readout channel: n sampling ADC data + the addre...
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
This is a "hash" representation of an Identifier.
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string