]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSPhysicsAnalyzerSpectrum.h
Coding conventions and removal of obsolete files
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSPhysicsAnalyzerSpectrum.h
1 /**************************************************************************
2  * This file is property of and copyright by the ALICE HLT Project        * 
3  * All rights reserved.                                                   *
4  *                                                                        *
5  * Primary Authors: Oystein Djuvsland                                     *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          * 
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /** 
17  * @file   AliHLTPHOSPhysicsAnalyzerSpectrum.h
18  * @author Oystein Djuvsland
19  * @date 
20  * @brief  Invariant mass spectrum from 2 gammas  */
21
22 // see below for class documentation
23 // or
24 // refer to README to build package
25 // or
26 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
27
28 #ifndef ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
29 #define ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
30
31 #include "AliHLTPHOSPhysicsAnalyzer.h"
32 #include "Rtypes.h"
33
34 /**
35  * @class AliHLTPHOSPhysicsAnalyzerSpectrum
36  * Invariant mass spectrum from 2 gammas
37  * @ingroup alihlt_phos
38  */
39
40 class AliHLTPHOSPhysicsAnalyzerSpectrum : public AliHLTPHOSPhysicsAnalyzer
41 {
42  public:
43
44   /** Constructor */
45   AliHLTPHOSPhysicsAnalyzerSpectrum();
46
47   /** Copy constructor */
48   AliHLTPHOSPhysicsAnalyzerSpectrum(const AliHLTPHOSPhysicsAnalyzerSpectrum &);
49   /*
50   AliHLTPHOSPhysicsAnalyzerSpectrum & operator = (const AliHLTPHOSPhysicsAnalyzerSpectrum)
51     {
52       return *this; 
53     }
54   */
55
56   /** Destructor */
57   virtual ~AliHLTPHOSPhysicsAnalyzerSpectrum();
58
59   /** Set the threshold for the 2 photon energies */
60   Int_t SetThreshold(Float_t photonEnergy0, Float_t photonEnergy1);
61
62   /** 
63    * Evaluate the distance between 2 rec points
64    * @return the distance
65    */
66   Float_t EvalDistance();
67  
68   /** 
69    * Analyze the event 
70    * @param recPointsPtr is an array of pointers to rec points in the event
71    * @param nRecPoints is the number of rec points in the event
72    */
73   virtual void Analyze(AliHLTPHOSRecPointDataStruct* recPointsPtr[10000], Int_t nRecPoints);
74
75  private:
76   /** Position of the first cluster */
77   Float_t* fPos0Ptr;                        //! transient
78
79   /** Position of the second cluster */
80   Float_t* fPos1Ptr;                        //! transient
81
82   /** Cut thresholds */
83   Float_t* fThresholdPtr;                   //! transient
84
85   /** Energy of the clusters */
86   Float_t* fEnergyPtr;                      //! transient
87
88   ClassDef(AliHLTPHOSPhysicsAnalyzerSpectrum, 1);
89   
90 };
91
92 #endif
93