|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef CSCOVERLAY_CSCOVERLAY_H
12 #define CSCOVERLAY_CSCOVERLAY_H
15 #include "GaudiKernel/ServiceHandle.h"
16 #include "GaudiKernel/ToolHandle.h"
29 class HepRandomEngine;
49 bool propertiesOnly =
false)
const;
55 CLHEP::HepRandomEngine *rndmEngine)
const;
62 const unsigned int numSamples,
63 std::map<
int,std::vector<uint16_t> >& samples,
66 const int gasLayer,
bool isdata)
const;
71 std::vector<CscRawData*>
overlay(
const std::map<
int,std::vector<uint16_t> >& sigSamples,
72 const std::map<
int,std::vector<uint16_t> >& ovlSamples,
77 CLHEP::HepRandomEngine *rndmEngine)
const;
93 ToolHandle<ICscCalibTool>
m_cscCalibTool{
this,
"CalibTool",
"CscCalibTool",
""};
94 ToolHandle<Muon::ICSC_RDO_Decoder>
m_cscRdoDecoderTool{
this,
"CscRdoDecoderTool",
"Muon::CscRDO_Decoder",
""};
char data[hepevt_bytes_allocation_ATLAS]
SG::WriteHandleKey< CscRawDataContainer > m_outputKey
void mergeCollections(const CscRawDataCollection *bkgCollection, const CscRawDataCollection *signalCollection, CscRawDataCollection *outputCollection, CLHEP::HepRandomEngine *rndmEngine) const
In case of overlap merge signal and background collections.
virtual StatusCode execute(const EventContext &ctx) const override final
void spuData(const CscRawDataCollection *coll, const uint16_t spuID, std::vector< const CscRawData * > &data) const
get the data in one SPU of a chamber
CscOverlay(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< Muon::ICSC_RDO_Decoder > m_cscRdoDecoderTool
An algorithm that can be simultaneously executed in multiple threads.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode initialize() override final
SG::ReadHandleKey< CscRawDataContainer > m_signalInputKey
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode overlayContainer(const CscRawDataContainer *bkgContainer, const CscRawDataContainer *signalContainer, CscRawDataContainer *outputContainer) const
Overlay signal on the background container and record to the output one.
std::unique_ptr< CscRawDataCollection > copyCollection(const CscRawDataCollection *collection, bool propertiesOnly=false) const
Copy CscRawDataCollection, optionally only copy properties.
Collection of CSC Raw Hits, arranged according to CSC Detector Elements Author: Ketevi A.
uint32_t stripData(const std::vector< const CscRawData * > &data, const unsigned int numSamples, std::map< int, std::vector< uint16_t > > &samples, uint32_t &hash, const uint16_t spuID, const int gasLayer, bool isdata) const
data in one gas lauer
bool needtoflip(const int address) const
ToolHandle< ICscCalibTool > m_cscCalibTool
This container provides access to collections of CSC RDOs and a mechanism for recording them.
SG::ReadHandleKey< CscRawDataContainer > m_bkgInputKey
std::vector< CscRawData * > overlay(const std::map< int, std::vector< uint16_t > > &sigSamples, const std::map< int, std::vector< uint16_t > > &ovlSamples, const uint32_t address, const uint16_t spuID, const uint16_t collId, const uint32_t hash, CLHEP::HepRandomEngine *rndmEngine) const
do the overlay - summing the ADC samples on one plane if there is overlap between zero bias data and ...
ServiceHandle< IAthRNGSvc > m_rndmSvc
Gaudi::Property< bool > m_isDataOverlay