![]() |
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 () |
| 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 const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| 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 | |
| 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 81 of file Run2TriggerTowerMaker.cxx.
|
virtual |
Definition at line 151 of file Run2TriggerTowerMaker.cxx.
|
delete |
|
private |
Functions to simulate processing of tower signals.
Definition at line 1149 of file Run2TriggerTowerMaker.cxx.
|
privatevirtual |
Add overlay data.
Definition at line 397 of file Run2TriggerTowerMaker.cxx.
|
privatevirtual |
Add the overlay TriggerTower to the signal TriggerTower.
Definition at line 475 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 562 of file Run2TriggerTowerMaker.cxx.
|
private |
calculate LUT out
Definition at line 520 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 541 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 1217 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 1135 of file Run2TriggerTowerMaker.cxx.
|
private |
Get integer eta bin
Definition at line 1227 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1174 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.
| StatusCode LVL1::Run2TriggerTowerMaker::execute | ( | ) |
Checks that the Cell Type is supported (terminates with errors if not) and calls relevant routine to look for the cells.
Definition at line 308 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 50 of file AthAlgorithm.cxx.
| StatusCode LVL1::Run2TriggerTowerMaker::finalize | ( | ) |
Definition at line 300 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 966 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 939 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 213 of file Run2TriggerTowerMaker.cxx.
|
private |
functions to extract eta, phi coordinates from calo tower identifiers
Definition at line 1181 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1202 of file Run2TriggerTowerMaker.cxx.
| StatusCode LVL1::Run2TriggerTowerMaker::initialize | ( | ) |
Definition at line 153 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.
|
private |
Database helper functions for dead and disabled towers.
Definition at line 375 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 382 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 389 of file Run2TriggerTowerMaker.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
private |
Definition at line 1266 of file Run2TriggerTowerMaker.cxx.
|
private |
normalise the number of ADC digits for overlay
Definition at line 647 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 683 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 692 of file Run2TriggerTowerMaker.cxx.
|
private |
PreProcess up to LUT in.
Definition at line 597 of file Run2TriggerTowerMaker.cxx.
|
private |
extract amplitudes from TTL1
steps over Calo towers and creates/fills trigger towers
Definition at line 1028 of file Run2TriggerTowerMaker.cxx.
|
private |
Definition at line 1073 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.
|
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 910 of file Run2TriggerTowerMaker.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< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.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 |
Definition at line 79 of file AthAlgorithm.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.