]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/global/physics/AliHLTCaloHistoClusterEnergy.h
-Moved PHOS Physics histogram producers to HLT/global/physics
[u/mrichter/AliRoot.git] / HLT / global / physics / AliHLTCaloHistoClusterEnergy.h
similarity index 61%
rename from HLT/PHOS/AliHLTPHOSHistoProdClusterEnergy.h
rename to HLT/global/physics/AliHLTCaloHistoClusterEnergy.h
index d664f47d7d6e5cb05baf00b09db95d562e2706d3..2039d519b0290842bf49e9efd2ddbb7928860a6d 100644 (file)
@@ -2,7 +2,7 @@
  * This file is property of and copyright by the ALICE HLT Project        * 
  * All rights reserved.                                                   *
  *                                                                        *
- * Primary Authors: Albin Gaignette                                       *
+ * Primary Authors: Svein Lindal                                          *
  *                                                                        *
  * Permission to use, copy, modify and distribute this software and its   *
  * documentation strictly for non-commercial purposes is hereby granted   *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-#ifndef ALIHLTPHOSHISTOPRODCLUSTERENERGY
-#define ALIHLTPHOSHISTOPRODCLUSTERENERGY
+#ifndef ALIHLTCALOHISTOCLUSTERENERGY
+#define ALIHLTCALOHISTOCLUSTERENERGY
 
 /** 
- * @file   AliHLTPHOSHistoProdClusterEnergy
+ * @file   AliHLTCaloHistoClusterEnergy
  * @author Albin Gaignette and Svein Lindal slindal@fys.uio.no
  * @date 
  * @brief  Produces Invariant mass histograms of PHOS clusters
 //#include "AliHLTPHOSBase.h"
 
 #include "Rtypes.h"
-#include "AliHLTPHOSConstants.h" 
 
 class TObjArray;
 class TH1F;
 class TH2F;
-class AliHLTCaloClusterReader;
-struct AliHLTCaloClusterHeaderStruct;
-
-
-using namespace  PhosHLTConst;
+class AliESDEvent;
+class TRefArray;
+class TString;
 
 
 /** 
- * @class AliHLTPHOSHistoProdClusterEnergy
+ * @class AliHLTCaloHistoClusterEnergy
  *
  * Class produces physics histograms for PHOS. It takes a TClonesArray
  * of AliESDCalocluster as input and fills several histograms
@@ -56,35 +53,18 @@ using namespace  PhosHLTConst;
  * @ingroup alihlt_phos
  */
 
-class AliHLTPHOSHistoProdClusterEnergy 
-{
- public:
+class AliHLTCaloHistoClusterEnergy {
+public:
   
   /** Constructor */
-  AliHLTPHOSHistoProdClusterEnergy();
-
+  AliHLTCaloHistoClusterEnergy(TString det);
+  
   /** Destructor */
-  virtual ~AliHLTPHOSHistoProdClusterEnergy();
-
-  /** Copy constructor */
-  AliHLTPHOSHistoProdClusterEnergy(const AliHLTPHOSHistoProdClusterEnergy &) :
-    fClusterReader(NULL),
-    fHistClusterEnergy(NULL),
-    fHistClusterEnergyVsNCells(NULL),
-    fHistArrayPtr(NULL)
-  {
-    // Copy constructor not implemented
-  }
-
-  /** Assignment operator */
-  AliHLTPHOSHistoProdClusterEnergy & operator= (const AliHLTPHOSHistoProdClusterEnergy)
-  {
-    // assignment
-    return *this;
-  }
-
-  /** Analyse the clusters in the event */
-  int DoEvent(AliHLTCaloClusterHeaderStruct* cHeader);
+  virtual ~AliHLTCaloHistoClusterEnergy();
+
+  /** Analyse the clusters in the event and fill histograms */
+  Int_t FillHistograms(Int_t nc, TRefArray * clustersArray);
 
   /** Get a pointer to the TObjArray of histograms */
   TObjArray *GetHistograms();
@@ -93,19 +73,25 @@ class AliHLTPHOSHistoProdClusterEnergy
   
  private:
 
-  /** Cluster reader class   */
-  AliHLTCaloClusterReader * fClusterReader;
+  /** Default constructor prohibited*/
+  AliHLTCaloHistoClusterEnergy();
+
+  /** Copy constructor prohibited */
+  AliHLTCaloHistoClusterEnergy(const AliHLTCaloHistoClusterEnergy &);
+
+  /** Assignment operator prohibited */
+  AliHLTCaloHistoClusterEnergy & operator= (const AliHLTCaloHistoClusterEnergy);
 
   /** Histogram of the 2 cluster invariant mass */
-  TH1F *fHistClusterEnergy;                 //!transient
+  TH1F * fHistClusterEnergy;                 //!transient
 
   /** 2D histogram of cluster energy vs the number of cells in the cluster */
-  TH2F *fHistClusterEnergyVsNCells;
+  TH2F * fHistClusterEnergyVsNCells;
   
   /** Pointer to the array of histograms */
   TObjArray *fHistArrayPtr;                     //!transient
 
-  ClassDef(AliHLTPHOSHistoProdClusterEnergy, 0);
+  ClassDef(AliHLTCaloHistoClusterEnergy, 1);
 
 };