ATLAS Offline Software
PhotonAssociation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef EGAMMAEVENT_PHOTONASSOCIATION_H
7 #define EGAMMAEVENT_PHOTONASSOCIATION_H
8 
9 #include<vector>
10 #include<string>
11 
12 #include "Navigation/Navigable.h"
15 #include "CaloGeoHelpers/CaloSampling.h"
16 
17 namespace Analysis
18 {
19 
20 
23  typedef std::string NameType;
24 
26  public Navigable<PhotonContainer, double>
27  {
28 
31 
32 
33  public:
34  PhotonAssociation() = default;
36  ~PhotonAssociation() = default;
37 
38  virtual JetAssociationBase* clone() const;
40 
41  const Photon* photon() const;
42 
43  // Set functions
44  void set_photon(const PhotonContainer* theContainer,
45  const Photon* the_photon, double weight=1);
46 
47  void set_photon(const PhotonContainer* theContainer,
48  const index_type& theIndex, double weight=1);
49 
50  void set_association(const PhotonContainer* theContainer,
51  const Photon* the_photon, double weight=1)
52  {set_photon(theContainer, the_photon, weight);}
53 
54  void set_association(const PhotonContainer* theContainer,
55  const index_type& theIndex, double weight=1)
56  {set_photon(theContainer, theIndex, weight);}
57 
58  double getPhotonWeight(const Photon* the_photon) const ;
59 
60  double getPhotonWeight(const PhotonContainer* theContainer,
61  const index_type& theIndex) const;
62 
63  } ;
64 
65 }
66 
67 
68 #endif
Analysis::NameType
std::string NameType
string to identify the constituent
Definition: IConstituent.h:39
JetAssociationBase::NameType
name_t NameType
Definition: JetAssociationBase.h:29
Analysis::PhotonAssociation::clone
virtual JetAssociationBase * clone() const
a clone method for the proper workings of the copy constructor
Definition: PhotonAssociation.cxx:15
JetAssociationBase.h
Analysis::Photon
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/Photon.h:20
Analysis::PhotonAssociation::iter_type
Navigable< PhotonContainer, double >::constituent_iter iter_type
Definition: PhotonAssociation.h:30
Analysis::PhotonAssociation::~PhotonAssociation
~PhotonAssociation()=default
PhotonContainer
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/PhotonContainer.h:30
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
Analysis::PhotonAssociation::index_type
Navigable< PhotonContainer, double >::external_index_type index_type
Definition: PhotonAssociation.h:29
Analysis::PhotonAssociation::set_association
void set_association(const PhotonContainer *theContainer, const Photon *the_photon, double weight=1)
Definition: PhotonAssociation.h:50
Analysis::PhotonAssociation::getPhotonWeight
double getPhotonWeight(const Photon *the_photon) const
Definition: PhotonAssociation.cxx:68
Analysis::PhotonAssociation::set_photon
void set_photon(const PhotonContainer *theContainer, const Photon *the_photon, double weight=1)
Definition: PhotonAssociation.cxx:32
JetAssociationBase
Definition: JetAssociationBase.h:21
Analysis::PhotonAssociation::PhotonAssociation
PhotonAssociation()=default
constructor
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::PhotonAssociation::photon
const Photon * photon() const
get photon directly without token
Definition: PhotonAssociation.cxx:20
Analysis::PhotonAssociation
Definition: PhotonAssociation.h:27
Navigable
Navigable template generalization to handle navigation.
Definition: Navigable.h:93
Analysis::PhotonAssociation::set_association
void set_association(const PhotonContainer *theContainer, const index_type &theIndex, double weight=1)
Definition: PhotonAssociation.h:54
Navigable.h
PhotonContainer.h
JetAssociationBase::name
const name_t & name() const
Definition: JetAssociationBase.cxx:20
index_type
unsigned int index_type
Definition: FPGATrackSimSGToRawHitsTool.h:37