![]() |
ATLAS Offline Software
|
The aim of this algorithm is the simulation of the LAr analogue Super-Cell sums. More...
#include <LArSCL1Maker.h>
Public Member Functions | |
| LArSCL1Maker (const std::string &name, ISvcLocator *pSvcLocator) | |
| constructor | |
| ~LArSCL1Maker () | |
| destructor | |
| StatusCode | initialize () |
| Read ascii files for auxiliary data (puslse shapes, noise, etc...) | |
| StatusCode | execute (const EventContext &context) const |
| Create LArSCL1 object save in TES (2 containers: 1 EM, 1 hadronic) | |
| StatusCode | finalize () |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. | |
| virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. | |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| virtual bool | filterPassed (const EventContext &ctx) const |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| template<class T> | |
| const T * | retrieve (const EventContext &context, const SG::ReadCondHandleKey< T > &handleKey) const |
| std::vector< float > | computeSignal (const Identifier towerId, const int Ieta, const int specialCase, std::vector< float > visEnergy, const int refTime) const |
| initialize hit map | |
| std::vector< float > | computeNoise (const Identifier towerId, const int Ieta, std::vector< float > &inputV) |
| void | printConditions (const HWIdentifier &hwSC) |
| Method to print SuperCell Conditions. | |
| void | ConvertHits2Samples (const EventContext &context, const HWIdentifier &hwSC, CaloGain::CaloGain igain, const std::vector< std::pair< float, float > > &TimeE, std::vector< float > &samples) const |
| Method for converting Hits from samples (simplified version of the same method in LarPileUpTool) | |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| SG::ReadCondHandleKey< LArOnOffIdMapping > | m_cablingKeySC |
| SG::ReadCondHandleKey< ILArShape > | m_shapesKey |
| Property: Pulse shape (conditions input). | |
| SG::ReadCondHandleKey< ILArfSampl > | m_fracSKey |
| Property: Fraction of Energy Sampled (conditions input). | |
| SG::ReadCondHandleKey< ILArPedestal > | m_pedestalSCKey |
| Property: Pedestal offset (conditions input). | |
| SG::ReadCondHandleKey< ILArNoise > | m_noiseSCKey |
| Property: Electronics Noise (conditions input). | |
| SG::ReadCondHandleKey< LArAutoCorrNoise > | m_autoCorrNoiseSCKey |
| Property: AutoCorr Noise (conditions input). | |
| SG::ReadCondHandleKey< LArADC2MeV > | m_adc2mevSCKey |
| Property: ADC2MeV conversion (conditions input). | |
| IChronoStatSvc * | m_chronSvc |
| Gaudi::Property< std::string > | m_randomStreamName |
| ServiceHandle< IAthRNGSvc > | m_atRndmGenSvc {this, "RndmSvc", "AthRNGSvc", ""} |
| Gaudi::Property< uint32_t > | m_randomSeedOffset {this, "RandomSeedOffset", 2, ""} |
| Gaudi::Property< bool > | m_useLegacyRandomSeeds |
| bool | m_useTriggerTime |
| Alorithm property: use trigger time or not. | |
| int | m_BeginRunPriority |
| pointer to the TriggerTimeTool | |
| ToolHandle< ICaloSuperCellIDTool > | m_scidtool |
| const CaloCell_SuperCell_ID * | m_scHelper |
| pointer to the offline TT helper | |
| const CaloCell_ID * | m_OflHelper = nullptr |
| pointer to the offline id helper | |
| const LArOnline_SuperCellID * | m_OnlSCHelper |
| pointer to the online LAr helper | |
| ServiceHandle< IIncidentSvc > | m_incSvc |
| std::vector< std::vector< float > > | m_autoCorrHec |
| auxiliary HEC data: auto-correlation matrix | |
| SG::ReadHandleKey< LArHitEMap > | m_hitMapKey |
| hit map | |
| SG::ReadHandleKey< LArDigitContainer > | m_bkgDigitsKey {this, "BkgDigitKey", ""} |
| Background Digit Overlay, default key is Bkg_LArDigitSCL2. | |
| SG::WriteHandleKey< LArDigitContainer > | m_sLArDigitsContainerKey |
| output Lar Digits SC container | |
| std::vector< std::string > | m_HitContainer |
| list of hit containers | |
| std::string | m_SubDetectors |
| algorithm property: sub-detectors to be simulated | |
| bool | m_NoiseOnOff |
| algorithm property: noise (in all sub-detectors) is on if true | |
| bool | m_PileUp |
| algorithm property: pile up or not | |
| bool | m_noEmCalibMode |
| algorithm property: no calibration mode for EM towers | |
| bool | m_noHadCalibMode |
| algorithm property: no calibration mode for had towers | |
| bool | m_chronoTest |
| algorithm property: switch chrono on | |
| unsigned int | m_nSamples |
| output number of samples | |
| unsigned int | m_firstSample |
| output first samples | |
| std::string | m_saveHitsContainer |
| DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. | |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Static Private Attributes | |
| static const short | s_NBDEPTHS = 4 |
| number of sampling (in depth) | |
| static const short | s_NBSAMPLES = 7 |
| number of samples in TTL1s | |
| static const short | s_MAXSAMPLES = 24 |
| max number of samples in pulse shape | |
| static const short | s_PEAKPOS = 3 |
| peak position | |
| static const short | s_NBETABINS = 15 |
| number of eta bins | |
| static const short | s_NBENERGIES = 12 |
| number of energies at which saturation is described (em) | |
The aim of this algorithm is the simulation of the LAr analogue Super-Cell sums.
It includes correct allocation of cells to Super-Cell, pulse profile as a function of time, saturation, appropriate noise addition, pile-up.
The resulting signals are an input to the Preprocessor (which in turn performs digitization, filtering, bunch crossing id., noise suppression,...)
Since it needs hits, the simulation only takes "simul" datasets as input, NOT digitized datasets.
Definition at line 60 of file LArSCL1Maker.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| LArSCL1Maker::LArSCL1Maker | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
constructor
Definition at line 59 of file LArSCL1Maker.cxx.
| LArSCL1Maker::~LArSCL1Maker | ( | ) |
destructor
SCL1 Maker destructor
Definition at line 109 of file LArSCL1Maker.cxx.
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
|
private |
|
private |
initialize hit map
|
private |
Method for converting Hits from samples (simplified version of the same method in LarPileUpTool)
Definition at line 473 of file LArSCL1Maker.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
| StatusCode LArSCL1Maker::execute | ( | const EventContext & | context | ) | const |
Create LArSCL1 object save in TES (2 containers: 1 EM, 1 hadronic)
Definition at line 222 of file LArSCL1Maker.cxx.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
|
inlinevirtualinherited |
Definition at line 96 of file AthCommonReentrantAlgorithm.h.
| StatusCode LArSCL1Maker::finalize | ( | ) |
Definition at line 460 of file LArSCL1Maker.cxx.
| StatusCode LArSCL1Maker::initialize | ( | ) |
Read ascii files for auxiliary data (puslse shapes, noise, etc...)
Definition at line 115 of file LArSCL1Maker.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ITkPixelCablingAlg, ITkStripCablingAlg, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, and Simulation::BeamEffectsAlg.
Definition at line 68 of file AthCommonReentrantAlgorithm.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
Method to print SuperCell Conditions.
Definition at line 469 of file LArSCL1Maker.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inlineprivate |
Definition at line 112 of file LArSCL1Maker.h.
|
inlinevirtualinherited |
Definition at line 100 of file AthCommonReentrantAlgorithm.h.
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
|
overridevirtualinherited |
Override sysInitialize.
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in HypoBase, and InputMakerBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Property: ADC2MeV conversion (conditions input).
Definition at line 108 of file LArSCL1Maker.h.
|
private |
Definition at line 153 of file LArSCL1Maker.h.
|
private |
auxiliary HEC data: auto-correlation matrix
Definition at line 190 of file LArSCL1Maker.h.
|
private |
Property: AutoCorr Noise (conditions input).
Definition at line 103 of file LArSCL1Maker.h.
|
private |
pointer to the TriggerTimeTool
Definition at line 164 of file LArSCL1Maker.h.
|
private |
Background Digit Overlay, default key is Bkg_LArDigitSCL2.
Definition at line 196 of file LArSCL1Maker.h.
|
private |
Definition at line 83 of file LArSCL1Maker.h.
|
private |
algorithm property: switch chrono on
Definition at line 227 of file LArSCL1Maker.h.
|
private |
Definition at line 150 of file LArSCL1Maker.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
|
private |
output first samples
Definition at line 232 of file LArSCL1Maker.h.
|
private |
Property: Fraction of Energy Sampled (conditions input).
Definition at line 91 of file LArSCL1Maker.h.
|
private |
list of hit containers
Definition at line 202 of file LArSCL1Maker.h.
|
private |
hit map
Definition at line 193 of file LArSCL1Maker.h.
|
private |
Definition at line 174 of file LArSCL1Maker.h.
|
private |
algorithm property: no calibration mode for EM towers
Definition at line 223 of file LArSCL1Maker.h.
|
private |
algorithm property: no calibration mode for had towers
Definition at line 225 of file LArSCL1Maker.h.
|
private |
algorithm property: noise (in all sub-detectors) is on if true
Definition at line 219 of file LArSCL1Maker.h.
|
private |
Property: Electronics Noise (conditions input).
Definition at line 99 of file LArSCL1Maker.h.
|
private |
output number of samples
Definition at line 230 of file LArSCL1Maker.h.
|
private |
pointer to the offline id helper
Definition at line 170 of file LArSCL1Maker.h.
|
private |
pointer to the online LAr helper
Definition at line 172 of file LArSCL1Maker.h.
|
private |
Property: Pedestal offset (conditions input).
Definition at line 95 of file LArSCL1Maker.h.
|
private |
algorithm property: pile up or not
Definition at line 221 of file LArSCL1Maker.h.
|
private |
Definition at line 154 of file LArSCL1Maker.h.
|
private |
Definition at line 151 of file LArSCL1Maker.h.
|
private |
Definition at line 234 of file LArSCL1Maker.h.
|
private |
pointer to the offline TT helper
Definition at line 168 of file LArSCL1Maker.h.
|
private |
Definition at line 166 of file LArSCL1Maker.h.
|
private |
Property: Pulse shape (conditions input).
Definition at line 87 of file LArSCL1Maker.h.
|
private |
output Lar Digits SC container
Definition at line 198 of file LArSCL1Maker.h.
|
private |
algorithm property: sub-detectors to be simulated
Definition at line 205 of file LArSCL1Maker.h.
|
private |
Definition at line 155 of file LArSCL1Maker.h.
|
private |
Alorithm property: use trigger time or not.
Definition at line 160 of file LArSCL1Maker.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
staticprivate |
max number of samples in pulse shape
Definition at line 181 of file LArSCL1Maker.h.
|
staticprivate |
number of sampling (in depth)
Definition at line 177 of file LArSCL1Maker.h.
|
staticprivate |
number of energies at which saturation is described (em)
Definition at line 187 of file LArSCL1Maker.h.
|
staticprivate |
number of eta bins
Definition at line 185 of file LArSCL1Maker.h.
|
staticprivate |
number of samples in TTL1s
Definition at line 179 of file LArSCL1Maker.h.
|
staticprivate |
peak position
Definition at line 183 of file LArSCL1Maker.h.