]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSGammaJet.h
Adding statistical function (Marian)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGammaJet.h
index 875fb29bfbf642c83b576bc40ae6feb04cf0fa7a..32ce4cad1f804abe9398bd6856b4868d3215136d 100644 (file)
@@ -7,6 +7,12 @@
 /* History of cvs commits:
  *
  * $Log$
+ * Revision 1.11  2006/01/12 17:01:00  schutz
+ * Correct few coding violations, missing comments
+ *
+ * Revision 1.9  2005/12/20 07:31:51  schutz
+ * added data members
+ *
  * Revision 1.7  2005/05/28 14:19:04  schutz
  * Compilation warnings fixed by T.P.
  *
 #include "TRandom.h"
 #include "TArrayD.h"
 #include "AliESD.h"
+#include "TChain.h"
 
 class AliPHOSFastGlobalReconstruction ;
+
 //#include "../PYTHIA6/AliGenPythia.h"
+
 // --- AliRoot header files ---
 
 class AliPHOSGammaJet : public TTask {
@@ -38,8 +47,7 @@ public:
   AliPHOSGammaJet() ; // default ctor
   AliPHOSGammaJet(const TString inputfilename) ; //ctor 
   AliPHOSGammaJet(const AliPHOSGammaJet & gj) ; // cpy ctor
-  AliPHOSGammaJet & operator = (const AliPHOSGammaJet & /*rvalue*/) 
-    { return *this ;} //assignement operator requested by coding convention but not needed
+
   virtual ~AliPHOSGammaJet() ; //virtual dtor
   virtual void   Exec(Option_t *option); 
   void List() const; 
@@ -133,6 +141,10 @@ public:
   void  SetDirPattern(char * dp)  { fPattern = dp ; }
 
  private:
+  AliPHOSGammaJet & operator = (const AliPHOSGammaJet & /*rvalue*/) 
+  { return *this ;}
+
+
 //   void AddHIJINGToList(TList & particleList, TList & particleListCh, 
 //                    TList & particleListNe, const Int_t iEvent, 
 //                    const TLorentzVector gamma, Double_t & rot ); 
@@ -186,9 +198,19 @@ public:
  
   void Pi0Decay(Double_t mPi0, TLorentzVector &p0, 
                TLorentzVector &p1, TLorentzVector &p2, Double_t &angle) ;
+
+  TChain * ReadESDfromdisk(const UInt_t eventsToRead,
+                             const TString dirName, 
+                             const TString esdTreeName = "esdTree",
+                             const char *  pattern     = "Evt") ;
+  TChain * ReadESD(const UInt_t eventsToRead = 1,
+                     TString fileName  = "",
+                     const TString esdTreeName = "esdTree",
+                     const char *  pattern     = "Evt" ) ;
+  
   Double_t SigmaE(Double_t energy) ;
   Double_t SigmaP(Double_t energy) ;
-
+  
   void SetJet(TParticle * part, Bool_t & b, Float_t cone, Double_t eta, 
              Double_t phi);
 
@@ -218,9 +240,9 @@ public:
   Bool_t     fTPCCutsLikeEMCAL ; //Same jet energy ratio limits for both conf.
 
   //Read ESD Paramenters
-  TString fDirName ;
-  TString fESDTree ;
-  char *  fPattern ;
+  TString fDirName ; //Name of the directory where data is
+  TString fESDTree ; //Name of the ESD Tree
+  char *  fPattern ; //Pattern followed by  directory data
 
   //Jet selection parameters
   //Fixed cuts (old)