@@ -31,7 +31,7 @@ class Cluster
3131 Cluster () = default ;
3232 Cluster (const Cluster& clu) = default ;
3333 ~Cluster () = default ;
34-
34+
3535 // setters
3636 void addDigit (int digitIndex, int towerId, double energy);
3737 void setNLM (int nMax) { mNLM = nMax; }
@@ -42,7 +42,7 @@ class Cluster
4242 void setChi2 (float chi2) { mChi2 = chi2; }
4343 void setEdgeFlag (bool isEdge) { mEdge = isEdge; }
4444 void addMcTrackID (int mcTrackID, float energy) { mMcTrackEnergy [mcTrackID] += energy; }
45-
45+
4646 // getters
4747 const std::map<int , float >& getMcTrackEnergy () { return mMcTrackEnergy ; }
4848 int getMultiplicity () const { return mDigitIndex .size (); }
@@ -55,28 +55,28 @@ class Cluster
5555 float getX () const { return mX ; }
5656 float getY () const { return mY ; }
5757 float getZ () const { return mZ ; }
58- float getR () const { return std::sqrt (mX * mX + mY * mY ); }
58+ float getR () const { return std::sqrt (mX * mX + mY * mY ); }
5959 float getTheta () const { return std::atan2 (getR (), mZ ); }
60- float getEta () const { return -std::log (std::tan (getTheta ()/ 2 .)); }
60+ float getEta () const { return -std::log (std::tan (getTheta () / 2 .)); }
6161 float getPhi () const { return std::atan2 (mY , mX ); }
6262 float getChi2 () const { return mChi2 ; }
6363 bool isAtTheEdge () const { return mEdge ; }
6464 int getMcTrackID () const ;
6565 TLorentzVector getMomentum () const ;
6666
6767 private:
68- std::vector<int > mDigitIndex ; // vector of digit indices in digits vector
69- std::vector<int > mDigitTowerId ; // vector of corresponding digit tower Ids
70- std::vector<float > mDigitEnergy ; // vector of corresponding digit energies
71- std::map<int , float > mMcTrackEnergy ; // MC track indices and corresponding energies
72- int mNLM = 0 ; // number of local maxima in the initial cluster
73- float mTime = 0 ; // cluster time
74- float mE = 0 ; // cluster energy
75- float mX = 0 ; // estimated x-coordinate
76- float mY = 0 ; // estimated y-ccordinate
77- float mZ = 0 ; // estimated z-ccordinate
78- float mChi2 = 0 ; // chi2 wrt EM shape
79- bool mEdge = 0 ; // set to true if one of cluster digits is at the chamber edge
68+ std::vector<int > mDigitIndex ; // vector of digit indices in digits vector
69+ std::vector<int > mDigitTowerId ; // vector of corresponding digit tower Ids
70+ std::vector<float > mDigitEnergy ; // vector of corresponding digit energies
71+ std::map<int , float > mMcTrackEnergy ; // MC track indices and corresponding energies
72+ int mNLM = 0 ; // number of local maxima in the initial cluster
73+ float mTime = 0 ; // cluster time
74+ float mE = 0 ; // cluster energy
75+ float mX = 0 ; // estimated x-coordinate
76+ float mY = 0 ; // estimated y-ccordinate
77+ float mZ = 0 ; // estimated z-ccordinate
78+ float mChi2 = 0 ; // chi2 wrt EM shape
79+ bool mEdge = 0 ; // set to true if one of cluster digits is at the chamber edge
8080 ClassDefNV (Cluster, 1 );
8181};
8282} // namespace ecal
0 commit comments