ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
ParticleJetTools
JetParticleCenterOfMassAssociation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// author: jie.yu@cern.ch
6
7
#ifndef PARTICLEJETTOOLS_JETPARTICLECENTEROFMASSASSOCIATION_H
8
#define PARTICLEJETTOOLS_JETPARTICLECENTEROFMASSASSOCIATION_H
9
10
#include "
ParticleJetTools/JetParticleAssociation.h
"
11
12
#include <vector>
13
#include <string>
14
15
class
JetParticleCenterOfMassAssociation
:
public
JetParticleAssociation
{
16
ASG_TOOL_CLASS
(
JetParticleCenterOfMassAssociation
,
IJetDecorator
)
17
public
:
18
19
JetParticleCenterOfMassAssociation
(
const
std::string& name);
20
21
virtual
const
std::vector<std::vector<ElementLink<xAOD::IParticleContainer> > >*
22
match
(
const
xAOD::JetContainer
&,
const
xAOD::IParticleContainer
&)
const override
;
23
24
inline
double
getAngleSize
(
const
double
& par_R)
const
{
25
double
result = acos(1-par_R*0.5);
26
return
result;
27
}
28
29
30
private
:
31
double
m_partMatchCone
;
32
double
m_parentJetCone
;
33
};
34
35
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
JetParticleAssociation.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetParticleAssociation::JetParticleAssociation
JetParticleAssociation(const std::string &name)
Definition
JetParticleAssociation.cxx:11
JetParticleCenterOfMassAssociation::m_partMatchCone
double m_partMatchCone
Definition
JetParticleCenterOfMassAssociation.h:31
JetParticleCenterOfMassAssociation::JetParticleCenterOfMassAssociation
JetParticleCenterOfMassAssociation(const std::string &name)
Definition
JetParticleCenterOfMassAssociation.cxx:15
JetParticleCenterOfMassAssociation::m_parentJetCone
double m_parentJetCone
Definition
JetParticleCenterOfMassAssociation.h:32
JetParticleCenterOfMassAssociation::match
virtual const std::vector< std::vector< ElementLink< xAOD::IParticleContainer > > > * match(const xAOD::JetContainer &, const xAOD::IParticleContainer &) const override
Definition
JetParticleCenterOfMassAssociation.cxx:26
JetParticleCenterOfMassAssociation::getAngleSize
double getAngleSize(const double &par_R) const
Definition
JetParticleCenterOfMassAssociation.h:24
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
xAOD::IParticleContainer
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
Definition
xAOD/xAODBase/xAODBase/IParticleContainer.h:32
Generated on
for ATLAS Offline Software by
1.17.0