1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Oystein Djuvsland *
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 **************************************************************************/
17 * @file AliHLTPHOSPhysicsAnalyzerSpectrum.h
18 * @author Oystein Djuvsland
20 * @brief Invariant mass spectrum from 2 gammas */
22 // see below for class documentation
24 // refer to README to build package
26 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
28 #ifndef ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
29 #define ALIHLTPHOSPHYSICSANALYZERSPECTRUM_H
31 #include "AliHLTPHOSPhysicsAnalyzer.h"
35 * @class AliHLTPHOSPhysicsAnalyzerSpectrum
36 * Invariant mass spectrum from 2 gammas
37 * @ingroup alihlt_phos
40 class AliHLTPHOSPhysicsAnalyzerSpectrum : public AliHLTPHOSPhysicsAnalyzer
45 AliHLTPHOSPhysicsAnalyzerSpectrum();
47 /** Copy constructor */
48 AliHLTPHOSPhysicsAnalyzerSpectrum(const AliHLTPHOSPhysicsAnalyzerSpectrum &);
50 AliHLTPHOSPhysicsAnalyzerSpectrum & operator = (const AliHLTPHOSPhysicsAnalyzerSpectrum)
57 virtual ~AliHLTPHOSPhysicsAnalyzerSpectrum();
59 /** Set the threshold for the 2 photon energies */
60 Int_t SetThreshold(Float_t photonEnergy0, Float_t photonEnergy1);
63 * Evaluate the distance between 2 rec points
64 * @return the distance
66 Float_t EvalDistance();
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
73 virtual void Analyze(AliHLTPHOSRecPointDataStruct* recPointsPtr[10000], Int_t nRecPoints);
76 /** Position of the first cluster */
77 Float_t* fPos0Ptr; //! transient
79 /** Position of the second cluster */
80 Float_t* fPos1Ptr; //! transient
83 Float_t* fThresholdPtr; //! transient
85 /** Energy of the clusters */
86 Float_t* fEnergyPtr; //! transient
88 ClassDef(AliHLTPHOSPhysicsAnalyzerSpectrum, 1);