From 85a699d8dac09db805c2cc1d4c760fadc845fc54 Mon Sep 17 00:00:00 2001 From: dsilverm Date: Sat, 13 Mar 2010 20:50:35 +0000 Subject: [PATCH] style violation fixes: added comments --- EMCAL/AliCaloRawAnalyzerComparison.cxx | 16 ++++++++-------- EMCAL/AliCaloRawAnalyzerComparison.h | 20 ++++++++++---------- EMCAL/beamtest07/AliEMCALCalibTestBeam.cxx | 18 +++++++++--------- EMCAL/beamtest07/AliEMCALCalibTestBeam.h | 18 +++++++++--------- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/EMCAL/AliCaloRawAnalyzerComparison.cxx b/EMCAL/AliCaloRawAnalyzerComparison.cxx index 512e36fac45..9316ada2a22 100644 --- a/EMCAL/AliCaloRawAnalyzerComparison.cxx +++ b/EMCAL/AliCaloRawAnalyzerComparison.cxx @@ -37,7 +37,7 @@ AliCaloRawAnalyzerComparison::AliCaloRawAnalyzerComparison() : fMod(0), fMonRow1(15), fMonCol2(1), fMonRow2(16) -{ +{ // ctor fReferenceAnalyzer = new AliCaloRawAnalyzerLMS(); AliCaloRawAnalyzerCrude *crude = new AliCaloRawAnalyzerCrude(); @@ -59,12 +59,12 @@ AliCaloRawAnalyzerComparison::AliCaloRawAnalyzerComparison() : fMod(0), fRawAnalyzers.push_back( (AliCaloRawAnalyzer*)neuralnet); fRawAnalyzers.push_back( (AliCaloRawAnalyzer*)peakfinder); - IntiHistograms( fRawAnalyzers, fReferenceAnalyzer ); + InitHistograms( fRawAnalyzers, fReferenceAnalyzer ); } AliCaloRawAnalyzerComparison::~AliCaloRawAnalyzerComparison() -{ +{ // dtor } @@ -72,7 +72,7 @@ AliCaloRawAnalyzerComparison::~AliCaloRawAnalyzerComparison() void AliCaloRawAnalyzerComparison::Evaluate( const vector &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2, const int event, const int col, const int row ) -{ +{ // evaluate methods // cout << __FILE__ << __LINE__ << endl; AliCaloFitResults ref = fReferenceAnalyzer->Evaluate( bunchvector, altrocfg1, altrocfg2 ); @@ -115,7 +115,7 @@ AliCaloRawAnalyzerComparison::Evaluate( const vector &bunchvec void AliCaloRawAnalyzerComparison::EventChanged() -{ +{ // new event for(int i=0; i < fRawAnalyzers.size(); i++ ) { /* @@ -140,7 +140,7 @@ AliCaloRawAnalyzerComparison::EventChanged() void AliCaloRawAnalyzerComparison::WriteHistograms() -{ +{ // write histograms TFile *f = new TFile("comparison2.root", "recreate"); /* @@ -179,8 +179,8 @@ AliCaloRawAnalyzerComparison::WriteHistograms() void -AliCaloRawAnalyzerComparison::IntiHistograms( vector analyzers, AliCaloRawAnalyzer* ref ) -{ +AliCaloRawAnalyzerComparison::InitHistograms( vector analyzers, AliCaloRawAnalyzer* ref ) +{ // init histograms char tmpname[256]; /* diff --git a/EMCAL/AliCaloRawAnalyzerComparison.h b/EMCAL/AliCaloRawAnalyzerComparison.h index c0f3f4216af..8f493410111 100644 --- a/EMCAL/AliCaloRawAnalyzerComparison.h +++ b/EMCAL/AliCaloRawAnalyzerComparison.h @@ -62,17 +62,17 @@ class AliCaloRawAnalyzerComparison TH1D *fTofResAbsolute[NANALYZERS]; //differntial tof resolution - vector fRawAnalyzers; - AliCaloRawAnalyzer *fReferenceAnalyzer; + vector fRawAnalyzers; // raw analyzers + AliCaloRawAnalyzer *fReferenceAnalyzer; // reference analyzer - int fMod; - int fMonCol1; - int fMonRow1; - int fMonCol2; - int fMonRow2; - - AliCaloFitResults fMon1[NANALYZERS]; - AliCaloFitResults fMon2[NANALYZERS]; + int fMod; // SuperModule index + int fMonCol1; // column index, for tower 1 + int fMonRow1; // row index, for tower 1 + int fMonCol2; // column index, for tower 2 + int fMonRow2; // row index, for tower 1 + + AliCaloFitResults fMon1[NANALYZERS]; // results for tower 1 + AliCaloFitResults fMon2[NANALYZERS]; // results for tower 2 }; diff --git a/EMCAL/beamtest07/AliEMCALCalibTestBeam.cxx b/EMCAL/beamtest07/AliEMCALCalibTestBeam.cxx index 51d9f0c6d39..83dbe265336 100644 --- a/EMCAL/beamtest07/AliEMCALCalibTestBeam.cxx +++ b/EMCAL/beamtest07/AliEMCALCalibTestBeam.cxx @@ -94,7 +94,7 @@ AliEMCALCalibTestBeam::~AliEMCALCalibTestBeam() //________________________________________________________________ void AliEMCALCalibTestBeam::Reset() -{ +{ // clear variables ResetRunInfo(); ResetTempInfo(); return; @@ -159,23 +159,23 @@ void AliEMCALCalibTestBeam::Print() const } //________________________________________________________________ double AliEMCALCalibTestBeam::GetLengthOfRunInHours() const -{ +{ // run length in hours return (fTimeStop - fTimeStart)*fkSecToHour; } //________________________________________________________________ double AliEMCALCalibTestBeam::GetRangeOfTempMeasureInHours() const -{ +{ // interval with temperature measurements return (fMaxTime - fMinTime)*fkSecToHour; } //________________________________________________________________ double AliEMCALCalibTestBeam::GetRangeOfTempMeasureInDegrees() const -{ +{ // range of temperatures return (fMaxTemp - fMinTemp); } //________________________________________________________________ void AliEMCALCalibTestBeam::Init(const int runno) -{ +{ // init/clear info Reset(); // start fresh // collect the needed information @@ -195,7 +195,7 @@ void AliEMCALCalibTestBeam::Init(const int runno) //________________________________________________________________ double AliEMCALCalibTestBeam::GetCorrection(int secSinceRunStart) const -{ +{ // calculate correction double temperature = GetTemperature(secSinceRunStart); return GetCorrection(temperature); } @@ -220,7 +220,7 @@ double AliEMCALCalibTestBeam::GetCorrection(double temperature) const //________________________________________________________________ void AliEMCALCalibTestBeam::GetRunTime(const int runno, const char *filename) -{ +{ // get run info TFile *fR = new TFile(filename); if (!fR) { printf("file %s could not be found. Perhaps you don't have afs working?\n",filename); @@ -273,7 +273,7 @@ void AliEMCALCalibTestBeam::GetRunTime(const int runno, //________________________________________________________________ void AliEMCALCalibTestBeam::GetTemperatureInfo(const char* filename) -{ +{ // get temperature info fTempGraph->Clear(); TFile *fT = new TFile(filename); @@ -341,7 +341,7 @@ void AliEMCALCalibTestBeam::GetTemperatureInfo(const char* filename) //________________________________________________________________ void AliEMCALCalibTestBeam::GetEMCALLogbookInfo(const int runno, const char *filename) -{ +{ // get logbook info Int_t Run,DAQEvt,CCUSB,Counter,XPos,YPos,Momentum; char TriggerAndComment[1000]; diff --git a/EMCAL/beamtest07/AliEMCALCalibTestBeam.h b/EMCAL/beamtest07/AliEMCALCalibTestBeam.h index 7a9edc060ad..f29752bf8a4 100644 --- a/EMCAL/beamtest07/AliEMCALCalibTestBeam.h +++ b/EMCAL/beamtest07/AliEMCALCalibTestBeam.h @@ -55,16 +55,16 @@ class AliEMCALCalibTestBeam { void GetEMCALLogbookInfo(const int runno, const char *filename="/afs/cern.ch/user/d/dsilverm/www/testbeam07/calib/EMCAL_Logbook_SPS_and_PS.csv"); // - TGraph *fTempGraph; // - TSpline3 *fTempSpline; // + TGraph *fTempGraph; // graph of temperature values + TSpline3 *fTempSpline; // spline of temperature values // - int fTimeStart; - int fTimeStop; - int fNEvents; - double fMinTemp; - double fMaxTemp; - int fMinTime; - int fMaxTime; + int fTimeStart; // start time + int fTimeStop; // stop time + int fNEvents; // number of events + double fMinTemp; // minimum time + double fMaxTemp; // maximum time + int fMinTime; // minimum time + int fMaxTime; // maximum time // ClassDef(AliEMCALCalibTestBeam,1) // EMCAL Calibration data }; -- 2.43.5