4 /**************************************************************************
5 * This file is property of and copyright by the ALICE HLT Project *
6 * All rights reserved. *
8 * Primary Authors: Oystein Djuvsland *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
20 * @file AliHLTPHOSPhysicsAnalyzerSpectrum.h
21 * @author Oystein Djuvsland
23 * @brief Invariant mass spectrum from 2 gammas */
25 // see below for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
31 #ifndef ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
32 #define ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
34 #include "AliHLTPHOSPhysicsAnalyzer.h"
37 class AliHLTPHOSRecPointContainerStruct;
41 * @class AliHLTPHOSPhysicsAnalyzerSpectrum
42 * Invariant mass spectrum from 2 gammas
43 * @ingroup alihlt_phos
46 class AliHLTPHOSPhysicsAnalyzerSpectrum : public AliHLTPHOSPhysicsAnalyzer
51 AliHLTPHOSPhysicsAnalyzerSpectrum();
53 /** Copy constructor */
54 AliHLTPHOSPhysicsAnalyzerSpectrum(const AliHLTPHOSPhysicsAnalyzerSpectrum &);
57 AliHLTPHOSPhysicsAnalyzerSpectrum & operator = (const AliHLTPHOSPhysicsAnalyzerSpectrum)
65 virtual ~AliHLTPHOSPhysicsAnalyzerSpectrum();
67 /** Set the threshold for the 2 photon energies */
68 Int_t SetThreshold(Float_t photonEnergy0, Float_t photonEnergy1);
71 * Evaluate the distance between 2 rec points
72 * @return the distance
74 Float_t EvalDistance();
79 * @param recPointsArrayPtr is an array of rec points in the event
80 * @param nRecPoints is the number of rec points in the event
82 virtual void Analyze(AliHLTPHOSRecPointContainerStruct* recPointsArrayPtr, Int_t nRecPoints);
85 /** Position of the first cluster */
86 Float_t* fPos0Ptr; //! transient
88 /** Position of the second cluster */
89 Float_t* fPos1Ptr; //! transient
92 Float_t* fThresholdPtr; //! transient
94 /** Energy of the clusters */
95 Float_t* fEnergyPtr; //! transient
97 ClassDef(AliHLTPHOSPhysicsAnalyzerSpectrum, 1);