ATLAS Offline Software
Loading...
Searching...
No Matches
JetProbInfoBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5
7#include "GaudiKernel/MsgStream.h"
8#include <math.h>
9#include <iostream>
10#include <vector>
11
12namespace Analysis {
13
18
20 JetProbInfoBase::JetProbInfoBase(const TagInfoType& tagJetInfoType) : BaseTagInfo(tagJetInfoType), m_ntrk(0) {
21 m_tagLikelihood.clear();
22 }
23
29
32 {
33 if (this!=&rhs)
34 {
37 m_ntrk=rhs.m_ntrk;
38 }
39 return *this;
40 }
41
45
47 MsgStream& operator<<( MsgStream& out, const JetProbInfoBase& info) {
48 double pb = info.tagLikelihood()[0];
49 out << " - Tag type " << info.infoType()
50 << " : Prob= " << pb << " based on " << info.nbTracks() << " tracks." << endmsg;
51 return out;
52 }
53
55 std::ostream& operator<<( std::ostream& out, const JetProbInfoBase& info) {
56 double pb = info.tagLikelihood()[0];
57 out << " - Tag type " << info.infoType()
58 << " : Prob= " << pb << " based on " << info.nbTracks() << " tracks." << std::endl;
59 return out;
60 }
61
62}
#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 JetProb taggers results.
virtual ~JetProbInfoBase()
default destructor
JetProbInfoBase()
default constructor
JetProbInfoBase & operator=(const JetProbInfoBase &rhs)
assigenment operator
The namespace of all packages in PhysicsAnalysis/JetTagging.
MsgStream & operator<<(MsgStream &out, const IPInfoBase &)
output.
std::string TagInfoType