1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // Class for spectrum correction
17 // Subtraction of hadronic background, Unfolding of the data and
18 // Renormalization done here
19 // For more information see the implementation file
21 #ifndef ALIHFEINCLUSIVESPECTRUM_H
22 #define ALIHFEINCLUSIVESPECTRUM_H
24 #include "AliHFECorrectSpectrumBase.h"
34 class AliHFEcontainer;
37 class AliHFEInclusiveSpectrumQA;
39 class AliHFEInclusiveSpectrum : public AliHFECorrectSpectrumBase{
42 AliHFEInclusiveSpectrum(const char* name);
43 ~AliHFEInclusiveSpectrum();
46 virtual Bool_t Init(const AliHFEcontainer *datahfecontainer, const AliHFEcontainer *mchfecontainer, const AliHFEcontainer */*bghfecontainer*/=0x0, const AliHFEcontainer *v0hfecontainer=0x0,AliCFContainer *photoniccontainerD=0x0);
47 virtual Bool_t Correct(Bool_t subtractcontamination=kTRUE, Bool_t subtractphotonic=kFALSE);
49 AliCFDataGrid *SubtractBackground();
50 AliCFDataGrid *SubtractPhotonicBackground();
51 AliCFDataGrid *CorrectV0Efficiency(AliCFDataGrid* const bgsubpectrum = 0x0);
52 AliCFDataGrid *CorrectParametrizedEfficiency(AliCFDataGrid* const bgsubpectrum = 0x0);
53 THnSparse *Unfold(AliCFDataGrid* const bgsubpectrum = 0x0);
54 AliCFDataGrid *CorrectForEfficiency(AliCFDataGrid* const bgsubpectrum = 0x0);
56 void WriteResults(const char *filename);
59 AliHFEInclusiveSpectrum(const AliHFEInclusiveSpectrum &ref);
60 AliHFEInclusiveSpectrum &operator=(const AliHFEInclusiveSpectrum &ref);
61 virtual void Copy(TObject &o) const;
63 AliHFEInclusiveSpectrumQA *fQA; // QA
65 ClassDef(AliHFEInclusiveSpectrum, 1)