ATLAS Offline Software
Loading...
Searching...
No Matches
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
33class CaloBCIDAverage;
34class LArRoIMap;
37
39class 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
96private:
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;
127 EventIDBase::event_number_t m_bcidEvt;
128
131};
132
133#endif
134
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.
Hid2RESrcID m_conv
Hardware to Source ID conversion.
virtual ~LArCellCont()
destructor
Definition LArCellCont.h:72
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:88
LArCellCollection IDENTIFIABLE
Identifiable definition to be compatible with LArCellIDC.
Definition LArCellCont.h:45
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.
Definition LArCellCont.h:99
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.
void applyBCIDCorrection(const unsigned int &rodid)
method to apply correction based on the luminosity to the energy
float 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:83
std::map< HWIdentifier, int > m_indexset
index table
void updateBCID(const CaloBCIDAverage &, const LArOnOffIdMapping &)
update BCID dependent correction table for MT case
HWIdentifier findsec(const unsigned int &id) const
Each Collection contains data from 2 FEBs.
StatusCode finalize(void)
finalize method.
LArCellCont()
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()