|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALOIDENTIFIER_CALONEIGHBOURS_H
6 #define CALOIDENTIFIER_CALONEIGHBOURS_H
35 return ((
unsigned int)id1) < ((
unsigned int)
id2);
43 enum {
SIDE = 2,
SAMPL = 3,
REGION = 4,
ETA = 5,
PHI = 6,
TILESECTION = 1,
TILEPHI = 3,
TILEETA = 4,
TILESAMPL = 5,
FCALETA = 4,
FCALPHI = 5};
53 void setSide(
const int side1,
const int side2);
54 void setPhi(
const int phi1,
const int phi2);
65 inline const std::string&
getName()
const {
109 const std::vector<std::unique_ptr<CaloNeighbourRegion> > ®ions,
110 std::vector<IdentifierHash>& neighbourList) ;
118 #endif // CALOIDENTIFIER_CALONEIGHBOURS_H
void setSourceRange(const Range &theRange)
void setSide(const int side1, const int side2)
int initialize(const CaloCell_Base_ID *caloID, const std::string &filename)
void initializeVectors(std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapPlus, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapMinus)
const CaloCell_Base_ID * m_calo_id
int setNeighbours(ExpandedIdentifier &id1, std::vector< ExpandedIdentifier > &id2, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapPlus, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapMinus)
int getId(ExpandedIdentifier &id, Identifier &rID, const Range &theRange, const int side=+1, const int dphi=0) const
int get_nextInCalo(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
IdentifierHash m_maxHashPlus
IdentifierHash m_minHashMinus
const std::string & getName() const
bool operator()(const IdentifierHash &id1, const IdentifierHash &id2) const
IdentifierHash m_minHashPlus
NEIGHBOURTYPE getType() const
void setTargetRange(const Range &theRange)
void setPhi(const int phi1, const int phi2)
virtual ~CaloNeighbourRegion()
IdentifierHash m_maxHashMinus
std::vector< std::unique_ptr< CaloNeighbourRegion > > m_prev_regions
std::vector< std::unique_ptr< std::vector< IdentifierHash > > > m_neighbours_minus
std::vector< std::unique_ptr< std::vector< IdentifierHash > > > m_neighbours_plus
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
static int get_neighbours(const IdentifierHash &id, const std::vector< std::unique_ptr< CaloNeighbourRegion > > ®ions, std::vector< IdentifierHash > &neighbourList)
std::vector< std::unique_ptr< CaloNeighbourRegion > > m_next_regions
const CaloCell_Base_ID * m_calo_id
void setType(const NEIGHBOURTYPE type)
int getNeighbours(const IdentifierHash caloHash, std::vector< IdentifierHash > &neighbourList) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Helper base class for offline cell identifiers.
int get_prevInCalo(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
virtual ~CaloNeighbours()
CaloNeighbourRegion(const std::string &name, const CaloCell_Base_ID *theCaloId)