ATLAS Offline Software
Loading...
Searching...
No Matches
AlignPar.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace Trk {
8
9 //________________________________________________________________________
10 MsgStream& operator << (MsgStream& sl, const AlignPar& ap)
11 {
12 sl << "alignPar type : " << std::setw(10) << ap.dumpType()
13 << "(" << ap.paramType() << " ) : " << &ap << endmsg;
14 sl << " init par: " << std::setw(6) << std::showpos << std::fixed
15 << ap.initPar()<<" +/- "<<std::noshowpos << ap.initErr()
16 << resetiosflags(std::ios::floatfield) << endmsg;
17 sl << " par: "<< std::showpos << ap.par() << " +/- "
18 << std::noshowpos << ap.err() << endmsg;
19 sl << " final par: "<< std::showpos << ap.finalPar() << " +/- "
20 << std::noshowpos << ap.finalErr() << endmsg;
21 sl << " sigma: "<< ap.sigma() << endmsg;
22 sl << " soft-cut: "<< ap.softCut() << endmsg;
23 sl << " first drv: "<< std::showpos << ap.firstDeriv()
24 << std::noshowpos << endmsg;
25 sl << " secnd drv: "<< std::showpos << ap.secndDeriv()
26 << std::noshowpos << endmsg;
27 return sl;
28 }
29
30 //________________________________________________________________________
31 std::string AlignPar::dumpType() const
32 {
33 switch(paramType()) {
34 case AlignModule::TransX : return "TransX";
35 case AlignModule::TransY : return "TransY";
36 case AlignModule::TransZ : return "TransZ";
37 case AlignModule::RotX : return "RotX";
38 case AlignModule::RotY : return "RotY";
39 case AlignModule::RotZ : return "RotZ";
40 case AlignModule::BowX : return "BowX";
41 case AlignModule::BowY : return "BowY";
42 case AlignModule::BowZ : return "BowZ";
43 default:
44 std::ostringstream stm;
45 stm << "ParType" << paramType();
46 return stm.str();
47 }
48 }
49
50}
#define endmsg
std::string dumpType() const
returns the string representing the type of parameter (i.e.
Definition AlignPar.cxx:31
AlignModule::TransformParameters paramType() const
returns the type of parameter (i.e.
Definition AlignPar.h:47
Ensure that the ATLAS eigen extensions are properly loaded.
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output