ATLAS Offline Software
LArCellCont.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 
29 
30 #include <vector>
31 
32 class ILArBadFebMasker;
33 class CaloBCIDAverage;
34 class LArRoIMap;
35 class LArOnOffIdMapping;
37 
39 class LArCellCont : public std::vector<LArCellCollection*>
40 {
41 
42  public:
43 
46 
48  LArCellCont( ) ;
49 
54  const std::vector<LArCellCollection*>::const_iterator
55  find(const HWIdentifier& id) const ;
60  const std::vector<LArCellCollection*>::const_iterator
61  find(const unsigned int& id) ;
65  HWIdentifier findsec(const unsigned int& id) const ;
69  void applyBCIDCorrection(const unsigned int& rodid);
70 
72  virtual ~LArCellCont() { };
73 
75  StatusCode initialize( const LArRoIMap& roiMap,
76  const LArOnOffIdMapping& onOffMap,
77  const LArMCSym& mcsym, const LArFebRodMapping& febrod,
78  const LArBadChannelCont& badchannel,
79  const CaloDetDescrManager& ddm) ;
81  StatusCode finalize( void ) ;
83  void eventNumber ( const unsigned int eN ) { m_event=eN; };
85  void lumiBlock_BCID(const unsigned int lumi_block, const unsigned int BCID);
86 
88  const std::vector<uint32_t>& MissingROBs( void ) {
89  return m_MissingROBs;
90  }
91 
92  bool lumiBCIDCheck( const EventContext& context );
94  void updateBCID( const CaloBCIDAverage&, const LArOnOffIdMapping& );
95 
96 private:
97 
104  std::vector<HWIdentifier> m_second;
106  std::vector<unsigned int> m_eventNumber ;
108  unsigned int m_event;
110  std::vector<DataVector<LArCell>*> m_vecs;
111 
113  //const ILArBadChannelMasker *m_masker;
117  std::vector<uint32_t> m_MissingROBs;
119  std::vector< std::vector<int> > m_hashSym;
121  std::vector<float> m_corrBCID;
123  std::map<HWIdentifier,int> m_indexset;
126  unsigned int m_bcid;
128 
131 };
132 
133 #endif
134 
LArFebRodMapping
Definition: LArFebRodMapping.h:17
LArFebRodMapping.h
LArCellCont::m_hash
LArRodIdHash m_hash
Hash ID Identifier mapping to collection index.
Definition: LArCellCont.h:99
LArCellCont::m_BCIDcache
bool m_BCIDcache
flag to only update cache when trying to apply corrections
Definition: LArCellCont.h:130
LArCellCont::m_second
std::vector< HWIdentifier > m_second
FEB Hardware Identifier for second FEBs in a Collection.
Definition: LArCellCont.h:104
LArCellCont::lumiBCIDCheck
bool lumiBCIDCheck(const EventContext &context)
Definition: LArCellCont.cxx:270
LArBadXCont
Conditions-Data class holding LAr Bad Channel or Bad Feb information.
Definition: LArBadChannelCont.h:28
LArCellCont::find
const std::vector< LArCellCollection * >::const_iterator find(const HWIdentifier &id) const
Finds a collection by its LArReadoutModuleID.
Definition: LArCellCont.cxx:201
LArCellCont::m_eventNumber
std::vector< unsigned int > m_eventNumber
eventNumber of a given Collection
Definition: LArCellCont.h:106
LArRodIdHash.h
LArCellCont
Class which contains statically allocated LArCellCollections.
Definition: LArCellCont.h:40
LArCellCont::findsec
HWIdentifier findsec(const unsigned int &id) const
Each Collection contains data from 2 FEBs.
Definition: LArCellCont.cxx:238
HWIdentifier
Definition: HWIdentifier.h:13
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
LArBadChannelCont.h
event_number_t
EventIDBase::event_number_t event_number_t
Definition: IEvtIdModifierSvc.h:30
LArCellCont::applyBCIDCorrection
void applyBCIDCorrection(const unsigned int &rodid)
method to apply correction based on the luminosity to the energy
Definition: LArCellCont.cxx:219
LArMCSym
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition: LArMCSym.h:19
LArOnOffIdMapping.h
LArCellCont::m_lumi_block
float m_lumi_block
current lumi_block
Definition: LArCellCont.h:125
LArCellCont::m_event
unsigned int m_event
this event number
Definition: LArCellCont.h:108
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArCellCont::m_bcidEvt
EventIDBase::event_number_t m_bcidEvt
Definition: LArCellCont.h:127
CaloBCIDAverage
Definition: CaloBCIDAverage.h:16
ILArBadFebMasker
Definition: ILArBadFebMasker.h:15
LArCellCont::m_badFebMasker
const ILArBadFebMasker * m_badFebMasker
A tool to help mask cells.
Definition: LArCellCont.h:115
Hid2RESrcID
Definition: Hid2RESrcID.h:38
LArCellCollection
Container Class for LArCell in a ROB used by EF.
Definition: LArCellCollection.h:28
HWIdentifier.h
LArCellCont::m_corrBCID
std::vector< float > m_corrBCID
corrections for a given BCID
Definition: LArCellCont.h:121
LArCellCont::initialize
StatusCode initialize(const LArRoIMap &roiMap, const LArOnOffIdMapping &onOffMap, const LArMCSym &mcsym, const LArFebRodMapping &febrod, const LArBadChannelCont &badchannel, const CaloDetDescrManager &ddm)
initialize method.
Definition: LArCellCont.cxx:22
LArCellCont::m_conv
Hid2RESrcID m_conv
Hardware to Source ID conversion.
Definition: LArCellCont.h:101
LArCellCont::updateBCID
void updateBCID(const CaloBCIDAverage &, const LArOnOffIdMapping &)
update BCID dependent correction table for MT case
Definition: LArCellCont.cxx:253
LArCellCont::m_bcid
unsigned int m_bcid
Definition: LArCellCont.h:126
EventInfo.h
LArCellCont::LArCellCont
LArCellCont()
Constructor.
Definition: LArCellCont.cxx:18
LArCellCont::lumiBlock_BCID
void lumiBlock_BCID(const unsigned int lumi_block, const unsigned int BCID)
sets LumiBlock and BCID
Definition: LArCellCont.cxx:243
LArCellCont::m_vecs
std::vector< DataVector< LArCell > * > m_vecs
One needs to destroy the TT vectors.
Definition: LArCellCont.h:110
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
LArCellCollection.h
LArCellCont::m_indexset
std::map< HWIdentifier, int > m_indexset
index table
Definition: LArCellCont.h:123
LArRoIMap
Mapping between calorimeter trigger id to offline/online Identifier.
Definition: LArRoIMap.h:31
LArRodIdHash
class that provides LArReadoutModuleID to integer hash ID mapping.
Definition: LArRodIdHash.h:26
LArCellCont::m_MissingROBs
std::vector< uint32_t > m_MissingROBs
List of Missing ROBs to be disabled at the RS.
Definition: LArCellCont.h:117
LArCellCont::m_hashSym
std::vector< std::vector< int > > m_hashSym
hash references to BCID
Definition: LArCellCont.h:119
LArCellCont::MissingROBs
const std::vector< uint32_t > & MissingROBs(void)
List of Missing ROBs.
Definition: LArCellCont.h:88
LArCellCont::~LArCellCont
virtual ~LArCellCont()
destructor
Definition: LArCellCont.h:72
Hid2RESrcID.h
LArMCSym.h
LArCellCont::IDENTIFIABLE
LArCellCollection IDENTIFIABLE
Identifiable definition to be compatible with LArCellIDC.
Definition: LArCellCont.h:45
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20
LArCellCont::finalize
StatusCode finalize(void)
finalize method.
Definition: LArCellCont.cxx:181
LArCellCont::eventNumber
void eventNumber(const unsigned int eN)
sets Event Number
Definition: LArCellCont.h:83