ATLAS Offline Software
PhysicsAnalysis
TopPhys
xAOD
TopObjectSelectionTools
TopObjectSelectionTools
TruthSelectionBase.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRUTHSELECTIONBASE_H_
6
#define TRUTHSELECTIONBASE_H_
7
8
#include "
xAODTruth/TruthParticleContainer.h
"
9
10
#include <memory>
11
18
namespace
top
{
19
class
TruthSelectionBase
{
20
public
:
21
TruthSelectionBase
();
22
23
virtual
~TruthSelectionBase
() {}
24
25
virtual
bool
passSelection
(
const
xAOD::TruthParticle
&)
const
= 0;
26
27
virtual
void
print
(std::ostream&)
const
= 0;
28
protected
:
29
bool
isBhadron
(
int
pid
)
const
;
30
bool
isChadron
(
int
pid
)
const
;
31
32
TruthSelectionBase
(
const
TruthSelectionBase
& rhs);
33
TruthSelectionBase
(
const
TruthSelectionBase
&& rhs);
34
void
operator =
(
const
TruthSelectionBase
& rhs);
35
};
36
}
37
38
std::ostream&
operator <<
(std::ostream&
os
,
const
top::TruthSelectionBase
&
selection
);
39
40
#endif
top::TruthSelectionBase::isBhadron
bool isBhadron(int pid) const
Definition:
TruthSelectionBase.cxx:16
top
TopConfig A simple configuration that is NOT a singleton.
Definition:
AnalysisTrackingHelper.cxx:58
TruthParticleContainer.h
operator<<
std::ostream & operator<<(std::ostream &os, const top::TruthSelectionBase &selection)
Definition:
TruthSelectionBase.cxx:35
top::TruthSelectionBase::TruthSelectionBase
TruthSelectionBase(const TruthSelectionBase &rhs)
top::TruthSelectionBase::passSelection
virtual bool passSelection(const xAOD::TruthParticle &) const =0
top::TruthSelectionBase::TruthSelectionBase
TruthSelectionBase()
Definition:
TruthSelectionBase.cxx:13
top::TruthSelectionBase::operator=
void operator=(const TruthSelectionBase &rhs)
top::TruthSelectionBase
Definition:
TruthSelectionBase.h:19
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:41
ParticleGun_EoverP_Config.pid
pid
Definition:
ParticleGun_EoverP_Config.py:62
top::TruthSelectionBase::~TruthSelectionBase
virtual ~TruthSelectionBase()
Definition:
TruthSelectionBase.h:23
top::TruthSelectionBase::isChadron
bool isChadron(int pid) const
Definition:
TruthSelectionBase.cxx:25
selection
std::string selection
Definition:
fbtTestBasics.cxx:73
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
top::TruthSelectionBase::TruthSelectionBase
TruthSelectionBase(const TruthSelectionBase &&rhs)
top::TruthSelectionBase::print
virtual void print(std::ostream &) const =0
Generated on Fri Jul 5 2024 21:32:11 for ATLAS Offline Software by
1.8.18