ATLAS Offline Software
Loading...
Searching...
No Matches
SVInfoBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "GaudiKernel/MsgStream.h"
7#include <math.h>
8#include <iostream>
9
10namespace Analysis {
11
16
18 SVInfoBase::SVInfoBase(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType) {
19 m_tagLikelihood.clear();
20 }
21
27
30 {
31 if (this!=&rhs)
32 {
35 }
36 return *this;
37 }
38
42
44 MsgStream& operator<<( MsgStream& out, const SVInfoBase& info) {
45 double pb = info.tagLikelihood()[0];
46 double pu = info.tagLikelihood()[1];
47 double ww = log(pb/pu);
48 out << " - Tag type " << info.infoType()
49 << " : P(b)= " << pb << " P(u)= " << pu << " W= " << ww << endmsg;
50 return out;
51 }
52
54 std::ostream& operator<<( std::ostream& out, const SVInfoBase& info) {
55 double pb = info.tagLikelihood()[0];
56 double pu = info.tagLikelihood()[1];
57 double ww = log(pb/pu);
58 out << " - Tag type " << info.infoType()
59 << " : P(b)= " << pb << " P(u)= " << pu << " W= " << ww << std::endl;
60 return out;
61 }
62
63}
#define endmsg
TagInfoType m_tagJetInfoType
string to hold the info type (specified by the tag tool)
Definition BaseTagInfo.h:69
std::vector< double > m_tagLikelihood
vector to hold the taglikelihood (signal plus N background)
Definition BaseTagInfo.h:67
BaseTagInfo()
default constructor
Basic class to hold SV taggers results.
Definition SVInfoBase.h:19
virtual ~SVInfoBase()
default destructor
SVInfoBase()
default constructor
SVInfoBase & operator=(const SVInfoBase &rhs)
assigenment operator
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
std::string TagInfoType