Skip to content
Snippets Groups Projects
Commit f326ca6f authored by Vardan Tadevosyan's avatar Vardan Tadevosyan Committed by Stephen A. Wood
Browse files

Revise misplaced lines in THcShower:GetShEnergy method which caused

crashes.
parent 92e996f4
No related branches found
No related tags found
No related merge requests found
......@@ -313,7 +313,7 @@ Int_t THcHallCSpectrometer::TrackCalc()
{
// Additioal track calculations. At present, we only calculate beta here.
cout << "THcHallCSpectrometer::TrackCalc is called xxxxxxxxxxxxxxxxx" << endl;
// cout << "THcHallCSpectrometer::TrackCalc is called xxxxxxxxxxxxxxxxx\n";
TrackEnergies(fTracks);
......@@ -349,7 +349,7 @@ Int_t THcHallCSpectrometer::TrackEnergies( TClonesArray* Tracks ) {
}
track->SetEnergy(energy);
cout << "track " << itrk << " energy = " << track->GetEnergy() << endl;
// cout << "track " << itrk << " energy = " << track->GetEnergy() << endl;
}
return ntrack;
......
......@@ -949,14 +949,14 @@ Float_t THcShower::GetShEnergy(THaTrack* Track) {
cout << " no matched cluster found" << endl;
}
// Get matched cluster.
THcShowerCluster* cluster = (*fClusterList).ListedCluster(mclust);
// Coordinate corrected total energy deposition in the cluster.
Float_t Etrk = 0.;
if (mclust >= 0) { // if there is a matched cluster
// Get matched cluster.
THcShowerCluster* cluster = (*fClusterList).ListedCluster(mclust);
// Correct track energy depositions for the impact coordinate.
for (Int_t ip=0; ip<fNLayers; ip++) {
......
......@@ -6,6 +6,7 @@
#include <vector>
#include <iterator>
#include <iostream>
#include <memory>
using namespace std;
......@@ -96,4 +97,6 @@ public:
typedef vector<THcShowerHit*> THcShowerHitList;
typedef THcShowerHitList::iterator THcShowerHitIt;
//typedef vector< std::auto_ptr<THcShowerHit> > THcShowerHitList;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment