]>
Commit | Line | Data |
---|---|---|
2374af72 | 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 | **************************************************************************/ | |
2410262d | 15 | |
2374af72 | 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 | |
2410262d | 27 | |
91b95d47 | 28 | #ifndef ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H |
29 | #define ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H | |
2410262d | 30 | |
31 | #include "AliHLTPHOSPhysicsAnalyzer.h" | |
91b95d47 | 32 | #include "Rtypes.h" |
2410262d | 33 | |
a20d23f9 | 34 | class AliHLTPHOSRecPointContainerStruct; |
35 | ||
36 | ||
2374af72 | 37 | /** |
38 | * @class AliHLTPHOSPhysicsAnalyzerSpectrum | |
39 | * Invariant mass spectrum from 2 gammas | |
40 | * @ingroup alihlt_phos | |
41 | */ | |
2410262d | 42 | |
2410262d | 43 | class AliHLTPHOSPhysicsAnalyzerSpectrum : public AliHLTPHOSPhysicsAnalyzer |
44 | { | |
45 | public: | |
2374af72 | 46 | |
47 | /** Constructor */ | |
2410262d | 48 | AliHLTPHOSPhysicsAnalyzerSpectrum(); |
2374af72 | 49 | |
50 | /** Copy constructor */ | |
2410262d | 51 | AliHLTPHOSPhysicsAnalyzerSpectrum(const AliHLTPHOSPhysicsAnalyzerSpectrum &); |
2374af72 | 52 | /* |
2410262d | 53 | AliHLTPHOSPhysicsAnalyzerSpectrum & operator = (const AliHLTPHOSPhysicsAnalyzerSpectrum) |
54 | { | |
55 | return *this; | |
56 | } | |
2374af72 | 57 | */ |
2410262d | 58 | |
2374af72 | 59 | /** Destructor */ |
2410262d | 60 | virtual ~AliHLTPHOSPhysicsAnalyzerSpectrum(); |
61 | ||
2374af72 | 62 | /** Set the threshold for the 2 photon energies */ |
2410262d | 63 | Int_t SetThreshold(Float_t photonEnergy0, Float_t photonEnergy1); |
2374af72 | 64 | |
65 | /** | |
66 | * Evaluate the distance between 2 rec points | |
67 | * @return the distance | |
68 | */ | |
2410262d | 69 | Float_t EvalDistance(); |
2410262d | 70 | |
a20d23f9 | 71 | |
2374af72 | 72 | /** |
73 | * Analyze the event | |
a20d23f9 | 74 | * @param recPointsArrayPtr is an array of rec points in the event |
2374af72 | 75 | * @param nRecPoints is the number of rec points in the event |
76 | */ | |
a20d23f9 | 77 | virtual void Analyze(AliHLTPHOSRecPointContainerStruct* recPointsArrayPtr, Int_t nRecPoints); |
2410262d | 78 | |
79 | private: | |
2374af72 | 80 | /** Position of the first cluster */ |
81 | Float_t* fPos0Ptr; //! transient | |
82 | ||
83 | /** Position of the second cluster */ | |
84 | Float_t* fPos1Ptr; //! transient | |
85 | ||
86 | /** Cut thresholds */ | |
87 | Float_t* fThresholdPtr; //! transient | |
88 | ||
89 | /** Energy of the clusters */ | |
90 | Float_t* fEnergyPtr; //! transient | |
2410262d | 91 | |
92 | ClassDef(AliHLTPHOSPhysicsAnalyzerSpectrum, 1); | |
93 | ||
94 | }; | |
95 | ||
2410262d | 96 | #endif |
91b95d47 | 97 |