]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaGammaSelection.h
streaming of AliAnaGamma and its data members (removed ! in .h) (MG)
[u/mrichter/AliRoot.git] / PWG4 / AliAnaGammaSelection.h
CommitLineData
35b8d778 1#ifndef ALIANAGAMMASELECTION_H
2#define ALIANAGAMMASELECTION_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id$ */
6
7/* History of cvs commits:
8 *
9 * $Log$
10 *
11 *
12 */
13
14//_________________________________________________________________________
15// Class for plotting particle/cluster/track distributions without cuts
16// and select clusters/tracks/particles needed in the analysis
17// depending on PID criteria or other.
18//
19//
20//*-- Author: Gustavo Conesa (INFN-LNF)
21
22// --- ROOT system ---
23#include <TParticle.h>
24#include <TClonesArray.h>
25#include "TObject.h"
26#include <TH2F.h>
27#include <TNtuple.h>
28#include <TString.h>
29
30class TList ;
31
32class AliAnaGammaSelection : public TObject {
33
34public:
35
36 AliAnaGammaSelection() ; // default ctor
37 AliAnaGammaSelection(const AliAnaGammaSelection & g) ; // cpy ctor
38 AliAnaGammaSelection & operator = (const AliAnaGammaSelection & g) ;//cpy assignment
39 virtual ~AliAnaGammaSelection() ; //virtual dtor
40
41 enum Det {kEMCAL, kPHOS, kCTS};
42
43 void InitParameters();
44
45 Bool_t IsMC() const {return fAnaMC ; };
46 Bool_t FillCTS() const {return fFillCTS ;};
47
48 TList * GetCreateOutputObjects();
49 void Selection(TString det, TClonesArray * pl, TClonesArray * plPrim) const;
50
51 void Print(const Option_t * opt)const;
52
53 void SetFillCTS(Bool_t f) {fFillCTS = f;}
54 void SetMC() {fAnaMC = kTRUE ; }
55
56
57 private:
58 Bool_t fAnaMC ; //Set in case of using MCData reader
59 Bool_t fFillCTS ; //Keep CTS info in fntCTS
60
61 //Histograms
62 TNtuple * fntEMCAL ; //ntuple of EMCAL particles before selection.
63 TNtuple * fntPHOS ; //ntuple of PHOS particles before selection.
64 TNtuple * fntCTS ; //ntuple of CTS particles before selection.
65
66 ClassDef(AliAnaGammaSelection,1)
67} ;
68
69
70#endif //ALIANAGAMMASELECTION_H
71
72
73