 |
ATLAS Offline Software
|
Go to the documentation of this file.
8 std::string whiteSpaces(std::size_t
n) {
19 case Precision:
return "Precision";
20 case TriggerEta:
return "TriggerEta";
21 case TriggerPhi:
return "TriggerPhi";
22 case nCategories:
return "nCategories";
29 case OnTrack:
return "OnTrack";
31 case Hole:
return "Hole";
32 case MaxValue:
return "MaxValue";
40 if (
layer == LayerIndex::BarrelExtended) {
41 layer = LayerIndex::Extended;
45 constexpr
unsigned AxBxC = 2 *AxB;
61 using ColumnArray_t = std::array<std::string, 6>;
62 std::vector<ColumnArray_t> summaryTable{ColumnArray_t{
"layer",
"sector",
"type",
63 "on-track",
"outlier",
"hole"}};
67 for (
const bool small: {
false,
true}) {
73 if (onTrk + outlier +
hole == 0
u) {
77 (small ?
"small" :
"large"),
83 std::array<std::size_t, 6> widths{};
84 for (
const ColumnArray_t&
row : summaryTable) {
85 for (std::size_t
c = 0 ;
c <
row.size(); ++
c) {
89 for (
const ColumnArray_t&
row : summaryTable) {
91 for (std::size_t
c = 0;
c <
row.size(); ++
c) {
92 const std::size_t
W = widths[
c] -
row[
c].size();
93 const std::size_t nWL = (
W -
W % 2) / 2;
94 const std::size_t nWR = (
W -
W % 2) / 2 +
W%2;
95 ostr<<
" "<<whiteSpaces(nWL)<<
row[
c]<<whiteSpaces(nWR)<<
" |";
LayerIndex
enum to classify the different layers in the muon spectrometer
@ TriggerPhi
Trigger eta hits (Tgc, Rpc)
unsigned translate(const HitCategory cat, const Status status, LayerIndex layer, const bool isSmall) const
Translates the 4 classification indices to a unique consecutive number (used for storage access)
std::string to_string(const SectorProjector proj)
@ nCategories
Trigger phi hits (Tgc, Rpc)
@ u
Enums for curvilinear frames.
@ MaxValue
Expected hit but missing.
void print(std::ostream &ostr) const
Print the summary as an ASCII table.
HitCategory
Category of the hit.
static std::string toString(const HitCategory c)
Converts the hit category to a string.
value_type value(const HitCategory cat, const Status status, const LayerIndex layer, const bool isSmall) const
Returns the value type for a defined hit category & layer.
@ Hole
Added to the trajectory but rejected.
const std::string & layerName(LayerIndex index)
convert LayerIndex into a string
This header ties the generic definitions in this package.
@ Outlier
Added to the trajectory & contributing to the fit.
Status
Contribution to the track fit.
@ TriggerEta
Precision hits (Mdt, NSW) on track.
bool isSmall(const ChIndex index)
Returns true if the chamber index is in a small sector.
constexpr int toInt(const EnumType enumVal)