Skip to content
Snippets Groups Projects
Commit 9b1d1b4c authored by Vardan Tadevosyan's avatar Vardan Tadevosyan
Browse files

Minor amendments in the HMS calorimeter part.

Changed column and row numbering in THcShowerHit.h in order to get rid of
warning messages on unsigned and integer comaprisons when compiling;

Corrected a debug message in THcShower.cxx.
parent a3ae0ff1
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ void hodtest_mkj(Int_t RunNumber=50017, Int_t MaxEventToReplay=5000) {
char* RunFileNamePattern="daq04_%d.log.0";
} else {
// char* RunFileNamePattern="/cache/mss/hallc/daq04/raw/daq04_%d.log.0";
char* RunFileNamePattern="/scratch/tadevosn/daq04_%d.log.0";
char* RunFileNamePattern="daq04_%d.log.0";
}
gHcParms->Define("gen_run_number", "Run Number", RunNumber);
gHcParms->AddString("g_ctp_database_filename", "DBASE/test.database");
......
Subproject commit 6dc6a0d2995aa24855eaa4f07f7767ed7486be6f
Subproject commit 5dbaea975ff82d567c1ec4ef866634dc97bb55b3
......@@ -707,7 +707,9 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
//Print out the cluster list.
//
if (fdbg_clusters_cal) cout << "Cluster_list size: " << fNclust << endl;
if (fdbg_clusters_cal) {
cout << "Cluster_list size: " << fNclust << endl;
for (Int_t i=0; i!=fNclust; i++) {
......@@ -726,7 +728,8 @@ Int_t THcShower::CoarseProcess( TClonesArray& tracks)
cout << " hit #" << j << ": "; (*hit).show();
}
}
}
}
//The largest cluster.
......
......@@ -12,7 +12,7 @@ using namespace std;
class THcShowerHit { //HMS calorimeter hit class
private:
UInt_t fCol, fRow; //hit colomn and row
Int_t fCol, fRow; //hit colomn and row
Double_t fX, fZ; //hit X (vert.) and Z (along spect.axis) coordinates
Double_t fE; //hit mean energy deposition
Double_t fEpos; //hit energy deposition from positive PMT
......@@ -28,7 +28,7 @@ public:
fEneg=0.;
}
THcShowerHit(UInt_t hRow, UInt_t hCol, Double_t hX, Double_t hZ,
THcShowerHit(Int_t hRow, Int_t hCol, Double_t hX, Double_t hZ,
Double_t hE, Double_t hEpos, Double_t hEneg) {
fRow=hRow;
fCol=hCol;
......@@ -43,11 +43,11 @@ public:
// cout << " hit destructed" << endl;
}
UInt_t hitColumn() {
Int_t hitColumn() {
return fCol;
}
UInt_t hitRow() {
Int_t hitRow() {
return fRow;
}
......
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