ATLAS Offline Software
Loading...
Searching...
No Matches
LArHitEMap.h
Go to the documentation of this file.
1//Dear emcas this is -*-c++-*--
2/*
3 Copyright (C) 2002-2024 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
17
18
20
22{
23
24public:
25 typedef std::vector<const LArDigit*> DIGMAP;
26
27private:
28 std::vector<LArHitList> m_emap;
33
34public:
35 LArHitEMap() = delete;
36 LArHitEMap(const LArOnOffIdMapping* cabling, const CaloCell_ID* cellid, const CaloDetDescrManager* cddMgr, bool digit=false);
37 ~LArHitEMap() = default;
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 size_t GetNbCells(void) const {return m_emap.size(); }
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
55CLASS_DEF( LArHitEMap , 103846231 , 1 )
56#endif
Definition of CaloDetDescrManager.
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Helper class for offline cell identifiers.
Definition CaloCell_ID.h:34
This class provides the client interface for accessing the detector description information common to...
This is a "hash" representation of an Identifier.
Liquid Argon digit base class.
Definition LArDigit.h:25
bool BuildWindows(const McEventCollection *mcCollptr, float deta, float dphi, float ptmin)
std::vector< LArHitList > m_emap
Definition LArHitEMap.h:28
const std::vector< std::pair< float, float > > & GetTimeE(const IdentifierHash index) const
Definition LArHitEMap.h:44
bool AddEnergy(const IdentifierHash index, const float energy, const float time)
bool AddDigit(const LArDigit *digit)
const CaloCell_ID * m_calocell_id
Definition LArHitEMap.h:31
~LArHitEMap()=default
size_t GetNbCells(void) const
Definition LArHitEMap.h:42
const LArHitList & GetCell(const unsigned int index) const
Definition LArHitEMap.h:43
const LArDigit * GetDigit(unsigned int index) const
Definition LArHitEMap.h:48
LArHitEMap()=delete
const LArOnOffIdMapping * m_cabling
Definition LArHitEMap.h:30
const CaloDetDescrManager * m_cddMgr
Definition LArHitEMap.h:32
std::vector< const LArDigit * > DIGMAP
Definition LArHitEMap.h:25
DIGMAP m_digmap
Definition LArHitEMap.h:29
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
Definition index.py:1