Coding Violations Corrected.
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 18:34:54 +0000 (18:34 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 22 Jan 2004 18:34:54 +0000 (18:34 +0000)
HBTAN/AliHBTReaderKineTree.cxx
HBTAN/AliHBTReaderKineTree.h
HBTAN/AliHBTTwoTrackEffFctn.h
HBTAN/AliHBTWeightTheorFctn.cxx
HBTAN/AliHBTWeightTheorFctn.h

index d5b32de096b0d81835b818702cd7b123a3beb256..1b5ee8ffbef9741924132a3aca1ad8e3ff10b9c5 100644 (file)
@@ -1,20 +1,23 @@
 #include "AliHBTReaderKineTree.h"
+//_______________________________________________________________________
+/////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTReaderKineTree
+//
+// Reader for Kinematics
+//
+// Piotr.Skowronski@cern.ch
+//
+/////////////////////////////////////////////////////////////////////////
 
 #include <TString.h>
-#include <TObjString.h>
-#include <TTree.h>
-#include <TFile.h>
 #include <TParticle.h>
 
-#include <AliRun.h>
 #include <AliRunLoader.h>
 #include <AliStack.h>
-#include <AliHeader.h>
 
-#include "AliHBTRun.h"
 #include "AliHBTEvent.h"
 #include "AliHBTParticle.h"
-#include "AliHBTParticleCut.h"
 
 ClassImp(AliHBTReaderKineTree)
 /**********************************************************/
@@ -43,6 +46,16 @@ AliHBTReaderKineTree::AliHBTReaderKineTree(TObjArray* dirs,const Char_t *filenam
 {
   //ctor
 }
+
+/**********************************************************/
+AliHBTReaderKineTree::AliHBTReaderKineTree(const AliHBTReaderKineTree& in):
+ AliHBTReader(in),
+ fFileName(in.fFileName),
+ fRunLoader(0x0)
+{
+  //cpy ctor
+}
+
 /**********************************************************/
 
 AliHBTReaderKineTree::~AliHBTReaderKineTree()
@@ -51,9 +64,20 @@ AliHBTReaderKineTree::~AliHBTReaderKineTree()
   delete fRunLoader;
 }
 /**********************************************************/
+AliHBTReaderKineTree& AliHBTReaderKineTree::operator=(const AliHBTReaderKineTree& in)
+{
+//Assiment operator
+  if (this == &in) return *this;
+  AliHBTReader::operator=(in);
+  delete fRunLoader;
+  fRunLoader = 0x0;
+  return * this;
+}
+/**********************************************************/
 
 void AliHBTReaderKineTree::Rewind()
 {
+//Rewinds to the beginning
   delete fRunLoader;
   fRunLoader = 0x0;
   fCurrentDir = 0;
index 0c47fe1561e1a11b620b4fedcdf91ffefa08ec31..10a501de0952693be19b73f55cba928323d083e7 100644 (file)
@@ -1,6 +1,15 @@
 #ifndef ALIHBTREADERKINETREE_H
 #define ALIHBTREADERKINETREE_H
-
+//_______________________________________________________________________
+/////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTReaderKineTree
+//
+// Reader for Kinematics
+//
+// Piotr.Skowronski@cern.ch
+//
+/////////////////////////////////////////////////////////////////////////
 #include "AliHBTReader.h"
 #include <TString.h>
 
@@ -15,8 +24,11 @@ class AliHBTReaderKineTree: public AliHBTReader
     
     AliHBTReaderKineTree(TString&);
     AliHBTReaderKineTree(TObjArray*,const Char_t *filename="galice.root");
+    AliHBTReaderKineTree(const AliHBTReaderKineTree& in);
 
     virtual ~AliHBTReaderKineTree();
+
+    AliHBTReaderKineTree& operator=(const AliHBTReaderKineTree& in);
     
     void          Rewind();
     
@@ -28,13 +40,11 @@ class AliHBTReaderKineTree: public AliHBTReader
     Int_t         OpenNextFile();
    
     TString       fFileName;//file name 
-    AliRunLoader* fRunLoader;
+    AliRunLoader* fRunLoader;//!Pointer to loader
     
-    static const TString fgkEventFolderName;
+    static const TString fgkEventFolderName; //Event folder name that session are mounter
     
    private:
-   
-   public:
      ClassDef(AliHBTReaderKineTree,2)
  };
 
index 857ef62899033cee5e9ac2ec8d2d524bb9749bdb..8d8a256ff7f096ceefd361d658a14482400d710b 100644 (file)
@@ -38,7 +38,7 @@ class AliHBTTwoTrackEffFctn3D: public AliHBTOnePairFctn3D
     void ProcessDiffEventParticles(AliHBTPair* /*pair*/){}
 
   protected:
-    void GetValues(AliHBTPair*,Double_t&, Double_t&,Double_t&);
+    void GetValues(AliHBTPair* pair,Double_t& x, Double_t& y,Double_t& z);
   private:
     ClassDef(AliHBTTwoTrackEffFctn3D,1)
  };
index 5bd7a34a9dac7725fb8142e3ee6ae69b581a9c2a..4e2f8ed1cfe9a6e7313b4af4427339a85e3ea4cd 100644 (file)
@@ -1,5 +1,17 @@
 /* $Id$ */
 
+//_____________________________________________________________________________
+///////////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTWeightTheorQInvFctn
+//
+// This function allows to obtain Q_inv correlation function with weights
+// calculated by Lednicky's alghorithm.
+// Numerator is filled with weighted events. Weights are attributed to simulated particles.
+// Weights are calculated with corresponding simulated particles momenta.
+// Denominator is filled with mixing unweighted simulated particles.
+// One needs only simulated pairs, so 
+// this function is of class AliHBTOnePairFctn1D.
 //-----------------------------------------------------------
 // This class introduces the weights calculated according 
 // with functions of efficiency of identification (TPC+TOF) 
index 6ec31844eb9a9a163a22cdb0de38653158907896..645669c667e549c49eecd7026b4471d7dad5cae4 100644 (file)
@@ -1,15 +1,21 @@
 #ifndef ALIHBTWeightTHEORFCTN_H
 #define ALIHBTWeightTHEORFCTN_H
 /* $Id$ */
-
-//This function allows to obtain Q_inv correlation function with weights
-//calculated by Lednicky's alghorithm.
-//Numerator is filled with weighted events. Weights are attributed to simulated particles.
-//Weights are calculated with corresponding simulated particles momenta.
-//Denominator is filled with mixing unweighted simulated particles.
-//One needs only simulated pairs, so 
-//this function is of class AliHBTOnePairFctn1D.
-//Author Ludmila Malinina JINR (malinina@sunhe.jinr.ru)
+//_____________________________________________________________________________
+///////////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTWeightTheorQInvFctn
+//
+// This function allows to obtain Q_inv correlation function with weights
+// calculated by Lednicky's alghorithm.
+// Numerator is filled with weighted events. Weights are attributed to simulated particles.
+// Weights are calculated with corresponding simulated particles momenta.
+// Denominator is filled with mixing unweighted simulated particles.
+// One needs only simulated pairs, so 
+// this function is of class AliHBTOnePairFctn1D.
+// Author Ludmila Malinina JINR (malinina@sunhe.jinr.ru)
+//
+///////////////////////////////////////////////////////////////////////////////
 
 #include "AliHBTFunction.h"