ATLAS Offline Software
Loading...
Searching...
No Matches
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
26
28 : public AthMessaging
29{
30public:
31
32 typedef LArTTCell PDATA;
33
34 /* Constructor
35 **/
36 LArTTCellMap( ) ;
37
38 /* Destructor
39 **/
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
65private:
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
80CLASS_DEF( LArTTCellMap,174159653,1)
81#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::vector< LArTTCell_t > LArTTCell
Definition LArTTCell.h:35
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
This is a StoreGate object holding the offline TT-cell map.
Identifier whichTTID(const Identifier &id) const
return the offline id (CaloLVL1_ID) of the TT to which a cell (CaloCell_ID) belongs
std::map< Identifier, Identifier > m_cell2ttIdMap
LArTTCell_P m_persData
LArTTCell PDATA
const std::vector< Identifier > & createCellIDvec(const Identifier &id) const
Return a vector of offline Identifiers (corresponding helpers = LArEM_ID, LArHEC_ID,...
const LArTTCell_P * getP() const
return the persistified map
void convert_to_P(const LArTTCell &t)
void set(const PDATA &t)
initialize from Nova
std::map< Identifier, std::vector< Identifier > > m_tt2cellIdMap
void convert_to_D(const LArTTCell_P &t, LArTTCell &d)
This is a database object holding the offline TT-cell map.
Definition LArTTCell_P.h:23