ATLAS Offline Software
LArTTCellMap.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOTRIGGERTOOL_LARTTCELLMAP_H
6 #define CALOTRIGGERTOOL_LARTTCELLMAP_H
7 
8 #include "Identifier/Identifier.h"
13 
14 #include <vector>
15 #include <map>
16 
17 
28  : public AthMessaging
29 {
30 public:
31 
32  typedef LArTTCell PDATA;
33 
34  /* Constructor
35  **/
36  LArTTCellMap( ) ;
37 
38  /* Destructor
39  **/
40  ~LArTTCellMap() ;
41 
43  void set( const PDATA& t ) ;
44 
49  const std::vector<Identifier>& createCellIDvec(const Identifier& id) const ;
50 
54  Identifier whichTTID(const Identifier & id) const;
55 
57  const LArTTCell_P* getP() const ;
58 
60  LArTTCell_P* getP() ;
61 
63  void set( const LArTTCell_P& t ) ;
64 
65 private:
66 
67  void convert_to_P(const LArTTCell &t) ; // from NOVA to POOL
68  void convert_to_D(const LArTTCell_P &t, LArTTCell& d) ; // POOL to NOVA
69 
70  /* Offline TT Identifier to Offline cell Identifier mapping */
71  std::map<Identifier,Identifier> m_cell2ttIdMap;
72  std::map<Identifier,std::vector<Identifier> > m_tt2cellIdMap ;
73 
74  // std::map<HWIdentifier,Identifier> m_on2offIdMap;
75 
77 };
78 
79 #include "AthenaKernel/CLASS_DEF.h"
80 CLASS_DEF( LArTTCellMap,174159653,1)
81 #endif
LArTTCellMap::m_tt2cellIdMap
std::map< Identifier, std::vector< Identifier > > m_tt2cellIdMap
Definition: LArTTCellMap.h:72
LArTTCellMap::set
void set(const PDATA &t)
initialize from Nova
Definition: LArTTCellMap.cxx:29
LArTTCellMap::convert_to_D
void convert_to_D(const LArTTCell_P &t, LArTTCell &d)
Definition: LArTTCellMap.cxx:239
hist_file_dump.d
d
Definition: hist_file_dump.py:137
LArID_Exception.h
LArTTCellMap::whichTTID
Identifier whichTTID(const Identifier &id) const
return the offline id (CaloLVL1_ID) of the TT to which a cell (CaloCell_ID) belongs
Definition: LArTTCellMap.cxx:162
LArTTCellMap::createCellIDvec
const std::vector< Identifier > & createCellIDvec(const Identifier &id) const
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID,...
Definition: LArTTCellMap.cxx:182
LArTTCellMap::PDATA
LArTTCell PDATA
Definition: LArTTCellMap.h:32
LArTTCell
std::vector< LArTTCell_t > LArTTCell
Definition: LArTTCell.h:35
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
LArTTCell.h
LArTTCellMap::LArTTCellMap
LArTTCellMap()
Definition: LArTTCellMap.cxx:17
LArTTCellMap::getP
const LArTTCell_P * getP() const
return the persistified map
Definition: LArTTCellMap.cxx:199
LArTTCellMap::convert_to_P
void convert_to_P(const LArTTCell &t)
Definition: LArTTCellMap.cxx:209
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
LArTTCell_P.h
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
LArTTCell_P
This is a database object holding the offline TT-cell map.
Definition: LArTTCell_P.h:23
LArTTCellMap
This is a StoreGate object holding the offline TT-cell map.
Definition: LArTTCellMap.h:29
LArTTCellMap::m_cell2ttIdMap
std::map< Identifier, Identifier > m_cell2ttIdMap
Definition: LArTTCellMap.h:71
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
AthMessaging.h
LArTTCellMap::~LArTTCellMap
~LArTTCellMap()
Definition: LArTTCellMap.cxx:23
CLASS_DEF.h
macros to associate a CLID to a type
LArTTCellMap::m_persData
LArTTCell_P m_persData
Definition: LArTTCellMap.h:76