ATLAS Offline Software
LArHitEMap.h
Go to the documentation of this file.
1 //Dear emcas this is -*-c++-*--
2 /*
3  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef LARDIGITIZATION_LARHITEMAP_H
7 #define LARDIGITIZATION_LARHITEMAP_H
8 //
9 #include <utility>
10 #include <vector>
11 
14 #include "LArRawEvent/LArDigit.h"
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 
19 class McEventCollection;
20 
22 {
23 
24 public:
25  typedef std::vector<const LArDigit*> DIGMAP;
26 
27 private:
28  std::vector<LArHitList> m_emap;
33 
34 public:
35  LArHitEMap() = delete;
36  LArHitEMap(const LArOnOffIdMapping* cabling, const CaloCell_ID* cellid, const CaloDetDescrManager* cddMgr, bool digit=false);
37  ~LArHitEMap(void);
38  bool AddEnergy(const IdentifierHash index, const float energy, const float time);
39  bool AddEnergy(const Identifier cellid, const float energy, const float time);
40  bool BuildWindows(const McEventCollection* mcCollptr,
41  float deta, float dphi, float ptmin);
42  int GetNbCells(void) const;
43  inline const LArHitList& GetCell(const unsigned int index) const {return m_emap[index];} ;
44  inline const std::vector<std::pair<float,float> >& GetTimeE(const IdentifierHash index) const { return m_emap[index].getData();}
45 
46 
47  bool AddDigit(const LArDigit* digit);
48  inline const LArDigit* GetDigit(unsigned int index) const {
49  if (index<m_digmap.size()) return m_digmap[index];
50  else return 0;
51  }
52 
53 };
54 
55 CLASS_DEF( LArHitEMap , 103846231 , 1 )
56 #endif
LArHitList.h
LArHitEMap::m_digmap
DIGMAP m_digmap
Definition: LArHitEMap.h:29
LArHitEMap::LArHitEMap
LArHitEMap()=delete
LArHitEMap::m_calocell_id
const CaloCell_ID * m_calocell_id
Definition: LArHitEMap.h:31
LArHitEMap::GetTimeE
const std::vector< std::pair< float, float > > & GetTimeE(const IdentifierHash index) const
Definition: LArHitEMap.h:44
index
Definition: index.py:1
TrigJetMonitorAlgorithm.ptmin
ptmin
Definition: TrigJetMonitorAlgorithm.py:1226
LArHitEMap::AddEnergy
bool AddEnergy(const IdentifierHash index, const float energy, const float time)
Definition: LArHitEMap.cxx:39
ReadCellNoiseFromCool.cabling
cabling
Definition: ReadCellNoiseFromCool.py:154
LArHitEMap::AddDigit
bool AddDigit(const LArDigit *digit)
Definition: LArHitEMap.cxx:51
checkRpcDigits.digit
digit
Definition: checkRpcDigits.py:186
LArHitEMap::DIGMAP
std::vector< const LArDigit * > DIGMAP
Definition: LArHitEMap.h:25
LArHitEMap::GetCell
const LArHitList & GetCell(const unsigned int index) const
Definition: LArHitEMap.h:43
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
LArHitEMap
Definition: LArHitEMap.h:22
LArHitEMap::~LArHitEMap
~LArHitEMap(void)
LArHitEMap::m_cabling
const LArOnOffIdMapping * m_cabling
Definition: LArHitEMap.h:30
LArOnOffIdMapping.h
LArDigit.h
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
LArHitEMap::m_cddMgr
const CaloDetDescrManager * m_cddMgr
Definition: LArHitEMap.h:32
LArDigit
Liquid Argon digit base class.
Definition: LArDigit.h:25
LArHitEMap::m_emap
std::vector< LArHitList > m_emap
Definition: LArHitEMap.h:28
LArHitEMap::BuildWindows
bool BuildWindows(const McEventCollection *mcCollptr, float deta, float dphi, float ptmin)
Definition: LArHitEMap.cxx:70
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition: McEventCollection.h:33
LArHitEMap::GetDigit
const LArDigit * GetDigit(unsigned int index) const
Definition: LArHitEMap.h:48
LArHitList
Definition: LArHitList.h:9
DeMoScan.index
string index
Definition: DeMoScan.py:364
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LArHitEMap::GetNbCells
int GetNbCells(void) const
Definition: LArHitEMap.cxx:65
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
CLASS_DEF.h
macros to associate a CLID to a type
LArOnOffIdMapping
Definition: LArOnOffIdMapping.h:20
Identifier
Definition: IdentifierFieldParser.cxx:14