// or
// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
-//#include "AliHLTPHOSBase.h"
#include "Rtypes.h"
-// #include "TClonesArray.h"
-
+#include "AliHLTCaloHistoProducer.h"
class TRefArray;
class TObjArray;
class TH1F;
-class AliHLTCaloClusterReader;
-class AliESDEvent;
-class TString;
-struct AliHLTCaloClusterHeaderStruct;
/**
* Class produces physics histograms for PHOS. It takes a TClonesArray
* of AliESDCalocluster as input and fills several histograms
*
- * Histograms (1D):
- * - Total number of clusters per event
- * - Energy distribution of clusters
- * - Total energy in event
- * - Invariant mass of two clusters
- * - Number of cells in clusters
- * - Fraction of cells with energy deposit
- *
- * Histograms (2D):
- * - Number of cells in cluster vs cluster energy
- * - Number of clusters vs total energy
- *
* @ingroup alihlt_phos
*/
//class AliHLTCaloHistoMatchedTracks : public AliHLTPHOSBase
-class AliHLTCaloHistoMatchedTracks {
+class AliHLTCaloHistoMatchedTracks : public AliHLTCaloHistoProducer {
public:
/** Destructor */
virtual ~AliHLTCaloHistoMatchedTracks();
-
- /** Analyse the clusters in the event */
- // int DoEvent(AliHLTCaloClusterHeaderStruct* cHeader);
-// int DoEvent(AliESDEvent * event);
-
/** Loop over cluster data and fill histograms */
- int FillHistograms(Int_t nc, TRefArray * fClustersArray);
-
- /** Get a pointer to the TObjArray of histograms */
- TObjArray * GetHistograms();
+ Int_t FillHistograms(Int_t nc, TRefArray * clusterArray);
+ Int_t FillHistograms(Int_t nc, vector<AliHLTCaloClusterDataStruct*> &cVec);
-
+ /** Do the actual histogram filling, regardless of clustertype */
+ template <class T>
+ Int_t FillMatchedTracks(T*);
private:
/** Assignment operator */
AliHLTCaloHistoMatchedTracks & operator= (const AliHLTCaloHistoMatchedTracks);
- /** Cluster reader class */
- AliHLTCaloClusterReader * fClusterReader;
-
- /** Pointer to the array of histograms */
- TObjArray *fHistArrayPtr; //!transient
-
/** Histogram of the 2 cluster invariant mass */
TH1F *fHistMatchDistance; //!transient
/** Histograms of the energy distribution of mached and unmatched clusters */
TH1F *fHistMatchedEnergy; //!transient
TH1F *fHistUnMatchedEnergy; //!transient
-
-
-
- ClassDef(AliHLTCaloHistoMatchedTracks, 1);
+ ClassDef(AliHLTCaloHistoMatchedTracks, 0);
};