#include <CaloNeighbours.h>
|
enum | {
SIDE = 2,
SAMPL = 3,
REGION = 4,
ETA = 5,
PHI = 6,
TILESECTION = 1,
TILEPHI = 3,
TILEETA = 4,
TILESAMPL = 5,
FCALETA = 4,
FCALPHI = 5
} |
|
|
| CaloNeighbourRegion (const std::string &name, const CaloCell_Base_ID *theCaloId) |
|
virtual | ~CaloNeighbourRegion () |
|
void | setType (const NEIGHBOURTYPE type) |
|
void | setSourceRange (const Range &theRange) |
|
void | setTargetRange (const Range &theRange) |
|
void | setSide (const int side1, const int side2) |
|
void | setPhi (const int phi1, const int phi2) |
|
int | setNeighbours (ExpandedIdentifier &id1, std::vector< ExpandedIdentifier > &id2, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapPlus, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapMinus) |
|
void | initializeVectors (std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapPlus, std::map< IdentifierHash, std::vector< IdentifierHash >, ltIdHash > &neighbourMapMinus) |
|
int | getNeighbours (const IdentifierHash caloHash, std::vector< IdentifierHash > &neighbourList) const |
|
NEIGHBOURTYPE | getType () const |
|
const std::string & | getName () const |
|
Definition at line 40 of file CaloNeighbours.h.
◆ anonymous enum
Enumerator |
---|
SIDE | |
SAMPL | |
REGION | |
ETA | |
PHI | |
TILESECTION | |
TILEPHI | |
TILEETA | |
TILESAMPL | |
FCALETA | |
FCALPHI | |
Definition at line 43 of file CaloNeighbours.h.
43 {
SIDE = 2,
SAMPL = 3,
REGION = 4,
ETA = 5,
PHI = 6,
TILESECTION = 1,
TILEPHI = 3,
TILEETA = 4,
TILESAMPL = 5,
FCALETA = 4,
FCALPHI = 5};
◆ CaloNeighbourRegion()
◆ ~CaloNeighbourRegion()
CaloNeighbourRegion::~CaloNeighbourRegion |
( |
| ) |
|
|
virtualdefault |
◆ getId()
Definition at line 111 of file CaloNeighbours.cxx.
127 if ( !theRange.
match(
id) ) {
128 std::cout <<
"CaloNeighbours::set_neighbours ERROR: " << (std::string)
id <<
" is not within the Range " << (std::string)theRange << std::endl;
173 std::cout <<
"CaloNeighbours::get_id ERROR: " << (std::string)
id <<
" is not in the LAr or Tile calorimeters" << std::endl;
◆ getName()
const std::string& CaloNeighbourRegion::getName |
( |
| ) |
const |
|
inline |
◆ getNeighbours()
Definition at line 263 of file CaloNeighbours.cxx.
268 neighbourList.insert(neighbourList.end(),
273 neighbourList.insert(neighbourList.end(),
◆ getType()
◆ initializeVectors()
Definition at line 240 of file CaloNeighbours.cxx.
246 for (
const auto&
p : neighbourMapMinus) {
254 for (
const auto&
p : neighbourMapPlus) {
◆ setNeighbours()
Definition at line 181 of file CaloNeighbours.cxx.
199 for (
int theSide = 0;theSide<nMaxSides;theSide++) {
200 for (
int theDPhi = 0;theDPhi<nMaxPhi;theDPhi++) {
202 int dphi2 = (
int)(theDPhi*rPhi+0.05);
216 std::vector<IdentifierHash> theTargetHashIDs;
225 theTargetHashIDs.push_back(myTargetHash);
228 neighbourMapPlus[myHash] = theTargetHashIDs;
231 neighbourMapMinus[myHash] = theTargetHashIDs;
◆ setPhi()
void CaloNeighbourRegion::setPhi |
( |
const int |
phi1, |
|
|
const int |
phi2 |
|
) |
| |
◆ setSide()
void CaloNeighbourRegion::setSide |
( |
const int |
side1, |
|
|
const int |
side2 |
|
) |
| |
◆ setSourceRange()
void CaloNeighbourRegion::setSourceRange |
( |
const Range & |
theRange | ) |
|
◆ setTargetRange()
void CaloNeighbourRegion::setTargetRange |
( |
const Range & |
theRange | ) |
|
◆ setType()
◆ m_calo_id
◆ m_hasPhi
bool CaloNeighbourRegion::m_hasPhi |
|
private |
◆ m_hasSide
bool CaloNeighbourRegion::m_hasSide |
|
private |
◆ m_iPhiSource
int CaloNeighbourRegion::m_iPhiSource |
|
private |
◆ m_iPhiTarget
int CaloNeighbourRegion::m_iPhiTarget |
|
private |
◆ m_iSideSource
int CaloNeighbourRegion::m_iSideSource |
|
private |
◆ m_iSideTarget
int CaloNeighbourRegion::m_iSideTarget |
|
private |
◆ m_isValidMinus
bool CaloNeighbourRegion::m_isValidMinus |
|
private |
◆ m_isValidPlus
bool CaloNeighbourRegion::m_isValidPlus |
|
private |
◆ m_maxHashMinus
◆ m_maxHashPlus
◆ m_minHashMinus
◆ m_minHashPlus
◆ m_name
std::string CaloNeighbourRegion::m_name |
|
private |
◆ m_neighbours_minus
std::vector< std::unique_ptr<std::vector<IdentifierHash> > > CaloNeighbourRegion::m_neighbours_minus |
|
private |
◆ m_neighbours_plus
std::vector< std::unique_ptr<std::vector<IdentifierHash> > > CaloNeighbourRegion::m_neighbours_plus |
|
private |
◆ m_sourceRange
Range CaloNeighbourRegion::m_sourceRange |
|
private |
◆ m_targetRange
Range CaloNeighbourRegion::m_targetRange |
|
private |
◆ m_type
The documentation for this class was generated from the following files:
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...