]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - JETAN/AliJetAnalysis.h
Coding violations corrected.
[u/mrichter/AliRoot.git] / JETAN / AliJetAnalysis.h
index 9c94dd4e3835e706aa8a10061b7fa19d04fbbec1..d2afceb6df0bea2755c4a2fb91177183ff15056e 100644 (file)
@@ -75,11 +75,11 @@ class AliJetAnalysis : public TObject
     void Correlation(TLorentzVector *lv1,TLorentzVector *lv2,TH2F *h1, TH2F *h2, TH2F *h3, TH2F *h4);
     void Correlation50(AliJet *j,TLorentzVector *lv1,TLorentzVector *lv2,TH2F *h1, TH2F *h2, TH2F *h3, TH2F *h4);
     // setters
-    void SetDirectory(char* directory) 
+    void SetDirectory(const char* directory) 
       {fDirectory = directory;}                      // directory where file with jets is
-    void SetBkgdDirectory(char* directory) 
+    void SetBkgdDirectory(const char* directory) 
       {fBkgdDirectory = directory;}                  // directory where file with background is
-    void SetOutputFile(char* file) {fFile = file;}   // file where plots will be saved
+    void SetOutputFile(const char* file) {fFile = file;}   // file where plots will be saved
     void SetPercentage(Float_t p) {fPercentage = p;} // minimum percentage of tracks coming from pythia (very aprox.)
     void SetEventRange(Int_t imin, Int_t imax) 
       {fEventMin = imin; fEventMax = imax;}           // first and last event
@@ -101,7 +101,7 @@ class AliJetAnalysis : public TObject
     void SetDoTriggerBias(Bool_t f = kTRUE){fDoTrig = f;}      // Trigger bias plots
     void SetDivideEnergy(Float_t Efactor){fEfactor = Efactor;} // Divides E of rec.jet by Efactor
     void SetProperties(TH1* h,const char* x, const char* y) const;
-    void SetReaderHeader(char *s="AliJetKineReaderHeader"){fReaderHeader = s;}
+    void SetReaderHeader(const char *s="AliJetKineReaderHeader"){fReaderHeader = s;}
     void SetdEdrWeight();
     void SetPartPtCut(Float_t c){fPartPtCut = c;}
     void SetdrJt(Float_t r){fdrJt = r;}
@@ -111,10 +111,10 @@ class AliJetAnalysis : public TObject
     Float_t GetdEdrWeight(Float_t eta, Float_t r);
     
  private:
-    char*  fReaderHeader;    // Reader header
-    char*  fDirectory;       // Directory
-    char*  fBkgdDirectory;   // Directory for background
-    char*  fFile;            // Output file name
+    const char*  fReaderHeader;    // Reader header
+    const char*  fDirectory;       // Directory
+    const char*  fBkgdDirectory;   // Directory for background
+    const char*  fFile;      // Output file name
     Int_t  fEventMin;        // Minimum event number
     Int_t  fEventMax;        // Maximum event number
     Int_t  fRunMin;          // Minimum run number 
@@ -194,7 +194,8 @@ class AliJetAnalysis : public TObject
     TH2F *fRGCorrEtaH;  // Pseudorapidity correlation rec jet-gen jet
     TH2F *fRGCorrPhiH;  // Azimuthal angle correlation rec jet-gen jet
    
-    // correlation histograms
+    // correlation histogramswhen one particle 
+    // has more than 50% of the energy of the jet
     TH2F *fPRCorr50EneH;  // Energy correlation part-rec jet
     TH2F *fPRCorr50PtH;   // Pt correlation part-rec jet
     TH2F *fPRCorr50EtaH;  // Pseudorapidity correlation part-rec jet
@@ -235,6 +236,11 @@ class AliJetAnalysis : public TObject
     TH1F* fdNdxiW;  // dN/d#xi weight histo
     TH2F* fPtEneH;  // fPtEneH
 
+protected:
+    AliJetAnalysis(const AliJetAnalysis& rJetA);
+    AliJetAnalysis& operator = (const AliJetAnalysis& rhsa);
+
+
     ClassDef(AliJetAnalysis,1)
 };