Skip to content
Snippets Groups Projects
Commit 06524efd authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Style cleanup.

      Declare loop variables in the for statement
      Go back to UInt_t for some variables
      Don't prefix non-member variables with f
parent aa38543f
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
{"cer_et_min", &fCerETMin, kDouble}, // Ahmed
{"cer_et_max", &fCerETMax, kDouble}, // Ahmed
{"cer_mirror_zpos", &fCerMirrorZPos, kDouble}, // Ahmed
{"cer_region", &fCerRegionValue[0], kDouble, fCerRegionsValueMax}, // Ahmed
{"cer_region", &fCerRegionValue[0], kDouble, (UInt_t) fCerRegionsValueMax}, // Ahmed
{"cer_threshold", &fCerThresh, kDouble}, // Ahmed
{0}
};
......@@ -219,9 +219,9 @@ Int_t THcCherenkov::ReadDatabase( const TDatime& date )
fIsInit = true;
for ( int i1 = 0; i1 < fCerNRegions; i1++ ) {
for (Int_t i1 = 0; i1 < fCerNRegions; i1++ ) {
cout << "Region " << i1 << endl;
for ( int i2 = 0; i2 < 8; i2++ ) {
for (Int_t i2 = 0; i2 < 8; i2++ ) {
cout << fCerRegionValue[GetCerIndex( i1, i2 )] << " ";
}
cout <<endl;
......
This diff is collapsed.
......@@ -71,7 +71,7 @@ public:
Int_t GetGoodRawPad(Int_t iii){return fTOFCalc[iii].good_raw_pad;}
Double_t GetNScinHits(Int_t iii){return fNScinHits[iii];}
Int_t GetNPaddles(Int_t iii) { return fNPaddle[iii];}
UInt_t GetNPaddles(Int_t iii) { return fNPaddle[iii];}
Double_t GetPlaneCenter(Int_t iii) { return fPlaneCenter[iii];}
Double_t GetPlaneSpacing(Int_t iii) { return fPlaneSpacing[iii];}
......@@ -105,13 +105,14 @@ protected:
// Per-event data
// Potential Hall C parameters. Mostly here for demonstration
Int_t fNPlanes,fMaxScinPerPlane,fMaxHodoScin; // number of planes; max number of scin/plane; product of the first two
Int_t fNPlanes; // Number of planes
UInt_t fMaxScinPerPlane,fMaxHodoScin; // max number of scin/plane; product of the first two
Double_t fStartTimeCenter, fStartTimeSlop, fScinTdcToTime;
Double_t fTofTolerance;
Double_t fPathLengthCentral;
Double_t fScinTdcMin, fScinTdcMax; // min and max TDC values
char** fPlaneNames;
Int_t* fNPaddle; // Number of paddles per plane
UInt_t* fNPaddle; // Number of paddles per plane
Double_t* fHodoVelLight;
Double_t* fHodoPosSigma;
......
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