}
//_______________________________________________________________________
-void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) {
+void AliAODCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) const {
// Returns TLorentzVector with momentum of the cluster. Only valid for clusters
// identified as photons or pi0 (overlapped gamma) produced on the vertex
//Vertex can be recovered with esd pointer doing:
fTOF = tof ;
}
- void GetMomentum(TLorentzVector& p, Double_t * vertexPosition );
+ void GetMomentum(TLorentzVector& p, Double_t * vertexPosition ) const;
void AddTrackMatched(TObject *trk) {
//Make sure we attach the object to correct process number
}
//_______________________________________________________________________
-void AliESDCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) {
+void AliESDCaloCluster::GetMomentum(TLorentzVector& p, Double_t *vertex ) const {
// Returns TLorentzVector with momentum of the cluster. Only valid for clusters
// identified as photons or pi0 (overlapped gamma) produced on the vertex
//Vertex can be recovered with esd pointer doing:
UInt_t GetNLabels() const { if (fLabels) return fLabels->GetSize();
else return (0);}
- void GetMomentum(TLorentzVector& p, Double_t * vertexPosition );
+ void GetMomentum(TLorentzVector& p, Double_t * vertexPosition ) const;
void SetNCells(Int_t n) { fNCells = n;}
Int_t GetNCells() const { return fNCells;}
virtual Double_t GetCoreEnergy() const {return 0 ; }
virtual void SetCoreEnergy(Double_t) { ; }
- virtual void GetMomentum(TLorentzVector &/*tl*/, Double_t * /*v*/) { ; }
+ virtual void GetMomentum(TLorentzVector &/*tl*/, Double_t * /*v*/) const { ; }
ClassDef(AliVCluster,0) //VCluster
};