PandaRoot
PndAnalysisTaskExample.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDANALYSISTASKEXAMPLE_H
14 #define PNDANALYSISTASKEXAMPLE_H 1
15 
16 #include "FairTask.h"
17 #include <map>
18 #include <string>
19 
20 class TClonesArray;
21 class TObjectArray;
22 class TH1F;
23 
31 
32 class PndAnalysisTaskExample : public FairTask {
33 
34  public:
35  typedef std::map<Int_t, Float_t> mapper;
36 
39 
42 
44  virtual InitStatus Init();
45 
47  virtual void Exec(Option_t *opt);
48 
49  virtual void Finish();
50  // void CreateStructure();
51 
52  protected:
53  int evcount;
54 
55  // **** some basic selectors
56  //
57  // RhoChargedParticleSelector *chargedSel;
61 
62  // **** mass selectors for the resonances/composites
63  //
69 
71  TH1F *phimass;
72  TH1F *pi0mass;
73  TH1F *dsmass;
74  TH1F *ds0mass;
75  TH1F *ppmass;
76 
77  TH1F *nmult;
78 
79  private:
81  TClonesArray *fChargedArray;
82  TClonesArray *fNeutralArray;
83 
87  virtual void SetParContainers();
88 
89  ClassDef(PndAnalysisTaskExample, 1);
90 };
91 
92 #endif
virtual void Exec(Option_t *opt)
RhoMinusParticleSelector * minusSel
RhoSimpleKaonSelector * kSel
std::map< Int_t, Float_t > mapper
RhoNeutralParticleSelector * neutralSel
RhoPlusParticleSelector * plusSel
RhoMassParticleSelector * pi0MSel
virtual InitStatus Init()
RhoSimplePionSelector * piSel
RhoMassParticleSelector * dsMSel
RhoMassParticleSelector * phiMSel
virtual void Finish()