![]() |
ATLAS Offline Software
|
#include <Run2TriggerTowerMaker.h>
Public Member Functions | |
| Run2TriggerTowerMaker (const std::string &name, ISvcLocator *pSvcLocator) | |
| virtual | ~Run2TriggerTowerMaker () |
| Run2TriggerTowerMaker (const Run2TriggerTowerMaker &)=delete | |
| Run2TriggerTowerMaker & | operator= (const Run2TriggerTowerMaker &)=delete |
| StatusCode | initialize () |
| StatusCode | execute (const EventContext &ctx) |
| Checks that the Cell Type is supported (terminates with errors if not) and calls relevant routine to look for the cells. | |
| StatusCode | finalize () |
| void | handle (const Incident &) |
| Best if initialisation which uses COOL-derived values is done here rather than in initialize(). | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. | |
| 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 |
| Get filter decision: | |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| Set filter decision: | |
| 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 | |
| virtual bool | isReEntrant () const override final |
| Legacy algorithms are not thread-safe. | |
| 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 | |
| enum | CellTypes { CELL =1 , TRIGGERTOWERS =2 , TTL1 =3 , SIZE =4 } |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| L1CaloCoolChannelId | channelId (double eta, double phi, int layer) |
| Compute L1CaloCoolChannelId (including support for old geometries). | |
| StatusCode | getTriggerTowers () |
| gets collection of input TriggerTowers for reprocessing | |
| StatusCode | getCaloTowers () |
| fetch Calorimeter Towers | |
| void | digitize (const EventContext &ctx) |
| Convert analogue pulses to digits. | |
| StatusCode | preProcess (int bcid, float mu) |
| Simulate PreProcessing on analogue amplitudes. | |
| StatusCode | preProcessTower (int bcid, float mu, xAOD::TriggerTower *tower) |
| virtual StatusCode | addOverlay (int bcid, float mu) |
| Add overlay data. | |
| virtual StatusCode | addOverlay (int bcid, float mu, xAOD::TriggerTower *sigTT, xAOD::TriggerTower *ovTT) |
| Add the overlay TriggerTower to the signal TriggerTower. | |
| StatusCode | preProcessTower_getLutIn (int bcid, float mu, xAOD::TriggerTower *tower, const L1CaloPprChanCalib *db, const std::vector< int > &digits, std::vector< int > &output) |
| PreProcess up to LUT in. | |
| StatusCode | calcLutOutCP (const std::vector< int > &sigLutIn, const L1CaloPprChanCalib *sigDB, const std::vector< int > &ovLutIn, const L1CaloPprChanCalib *ovDB, std::vector< int > &output) |
| calculate LUT out | |
| StatusCode | calcLutOutJEP (const std::vector< int > &sigLutIn, const L1CaloPprChanCalib *sigDB, const std::vector< int > &ovLutIn, const L1CaloPprChanCalib *ovDB, std::vector< int > &output) |
| void | calcCombinedLUT (const std::vector< int > &sigIN, const int sigSlope, const int sigOffset, const std::vector< int > &ovIN, const int ovSlope, const int ovOffset, const int ovNoiseCut, std::vector< int > &output) |
| bool | IsDeadChannel (const L1CaloPpmDeadChannels *db) const |
| Database helper functions for dead and disabled towers. | |
| bool | IsDisabledChannel (const L1CaloDisabledTowers *db) const |
| bool | IsGoodTower (const xAOD::TriggerTower *tt, const L1CaloPpmDeadChannelsContainer *dead, const L1CaloDisabledTowersContainer *disabled) const |
| void | normaliseDigits (const std::vector< int > &sigDigits, const std::vector< int > &ovDigits, std::vector< int > &normDigits) |
| normalise the number of ADC digits for overlay | |
| StatusCode | store () |
| Stores Trigger Towers in the TES, at a location defined in m_outputLocation. | |
| void | processLArTowers (const LArTTL1Container *) |
| extract amplitudes from TTL1 | |
| void | processTileTowers (const TileTTL1Container *) |
| double | IDeta (const Identifier &id, const CaloLVL1_ID *caloId) |
| functions to extract eta, phi coordinates from calo tower identifiers | |
| double | IDphi (const Identifier &id, const CaloLVL1_ID *caloId) |
| std::vector< int > | ADC (CLHEP::HepRandomEngine *rndmADCs, L1CaloCoolChannelId channel, const std::vector< double > &s) const |
| Functions to simulate processing of tower signals. | |
| int | EtRange (int et, unsigned short bcidEnergyRangeLow, unsigned short bcidEnergyRangeHigh) const |
| int | etaToElement (float feta, int layer) const |
| int | non_linear_lut (int lutin, unsigned short offset, unsigned short slope, unsigned short noiseCut, unsigned short scale, short par1, short par2, short par3, short par4) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Static Private Attributes | |
| static constexpr int | s_FIRLENGTH = 5 |
| static constexpr int | s_MEV = 1000 |
| static constexpr unsigned int | m_maxIetaBins = 51 |
Definition at line 89 of file Run2TriggerTowerMaker.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
| LVL1::Run2TriggerTowerMaker::Run2TriggerTowerMaker | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Definition at line 80 of file Run2TriggerTowerMaker.cxx.
|
virtual |
Definition at line 150 of file Run2TriggerTowerMaker.cxx.
|
delete |
|
private |
Functions to simulate processing of tower signals.
Definition at line 1147 of file Run2TriggerTowerMaker.cxx.
|
privatevirtual |
Add overlay data.
Definition at line 395 of file Run2TriggerTowerMaker.cxx.
|
privatevirtual |
Add the overlay TriggerTower to the signal TriggerTower.
Definition at line 473 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 560 of file Run2TriggerTowerMaker.cxx.
|
private |
calculate LUT out
Definition at line 518 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 539 of file Run2TriggerTowerMaker.cxx.
|
private |
Compute L1CaloCoolChannelId (including support for old geometries).
Function to compute L1CaloCoolChannelId from eta/phi/layer.
Unlike L1TriggerTowerTool::channelID this function can cope with old geometries (hence the hard-coded numbers). So don't remove this until all ATLAS-CSC datasets are irrevokably deprecated
Definition at line 1215 of file Run2TriggerTowerMaker.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.
|
private |
Convert analogue pulses to digits.
Digitize pulses and store results back in xAOD::TriggerTowers.
Definition at line 1133 of file Run2TriggerTowerMaker.cxx.
|
private |
Get integer eta bin
Definition at line 1225 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1172 of file Run2TriggerTowerMaker.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
virtual |
Checks that the Cell Type is supported (terminates with errors if not) and calls relevant routine to look for the cells.
Implements AthAlgorithm.
Definition at line 307 of file Run2TriggerTowerMaker.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 89 of file AthCommonAlgorithm.cxx.
|
inlinevirtualinherited |
Get filter decision:
Definition at line 93 of file AthCommonAlgorithm.h.
| StatusCode LVL1::Run2TriggerTowerMaker::finalize | ( | ) |
Definition at line 299 of file Run2TriggerTowerMaker.cxx.
|
private |
fetch Calorimeter Towers
fetches LAr & Tile calorimeter towers
If < 7168 towers in input data will be unallocated pointers in vector.
Definition at line 964 of file Run2TriggerTowerMaker.cxx.
|
private |
gets collection of input TriggerTowers for reprocessing
gets TriggerTowers from input collection and copies ADC digits into xAOD::TriggerTowers for reprocessing
If < 7168 towers in input data will be unallocated pointers in vector.
Definition at line 937 of file Run2TriggerTowerMaker.cxx.
| void LVL1::Run2TriggerTowerMaker::handle | ( | const Incident & | inc | ) |
Best if initialisation which uses COOL-derived values is done here rather than in initialize().
Get global scales from configSvc
globalScale is number of GeV/count. As code is already written to use MeV/count, safest thing here is to convert:
Definition at line 212 of file Run2TriggerTowerMaker.cxx.
|
private |
functions to extract eta, phi coordinates from calo tower identifiers
Definition at line 1179 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1200 of file Run2TriggerTowerMaker.cxx.
| StatusCode LVL1::Run2TriggerTowerMaker::initialize | ( | ) |
Definition at line 152 of file Run2TriggerTowerMaker.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.
|
inlineoverridevirtualinherited |
Specify if the algorithm is clonable.
Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.
Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, 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, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.
Definition at line 68 of file AthCommonAlgorithm.h.
|
private |
Database helper functions for dead and disabled towers.
Definition at line 373 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 380 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 387 of file Run2TriggerTowerMaker.cxx.
|
inlinefinaloverrideprotectedvirtualinherited |
Legacy algorithms are not thread-safe.
Definition at line 47 of file AthAlgorithm.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
private |
Definition at line 1264 of file Run2TriggerTowerMaker.cxx.
|
private |
normalise the number of ADC digits for overlay
Definition at line 645 of file Run2TriggerTowerMaker.cxx.
|
delete |
|
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 |
Simulate PreProcessing on analogue amplitudes.
Emulate FIR filter, bunch-crossing identification & LUT, and create & fill TriggerTowers.
Definition at line 681 of file Run2TriggerTowerMaker.cxx.
|
private |
retrieve digits
process tower – digitial filter
dynamic pedestal correction
BCID algorithms (only possible if 7 slices readout)
In simulation external BCID is always zero, but for consistency with data we need to add it to the TriggerTower objects
Definition at line 690 of file Run2TriggerTowerMaker.cxx.
|
private |
PreProcess up to LUT in.
Definition at line 595 of file Run2TriggerTowerMaker.cxx.
|
private |
extract amplitudes from TTL1
steps over Calo towers and creates/fills trigger towers
Definition at line 1026 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1071 of file Run2TriggerTowerMaker.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.
|
inlinevirtualinherited |
Set filter decision:
Reimplemented in AthFilterAlgorithm.
Definition at line 99 of file AthCommonAlgorithm.h.
|
private |
Stores Trigger Towers in the TES, at a location defined in m_outputLocation.
Returns FAILURE if the towers could not be saved.
Returns FAILURE if the towers could not be saved.
Definition at line 908 of file Run2TriggerTowerMaker.cxx.
|
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.
Reimplemented in AthAnalysisAlgorithm.
Definition at line 80 of file AthCommonAlgorithm.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 AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.
Definition at line 60 of file AthCommonAlgorithm.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 |
Definition at line 266 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 131 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 128 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 157 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 159 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 125 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 177 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 181 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 142 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 146 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 180 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 143 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 147 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 184 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 162 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 189 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 179 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 183 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 145 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 149 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 133 of file Run2TriggerTowerMaker.h.
|
privateinherited |
Pointer to StoreGate (detector store by default).
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 122 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 178 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 182 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 144 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 148 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 173 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 276 of file Run2TriggerTowerMaker.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 108 of file AthCommonAlgorithm.h.
|
private |
Definition at line 132 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 277 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 269 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 171 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 174 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 163 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 280 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 156 of file Run2TriggerTowerMaker.h.
|
staticconstexprprivate |
Definition at line 115 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 271 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 273 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 139 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 153 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 152 of file Run2TriggerTowerMaker.h.
|
private |
instead of calculating the expression: double theta =2.
*atan(exp(-fabs(cell_eta))); cell_energy=sin(theta)*cell_energy; for each em and had TT again, we will use a hash table
Definition at line 197 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 165 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 278 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 167 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 155 of file Run2TriggerTowerMaker.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
private |
Definition at line 265 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 186 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 188 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 187 of file Run2TriggerTowerMaker.h.
|
private |
Definition at line 136 of file Run2TriggerTowerMaker.h.
|
staticconstexprprivate |
Definition at line 113 of file Run2TriggerTowerMaker.h.
|
staticconstexprprivate |
Definition at line 114 of file Run2TriggerTowerMaker.h.