Skip to content

Commit

Permalink
ALIROOT-5440 CoreEnegy field added to AliESDCaloCluster and AliAODCal…
Browse files Browse the repository at this point in the history
…oCluster
  • Loading branch information
peressounko authored and hristov committed Apr 18, 2014
1 parent 74f2291 commit 02577c1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
5 changes: 5 additions & 0 deletions STEER/AOD/AliAODCaloCluster.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ AliAODCaloCluster::AliAODCaloCluster() :
fTrackDz(-999),
fNExMax(0),
fTOF(0.),
fCoreEnergy(0.),
fTracksMatched(),
fNCells(0),
fCellsAbsId(0x0),
Expand Down Expand Up @@ -65,6 +66,7 @@ AliAODCaloCluster::AliAODCaloCluster(Int_t id,
fTrackDz(-999),
fNExMax(0),
fTOF(0.),
fCoreEnergy(0.),
fTracksMatched(),
fNCells(0),
fCellsAbsId(0x0),
Expand Down Expand Up @@ -93,6 +95,7 @@ AliAODCaloCluster::AliAODCaloCluster(Int_t id,
fTrackDz(-999),
fNExMax(0),
fTOF(0.),
fCoreEnergy(0.),
fTracksMatched(),
fNCells(0),
fCellsAbsId(0x0),
Expand Down Expand Up @@ -131,6 +134,7 @@ AliAODCaloCluster::AliAODCaloCluster(const AliAODCaloCluster& clus) :
fTrackDz(clus.fTrackDz),
fNExMax(clus.fNExMax),
fTOF(clus.fTOF),
fCoreEnergy(clus.fCoreEnergy),
fTracksMatched(clus.fTracksMatched),
fNCells(clus.fNCells),
fCellsAbsId(0x0),
Expand Down Expand Up @@ -173,6 +177,7 @@ AliAODCaloCluster& AliAODCaloCluster::operator=(const AliAODCaloCluster& clus)
fTrackDz=clus.fTrackDz;
fNExMax = clus.fNExMax;
fTOF = clus.fTOF;
fCoreEnergy = clus.fCoreEnergy;
fTracksMatched = clus.fTracksMatched;

fNCells= clus. fNCells;
Expand Down
7 changes: 6 additions & 1 deletion STEER/AOD/AliAODCaloCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class AliAODCaloCluster : public AliAODCluster {
Double_t GetTrackDz(void)const {return fTrackDz;}
UChar_t GetNExMax() const { return fNExMax; }
Double_t GetTOF() const { return fTOF; }
Double_t GetCoreEnergy() const {return fCoreEnergy ; }



Int_t GetNTracksMatched() const { return fTracksMatched.GetEntriesFast(); }
TObject *GetTrackMatched(Int_t i) const { return fTracksMatched.At(i); }
Expand Down Expand Up @@ -87,6 +90,7 @@ class AliAODCaloCluster : public AliAODCluster {
void SetNExMax(UChar_t nExMax) { fNExMax = nExMax; }
void SetTOF(Double_t tof) { fTOF = tof; }
void SetTrackDistance(Double_t dx, Double_t dz){fTrackDx=dx; fTrackDz=dz;}
void SetCoreEnergy(Double_t e) { fCoreEnergy=e; }

void SetCaloCluster(Double_t dist = -999.,
Double_t disp = -1.,
Expand Down Expand Up @@ -126,14 +130,15 @@ class AliAODCaloCluster : public AliAODCluster {
Double32_t fTrackDz ; // Distance to closest track in z (eta)
UShort_t fNExMax; // number of (Ex-)maxima before unfolding
Double32_t fTOF; ////[0,0,12] time-of-flight
Double32_t fCoreEnergy; // energy of the core of cluster

TRefArray fTracksMatched; // references to tracks close to cluster. First entry is the most likely match.

Int_t fNCells ;
UShort_t *fCellsAbsId; //[fNCells] array of cell absId numbers
Double32_t *fCellsAmpFraction; //[fNCells][0.,1.,16] array with cell amplitudes fraction.

ClassDef(AliAODCaloCluster,7);
ClassDef(AliAODCaloCluster,8);
};

#endif
8 changes: 6 additions & 2 deletions STEER/ESD/AliESDCaloCluster.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ AliESDCaloCluster::AliESDCaloCluster() :
fNExMax(0),
fClusterType(kUndef),
fTOF(0.),
fMCEnergyFraction(0.)
fMCEnergyFraction(0.),
fCoreEnergy(0.)
{
//
// The default ESD constructor
Expand Down Expand Up @@ -79,7 +80,8 @@ AliESDCaloCluster::AliESDCaloCluster(const AliESDCaloCluster& clus) :
fNExMax(clus.fNExMax),
fClusterType(clus.fClusterType),
fTOF(clus.fTOF),
fMCEnergyFraction(clus.fMCEnergyFraction)
fMCEnergyFraction(clus.fMCEnergyFraction),
fCoreEnergy(clus.fCoreEnergy)
{
//
// The copy constructor
Expand Down Expand Up @@ -184,6 +186,8 @@ AliESDCaloCluster &AliESDCaloCluster::operator=(const AliESDCaloCluster& source)
}

fMCEnergyFraction = source.fMCEnergyFraction;

fCoreEnergy = source.fCoreEnergy;

return *this;

Expand Down
6 changes: 5 additions & 1 deletion STEER/ESD/AliESDCaloCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ class AliESDCaloCluster : public AliVCluster

Double_t GetMCEnergyFraction() const { return fMCEnergyFraction ; }
void SetMCEnergyFraction(Double_t e) { fMCEnergyFraction = e ; }

virtual Double_t GetCoreEnergy() const {return fCoreEnergy ; }
virtual void SetCoreEnergy(Double_t e) { fCoreEnergy=e; }

protected:

Expand Down Expand Up @@ -172,8 +175,9 @@ class AliESDCaloCluster : public AliVCluster
Double_t fTOF; //[0,0,12] time-of-flight

Double_t fMCEnergyFraction; //!MC energy (embedding)
Double32_t fCoreEnergy; // energy of the core of cluster

ClassDef(AliESDCaloCluster,11) //ESDCaloCluster
ClassDef(AliESDCaloCluster,12) //ESDCaloCluster

};

Expand Down
3 changes: 3 additions & 0 deletions STEER/STEERBase/AliVCluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ class AliVCluster : public TObject
virtual Double_t GetMCEnergyFraction() const {return 0 ; }
virtual void SetMCEnergyFraction(Double_t) { ; }

virtual Double_t GetCoreEnergy() const {return 0 ; }
virtual void SetCoreEnergy(Double_t) { ; }

virtual void GetMomentum(TLorentzVector &/*tl*/, Double_t * /*v*/) { ; }

ClassDef(AliVCluster,0) //VCluster
Expand Down

0 comments on commit 02577c1

Please sign in to comment.