ATLAS Offline Software
Loading...
Searching...
No Matches
SiCellId.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace InDetDD{
8 std::ostream & operator << (std::ostream & os, const SiCellId & cellId)
9 {
10 if (cellId.isValid()){
11 return os << "[" << cellId.phiIndex() << "." << cellId.etaIndex() << "]";
12 } else {
13 return os << "[INVALID]";
14 }
15 }
16}// namespace InDetDD
17
Identifier for the strip or pixel cell.
Definition SiCellId.h:29
int phiIndex() const
Get phi index. Equivalent to strip().
Definition SiCellId.h:122
bool isValid() const
Test if its in a valid state.
Definition SiCellId.h:136
int etaIndex() const
Get eta index.
Definition SiCellId.h:114
Message Stream Member.
std::ostream & operator<<(std::ostream &os, const SiCellId &cellId)
Definition SiCellId.cxx:8