* 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
* @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();
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);
};