]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSPhysicsAnalyzer.h
Included AliHLTPHOSConstnts.h where needed
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSPhysicsAnalyzer.h
CommitLineData
2410262d 1
2#ifndef ALIHLTPHOSPHYSICSANALYZER_H
3#define ALIHLTPHOSPHYSICSANALYZER_H
4
5/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
91b95d47 8//Intended to be a base class for analysis
2410262d 9
91b95d47 10#include "Rtypes.h"
2ef3c547 11#include "AliHLTPHOSConstants.h"
12using namespace PhosHLTConst;
13
2410262d 14
91b95d47 15class TObjArray;
16class TH1F;
17class AliHLTPHOSClusterDataStruct;
18
19const Float_t kCRYSTAL_SIZE = 2.25;
2410262d 20
21class AliHLTPHOSPhysicsAnalyzer
91b95d47 22{
2410262d 23 public:
24 AliHLTPHOSPhysicsAnalyzer();
25 virtual ~AliHLTPHOSPhysicsAnalyzer();
26
27 AliHLTPHOSPhysicsAnalyzer(const AliHLTPHOSPhysicsAnalyzer & );
28 AliHLTPHOSPhysicsAnalyzer & operator = (const AliHLTPHOSPhysicsAnalyzer &) {return *this;}
29
30 void SetHistogram(TH1F* histPtr) {fRootHistPtr = histPtr;}
31
32 void LocalPosition(AliHLTPHOSClusterDataStruct* clusterPtr, Float_t* locPositionPtr);
33 void GlobalPosition(AliHLTPHOSClusterDataStruct* clusterPtr, Float_t* positionPtr);
34 void GlobalPosition(Float_t* locPositionPtr , Float_t* positionPtr, Int_t module);
35
36 virtual void WriteHistogram(Char_t* fileName = "histogram.root");
37 virtual void Analyze(AliHLTPHOSClusterDataStruct* clustersPtr[10000], Int_t nClusters) = 0;
38
39 protected:
40
91b95d47 41 TObjArray* fClustersPtr; //! /**<Pointer to the clusters to be analyzed*/
42 TH1F* fRootHistPtr; //! /**<Pointer to the histograms which is to be filled*/
2410262d 43
44 private:
91b95d47 45 Float_t fRotParametersCos[5]; /**<Parameters for calculating global position*/
46 Float_t fRotParametersSin[5]; /**<Parameters for calculating global position*/
47 Float_t fPHOSRadius; /**<Distance from the IP to the crystals*/
2410262d 48
49 ClassDef(AliHLTPHOSPhysicsAnalyzer,1);
50};
51
52#endif