CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkFitStatus.cxx
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: TrkFitStatus.cxx,v 1.1.1.1 2005/04/21 06:01:42 zhangy Exp $
4//
5// Description:
6//
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author(s): Steve Schaffner
12//
13// Revision History:
14// 20020502 Michael Kelsey -- Remove size argument from _history
15//------------------------------------------------------------------------
17//#include "ErrLogger/ErrLog.h"
18#include <iostream>
19#include <iterator>
20using std::endl;
21using std::ostream;
22
24 _fitValid(false),
25 _fitCurrent(false),
26 _is2d(false),
27 _multScat(false)
28{}
29
31{
32}
33
34// Copy ctor
36 _history(right._history),
37 _fitValid(right._fitValid),
38 _fitCurrent(right._fitCurrent),
39 _is2d(right._is2d),
40 _multScat(right._multScat)
41{}
42
45{
46 if(&right != this){
47 _is2d = right._is2d;
48 _multScat = right._multScat;
49 _fitValid = right._fitValid;
50 _fitCurrent = right._fitCurrent;
51 _history = right._history;
52 }
53 return *this;
54}
55
56void
58{
59 _fitValid = v;
60 if (!v) setCurrent(false);
61}
62
63ostream& operator<<( ostream& os, const TrkFitStatus& s )
64{
65 return s.printStatus(os);
66}
67
69TrkFitStatus::printStatus(ostream& os) const
70{
71 os << " 3-d: " << (is2d() == 0) << " ";
72 return printHistory(os);
73}
74
75void
77 const char* modulename)
78{
79// append the module name to the error code message
80 _history.push_back(TrkHistory(status,modulename));
81}
82
83ostream&
85{
86 //FIXME: this doesn't work because ostream isn't a std::ostream, so
87 // std::ostream_iterator doesn't like this...
88 // std::copy(_history.begin(),_history.end(),std::ostream_iterator<TrkHistory>(os,"\n"));
89 for(history_iterator i=_history.begin();i!=_history.end();++i)
90 os << *i << endl;
91 return os;
92}
XmlRpcServer s
Definition: HelloServer.cpp:11
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
ostream & operator<<(ostream &os, const TrkFitStatus &s)
void setValid(bool v)
virtual ~TrkFitStatus()
void setCurrent(bool c)
Definition: TrkFitStatus.h:39
std::ostream & printStatus(std::ostream &os=std::cout) const
TrkFitStatus & operator=(const TrkFitStatus &)
virtual void addHistory(const TrkErrCode &status, const char *modulename)
bool is2d() const
Definition: TrkFitStatus.h:32
std::ostream & printHistory(std::ostream &os=std::cout) const
std::ostream ostream
Definition: bpkt_streams.h:41