ATLAS Offline Software
Loading...
Searching...
No Matches
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
11
12#include <vector>
13#include <string>
14
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:
33};
34
35#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Interface for adding a decoration to a jet container.
JetParticleAssociation(const std::string &name)
virtual const std::vector< std::vector< ElementLink< xAOD::IParticleContainer > > > * match(const xAOD::JetContainer &, const xAOD::IParticleContainer &) const override
JetContainer_v1 JetContainer
Definition of the current "jet container version".
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.