Coding rule violations corrected
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Apr 2006 21:58:28 +0000 (21:58 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Apr 2006 21:58:28 +0000 (21:58 +0000)
FASTSIM/AliFastMuonTriggerEff.cxx
FASTSIM/AliFastMuonTriggerEff.h

index bd79812..5fb15a1 100644 (file)
@@ -27,12 +27,21 @@ it does not seem to be necessary it is also possible to interpolate
 between pT bins using SetInt().
 
 $Log$
+Revision 1.9  2005/09/24 03:51:43  hristov
+Removing extra semicolon (Fedora Core 4)
+
 Revision 1.8  2005/09/22 11:31:42  morsch
 Completely revised version. (P. Cortese)
 
 */
 
 #include "AliFastMuonTriggerEff.h"
+#include "TROOT.h"
+#include "TFile.h"
+#include "stdlib.h"
+#include "TH3.h"
+#include "TObjString.h"
+
 #define PLIN printf("%s: %d: ",__FILE__,__LINE__)
 
 ClassImp(AliFastMuonTriggerEff)
@@ -51,6 +60,8 @@ AliFastMuonTriggerEff::AliFastMuonTriggerEff():
 
 void AliFastMuonTriggerEff::SetCut(Int_t cut) 
 {  
+  //
+  // Set the pt cut
   if(cut==kLow){
     printf("Selecting Low Pt cut\n");
   }else if(cut==kHigh){
@@ -67,6 +78,9 @@ void AliFastMuonTriggerEff::SetCut(Int_t cut)
 
 Int_t AliFastMuonTriggerEff::SetBkgLevel(Float_t Bkg)
 {
+  //
+  // Set the background level
+  //
     if((Bkg!=0.)) {
        printf("%s: Warning: requested Bkg: %f\n",
        __FILE__,Bkg);
@@ -87,6 +101,9 @@ Int_t AliFastMuonTriggerEff::SetBkgLevel(Float_t Bkg)
 
 Int_t AliFastMuonTriggerEff::ForceBkgLevel(Float_t Bkg)
 {
+  //
+  // Check and enforce consistency of the background level 
+  // 
     if((Bkg!=0.)) {
        printf("%s: Warning: requested Bkg: %f\n",
        __FILE__,Bkg);
@@ -104,6 +121,9 @@ Int_t AliFastMuonTriggerEff::ForceBkgLevel(Float_t Bkg)
 }
 
 Int_t AliFastMuonTriggerEff::LoadTables(Char_t *namet=""){
+  //
+  // Load the trigger tables
+  //
     Char_t hNameA[100],hNameL[100],hNameH[100];
     sprintf(hNameA,"hEffAPt%s",namet);
     sprintf(hNameL,"hEffLPt%s",namet);
index a8cb019..9ef5675 100644 (file)
@@ -7,11 +7,9 @@
 
 #include <AliFastResponse.h>
 #include <TString.h>
-#include <TObjString.h>
-#include <TFile.h>
-#include <TH3.h>
-#include <TROOT.h>
-#include <stdlib.h>
+
+class TH3F;
+class TAxis;
 
 // Debugging flag
 //#define MYTRIGDEBUG
@@ -40,34 +38,34 @@ class AliFastMuonTriggerEff : public AliFastResponse {
     void UnsetInt() {fInt=0;}
     Int_t GetInt() {return fInt;}
   protected:
-    Double_t fPtMin;
-    Double_t fPtMax;
+    Double_t fPtMin;               // Minimun pt
+    Double_t fPtMax;               // Maximum pt
     Double_t fDpt;                 // Delta_pt
-    Int_t    fnptb;
-    Double_t fPhiMin;              // lower limit for phi 
-    Double_t fPhiMax;              // upper limit for phi
+    Int_t    fnptb;                // Number of bins
+    Double_t fPhiMin;              // Lower limit for phi 
+    Double_t fPhiMax;              // Upper limit for phi
     Double_t fDphi;                // Delta_phi
-    Int_t    fnphib;
+    Int_t    fnphib;               // Number of bins   
     Double_t fThetaMin;            // lower limit for theta
     Double_t fThetaMax;            // upper limit for theta
     Double_t fDtheta;              // Delta_theta
-    Int_t    fnthetab;
-    Int_t   fCut;                 // Cut type (low/high)
-    Int_t   fZones;               // Total number of zones
-    TH3F*   fhEffAPt;             // Trig. prob. for Any Pt
-    TH3F*   fhEffLPt;             // Trig. prob. for Low Pt
-    TH3F*   fhEffHPt;             // Trig. prob. for High Pt
-    TAxis*  fhLX;
-    TAxis*  fhLY;
-    TAxis*  fhLZ;
-    Float_t fBkg;                 // Background level
-    TString fTableTitle;          // Title of the LUT
-    TString fDescription;         // Description of the table content
-    Int_t fInt;                   // Interpolation flag (1 to interpolate)
+    Int_t    fnthetab;             // Number of bins 
+    Int_t   fCut;                  // Cut type (low/high)
+    Int_t   fZones;                // Total number of zones
+    TH3F*   fhEffAPt;              // Trig. prob. for Any Pt
+    TH3F*   fhEffLPt;              // Trig. prob. for Low Pt
+    TH3F*   fhEffHPt;              // Trig. prob. for High Pt
+    TAxis*  fhLX;                  // x-axis 
+    TAxis*  fhLY;                  // y-axis
+    TAxis*  fhLZ;                  // z-axis
+    Float_t fBkg;                  // Background level
+    TString fTableTitle;           // Title of the LUT
+    TString fDescription;          // Description of the table content
+    Int_t fInt;                    // Interpolation flag (1 to interpolate)
   private:
-    Int_t fibx;
-    Int_t fiby;
-    Int_t fibz;
+    Int_t fibx;                    // index x 
+    Int_t fiby;                    // index y
+    Int_t fibz;                    // index z
     ClassDef(AliFastMuonTriggerEff,1)    // Fast Muon Trigger response
 };