InDetTrackSummary.cxx 1.16 KB
Newer Older
1
2
3
4
5
6
7
/*
  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/

#include "TrkTrackSummary/InDetTrackSummary.h"

#include "GaudiKernel/MsgStream.h"
8
#include <iostream>
9

10
11
12
13
Trk::InDetTrackSummary::InDetTrackSummary()
  : m_likelihoodspixeldedx(3, -1)
  , m_massdedx(-1)
{}
14
15


16
17
std::ostream&
Trk::operator<<(std::ostream& out, const InDetTrackSummary& trackSum)
18
{
19
20
21
22
23
24
  out << "InDetTrackSummary: likelihoods from pixel dEdx (pion/kaon/proton): "
      << trackSum.likelihoodsPixeldEdx()[0] << " "
      << trackSum.likelihoodsPixeldEdx()[1] << " "
      << trackSum.likelihoodsPixeldEdx()[2] << std::endl;
  out << "InDetTrackSummary: mass calculated using pixel dEdx: "
      << trackSum.massPixeldEdx() << std::endl;
25
26
27
  return out;
}

28
29
MsgStream&
Trk::operator<<(MsgStream& out, const InDetTrackSummary& trackSum)
30
{
31
32
33
34
35
36
  out << "InDetTrackSummary: likelihoods from pixel dEdx (pion/kaon/proton): "
      << trackSum.likelihoodsPixeldEdx()[0] << " "
      << trackSum.likelihoodsPixeldEdx()[1] << " "
      << trackSum.likelihoodsPixeldEdx()[2] << endmsg;
  out << "InDetTrackSummary: mass calculated using pixel dEdx: "
      << trackSum.massPixeldEdx() << endmsg;
37
38
  return out;
}