ATLAS Offline Software
Loading...
Searching...
No Matches
LArCellCont.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5/********************************************************************
6
7 NAME: LArCellCont.h
8 PACKAGE: Trigger/TrigAlgorithms/TrigT2CaloCommon
9
10 AUTHOR: Denis Oliveira Damazio
11
12 PURPOSE: Container with statically allocated LArCellCollections.
13 To be prepared in the Algorithm initialize and kept up
14 to algorithm finalize.
15*******************************************************************/
16
17#ifndef TRIGT2CALOCOMMON_LARCELLCONT_H
18#define TRIGT2CALOCOMMON_LARCELLCONT_H
19
21
30
31#include <vector>
32#include <map>
33#include <cstdint> //uint32_t
34
36class CaloBCIDAverage;
37class LArRoIMap;
39
41class LArCellCont : public std::vector<LArCellCollection*>
42{
43
44public:
45
48
50 LArCellCont( ) = default;
51
56 const std::vector<LArCellCollection*>::const_iterator
57 find(const HWIdentifier& id) const ;
58
63 const std::vector<LArCellCollection*>::const_iterator
64 find(unsigned int id) ;
65
69 HWIdentifier findsec(unsigned int id) const ;
70
74 void applyBCIDCorrection(unsigned int rodid);
75
77 StatusCode initialize( const LArRoIMap& roiMap,
78 const LArOnOffIdMapping& onOffMap,
79 const LArMCSym& mcsym, const LArFebRodMapping& febrod,
80 const LArBadChannelCont& badchannel,
81 const CaloDetDescrManager& ddm) ;
83 StatusCode finalize( void ) ;
85 void eventNumber ( const unsigned int eN ) { m_event=eN; };
87 void lumiBlock_BCID(const unsigned int lumi_block, const unsigned int BCID);
88
90 const std::vector<uint32_t>& MissingROBs( void ) {
91 return m_MissingROBs;
92 }
93
94 bool lumiBCIDCheck( const EventContext& context );
96 void updateBCID( const CaloBCIDAverage&, const LArOnOffIdMapping& );
97
98private:
99
106 std::vector<HWIdentifier> m_second;
108 std::vector<unsigned int> m_eventNumber ;
110 unsigned int m_event{0};
112 std::vector<DataVector<LArCell>*> m_vecs;
113
115 //const ILArBadChannelMasker *m_masker;
119 std::vector<uint32_t> m_MissingROBs;
121 std::vector< std::vector<int> > m_hashSym;
123 std::vector<float> m_corrBCID;
125 std::map<HWIdentifier, size_t> m_indexset;
127 unsigned int m_lumi_block{0};
128 unsigned int m_bcid{5000};
129 EventIDBase::event_number_t m_bcidEvt{5000};
130
132 bool m_BCIDcache{false};
133};
134
135#endif
136
LArBadXCont< LArBadChannel > LArBadChannelCont
This class provides the client interface for accessing the detector description information common to...
Container Class for LArCell in a ROB used by EF.
void applyBCIDCorrection(unsigned int rodid)
method to apply correction based on the luminosity to the energy
Hid2RESrcID m_conv
Hardware to Source ID conversion.
HWIdentifier findsec(unsigned int id) const
Each Collection contains data from 2 FEBs.
std::vector< std::vector< int > > m_hashSym
hash references to BCID
const std::vector< uint32_t > & MissingROBs(void)
List of Missing ROBs.
Definition LArCellCont.h:90
LArCellCollection IDENTIFIABLE
Identifiable definition to be compatible with LArCellIDC.
Definition LArCellCont.h:47
std::vector< DataVector< LArCell > * > m_vecs
One needs to destroy the TT vectors.
std::vector< uint32_t > m_MissingROBs
List of Missing ROBs to be disabled at the RS.
std::vector< float > m_corrBCID
corrections for a given BCID
unsigned int m_bcid
const ILArBadFebMasker * m_badFebMasker
A tool to help mask cells.
LArRodIdHash m_hash
Hash ID Identifier mapping to collection index.
bool m_BCIDcache
flag to only update cache when trying to apply corrections
const std::vector< LArCellCollection * >::const_iterator find(const HWIdentifier &id) const
Finds a collection by its LArReadoutModuleID.
unsigned int m_lumi_block
current lumi_block
void lumiBlock_BCID(const unsigned int lumi_block, const unsigned int BCID)
sets LumiBlock and BCID
void eventNumber(const unsigned int eN)
sets Event Number
Definition LArCellCont.h:85
void updateBCID(const CaloBCIDAverage &, const LArOnOffIdMapping &)
update BCID dependent correction table for MT case
StatusCode finalize(void)
finalize method.
std::map< HWIdentifier, size_t > m_indexset
index table
LArCellCont()=default
Constructor.
EventIDBase::event_number_t m_bcidEvt
unsigned int m_event
this event number
std::vector< unsigned int > m_eventNumber
eventNumber of a given Collection
bool lumiBCIDCheck(const EventContext &context)
std::vector< HWIdentifier > m_second
FEB Hardware Identifier for second FEBs in a Collection.
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition LArMCSym.h:19
Mapping between calorimeter trigger id to offline/online Identifier.
Definition LArRoIMap.h:31
class that provides LArReadoutModuleID to integer hash ID mapping.
void initialize()