AliPhysics  eb0e5d9 (eb0e5d9)
AliEmcalClusterJetConstituent.h
Go to the documentation of this file.
1 /************************************************************************************
2  * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
3  * All rights reserved. *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions are met: *
7  * * Redistributions of source code must retain the above copyright *
8  * notice, this list of conditions and the following disclaimer. *
9  * * Redistributions in binary form must reproduce the above copyright *
10  * notice, this list of conditions and the following disclaimer in the *
11  * documentation and/or other materials provided with the distribution. *
12  * * Neither the name of the <organization> nor the *
13  * names of its contributors may be used to endorse or promote products *
14  * derived from this software without specific prior written permission. *
15  * *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND *
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
18  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
19  * DISCLAIMED. IN NO EVENT SHALL ALICE COLLABORATION BE LIABLE FOR ANY *
20  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
21  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
22  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND *
23  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
25  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
26  ************************************************************************************/
27 #ifndef ALIEMCALCLUSTERJETCONSTITUENT_H_
28 #define ALIEMCALCLUSTERJETCONSTITUENT_H_
29 
30 #include "AliEmcalJetConstituent.h"
31 #include "AliVCluster.h"
32 
37 namespace PWG {
38 
44 namespace JETFW {
45 
59 public:
64 
73  AliEmcalClusterJetConstituent(const AliVCluster *const clust, AliVCluster::VCluUserDefEnergy_t energydef, Double_t *pvec);
74 
81  AliEmcalClusterJetConstituent(const AliVCluster *const clust);
82 
89 
97 
104  bool operator==(const AliEmcalClusterJetConstituent &rhs) const;
105 
110 
115  virtual double Px() const;
116 
121  virtual double Py() const;
122 
127  virtual double Pz() const;
128 
133  virtual double Pt() const;
134 
139  virtual double E() const;
140 
145  virtual double Eta() const;
146 
151  virtual double Phi() const;
152 
157  const AliVCluster *GetCluster() const { return fkCaloCluster; }
158 
163  AliVCluster::VCluUserDefEnergy_t GetDefaultEnergyType() const { return fDefaultEnergyDefinition; }
164 
165 private:
166  const AliVCluster *fkCaloCluster;
167  AliVCluster::VCluUserDefEnergy_t fDefaultEnergyDefinition;
168  TVector3 fPVec;
169 
171  ClassDef(AliEmcalClusterJetConstituent, 1);
173 };
174 
175 }
176 
177 }
178 
179 #endif
double Double_t
Definition: External.C:58
AliEmcalClusterJetConstituent & operator=(const AliEmcalClusterJetConstituent &other)
Assignment operator Constituent object is non-owning, therefore shallow copy is sufficient.
virtual double E() const
Access to constituent energy.
AliVCluster::VCluUserDefEnergy_t GetDefaultEnergyType() const
Get the energy definition used to calculate the cluster energy in the jetfinder.
virtual double Py() const
Access to y-component of the momentum vector.
Namespace for objects belonging to the ALICE jet framework.
virtual double Px() const
Access to x-component of the momentum vector.
const AliVCluster * fkCaloCluster
Underlying calorimeter cluster.
virtual double Phi() const
Access to azimuthal angle.
Interface class for constituent objects (clusters / particles) in an ALICE jet.
AliVCluster::VCluUserDefEnergy_t fDefaultEnergyDefinition
Default energy definition used in jetfinder.
virtual double Eta() const
Access to pseudorapidity.
Namespace for PWG framework classes.
const AliVCluster * GetCluster() const
Get the underlying cluster.
Implementation of a jet constituent for constituent clusters.
bool operator==(const AliEmcalClusterJetConstituent &rhs) const
Check for equality Check done on the cluster itself.
virtual double Pt() const
Access to transverse momentum.
virtual double Pz() const
Access to z-component of the momentum vector.