]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSPhysicsAnalyzer.h
Added new files to build system
[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"
2410262d 11
91b95d47 12class TObjArray;
13class TH1F;
14class AliHLTPHOSClusterDataStruct;
15
16const Float_t kCRYSTAL_SIZE = 2.25;
2410262d 17
18class AliHLTPHOSPhysicsAnalyzer
91b95d47 19{
2410262d 20 public:
21 AliHLTPHOSPhysicsAnalyzer();
22 virtual ~AliHLTPHOSPhysicsAnalyzer();
23
24 AliHLTPHOSPhysicsAnalyzer(const AliHLTPHOSPhysicsAnalyzer & );
25 AliHLTPHOSPhysicsAnalyzer & operator = (const AliHLTPHOSPhysicsAnalyzer &) {return *this;}
26
27 void SetHistogram(TH1F* histPtr) {fRootHistPtr = histPtr;}
28
29 void LocalPosition(AliHLTPHOSClusterDataStruct* clusterPtr, Float_t* locPositionPtr);
30 void GlobalPosition(AliHLTPHOSClusterDataStruct* clusterPtr, Float_t* positionPtr);
31 void GlobalPosition(Float_t* locPositionPtr , Float_t* positionPtr, Int_t module);
32
33 virtual void WriteHistogram(Char_t* fileName = "histogram.root");
34 virtual void Analyze(AliHLTPHOSClusterDataStruct* clustersPtr[10000], Int_t nClusters) = 0;
35
36 protected:
37
91b95d47 38 TObjArray* fClustersPtr; //! /**<Pointer to the clusters to be analyzed*/
39 TH1F* fRootHistPtr; //! /**<Pointer to the histograms which is to be filled*/
2410262d 40
41 private:
91b95d47 42 Float_t fRotParametersCos[5]; /**<Parameters for calculating global position*/
43 Float_t fRotParametersSin[5]; /**<Parameters for calculating global position*/
44 Float_t fPHOSRadius; /**<Distance from the IP to the crystals*/
2410262d 45
46 ClassDef(AliHLTPHOSPhysicsAnalyzer,1);
47};
48
49#endif