![]() |
ATLAS Offline Software
|
#include <CscDigitToCscRDOTool.h>
Public Member Functions | |
CscDigitToCscRDOTool (const std::string &type, const std::string &name, const IInterface *pIID) | |
virtual | ~CscDigitToCscRDOTool ()=default |
virtual StatusCode | initialize () override |
virtual StatusCode | digitize (const EventContext &ctx) override |
Protected Attributes | |
SG::WriteHandleKey< CscRawDataContainer > | m_rdoContainerKey |
SG::ReadHandleKey< CscDigitContainer > | m_digitContainerKey |
ServiceHandle< Muon::IMuonIdHelperSvc > | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} |
ServiceHandle< CSCcablingSvc > | m_cscCablingSvc {this, "CSCcablingSvc", "CSCcablingSvc", ""} |
ToolHandle< ICscCalibTool > | m_cscCalibTool {this, "cscCalibTool", "CscCalibTool", ""} |
ServiceHandle< IAthRNGSvc > | m_rndmSvc {this, "RndmSvc", "AthRNGSvc", ""} |
Random number service. More... | |
Private Member Functions | |
StatusCode | fill_CSCdata () |
CscRawDataCollection * | cscRdo (uint16_t subDetectorId, uint16_t rodId) |
Private Attributes | |
std::map< uint16_t, CscRawDataCollection * > | m_cscRdoMap |
uint16_t | m_samplingRate {} |
set during initialize from cscCalibTool More... | |
uint16_t | m_numSamples {4} |
uint16_t | m_latency {0} |
double | m_startTime {} |
set during initialize from cscCalibTool More... | |
double | m_signalWidth {} |
set during initialize from cscCalibTool More... | |
bool | m_addNoise {true} |
uint16_t | m_numberOfIntegration {} |
set during initialize from cscCalibTool More... | |
Definition at line 26 of file CscDigitToCscRDOTool.h.
CscDigitToCscRDOTool::CscDigitToCscRDOTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | pIID | ||
) |
Definition at line 26 of file CscDigitToCscRDOTool.cxx.
|
virtualdefault |
|
private |
create new CscRdo
set SubDetectorID and ROD ID
Definition at line 420 of file CscDigitToCscRDOTool.cxx.
|
overridevirtual |
Definition at line 65 of file CscDigitToCscRDOTool.cxx.
|
private |
initialization of data collection map
type definition for collection iterators
Retrieve the digit container
loop over digit collections from the simulation
current wire layer identifier
the online address of the first RDO
consider one cluster per layer: no clusterization done in the simulation
the ADC samples
Hash identifier of the first RDO which has offline convention
SPU number for this RDO there 10 SPU - Sparsifier Processing Units, one for each gas layer, except for the non-precision strips where all the layers map to one SPU
Iterate on the digits of this collection
some counters
the RDO collection or create it if it does not exits
build the event type for the ROD - all other information is 0
the online identifier of this collection
find the online address - one per plane for the non-precision strips, the 4 planes all go into one RPU
Create a cscRawData object and save it
station identifier to calcuate the SPU ID
there 10 SPU - Sparsifier Processing Units, one for each gas layer, except for the non-precision strips where all the layers map to one SPU note that the "-50" is because stationName = 50 (CSS) or 51 (CSL)
The strip online address
Strip hash identifier is from offline convention for CscRawData first strip...
clear for the next CscRawData
simulation data conversion to ADC counts
increase the width and the currentStrip
increament the RPU counts
Also Create one last CscRawData on the last element
Add RDOs to the RdoContainer
we need to get the cluster counts in each SPU
save collections into StoreGate
Definition at line 74 of file CscDigitToCscRDOTool.cxx.
|
overridevirtual |
CSC calibration tool for the Condtiions Data base access
initialization of CSC ROD Decoder
Definition at line 35 of file CscDigitToCscRDOTool.cxx.
|
private |
Definition at line 44 of file CscDigitToCscRDOTool.h.
|
protected |
Definition at line 53 of file CscDigitToCscRDOTool.h.
|
protected |
Definition at line 54 of file CscDigitToCscRDOTool.h.
|
private |
Definition at line 38 of file CscDigitToCscRDOTool.h.
|
protected |
Definition at line 50 of file CscDigitToCscRDOTool.h.
|
protected |
Definition at line 52 of file CscDigitToCscRDOTool.h.
|
private |
Definition at line 41 of file CscDigitToCscRDOTool.h.
|
private |
set during initialize from cscCalibTool
Definition at line 45 of file CscDigitToCscRDOTool.h.
|
private |
Definition at line 40 of file CscDigitToCscRDOTool.h.
|
protected |
Definition at line 48 of file CscDigitToCscRDOTool.h.
|
protected |
Random number service.
Definition at line 55 of file CscDigitToCscRDOTool.h.
|
private |
set during initialize from cscCalibTool
Definition at line 39 of file CscDigitToCscRDOTool.h.
|
private |
set during initialize from cscCalibTool
Definition at line 43 of file CscDigitToCscRDOTool.h.
|
private |
set during initialize from cscCalibTool
Definition at line 42 of file CscDigitToCscRDOTool.h.