PandaRoot
PndHypSimpleAna.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 PNDHYPSIMPLEANA_H
14 #define PNDHYPSIMPLEANA_H 1
15 
16 #include "FairTask.h"
17 #include <map>
18 #include <string>
19 #include "TFile.h"
20 #include "TVector3.h"
21 #include "TLorentzVector.h"
22 
23 class TClonesArray;
24 class TObjectArray;
25 class TH1F;
26 class TH2F;
27 
36 
37 class PndHypSimpleAna : public FairTask {
38 
39  public:
40  typedef std::map<Int_t, Float_t> mapper;
41 
44 
47 
49  virtual InitStatus Init();
50 
52  virtual void Exec(Option_t *opt);
53 
54  void Finish(TString cat);
55 
56  /*void SetEnergySpectra(int event,int cluster);
57  void SetTotESpectra(int clus);*/
58  Int_t GetIonCharge(Int_t Z, Int_t &mass, Int_t &str);
59 
60  // void CreateStructure();
61 
62  protected:
63  int evcount;
64 
65  // **** some basic selectors
66  //
67  // RhoChargedParticleSelector *chargedSel;
71 
72  // **** mass selectors for the resonances/composites
73  //
81 
83  TH2F *hvtx2[10];
84  // TH1F *spectra[10];
85 
86  TH1F *ds0mass;
87  TH1F *ximass;
88  TH1F *Lamb;
89  TH1F *ppi2mass;
90  TH1F *ppi2;
91  TH1F *e;
92  TH2F *pid;
93  TH2F *pidh;
94 
95  TH1F *nmult;
96 
97  private:
100  TClonesArray *fChargedArray;
101  TClonesArray *fMcTr;
102  TClonesArray *fMicroArray;
103  TClonesArray *fMcCands;
104  TClonesArray *fMc;
105  // TClonesArray* fGe;
106 
110  virtual void SetParContainers();
111 
112  ClassDef(PndHypSimpleAna, 1);
113 };
114 
115 #endif
virtual void Exec(Option_t *opt)
RhoNeutralParticleSelector * neutralSel
RhoMassParticleSelector * phiMSel
RhoMinusParticleSelector * minusSel
void Finish(TString cat)
Int_t GetIonCharge(Int_t Z, Int_t &mass, Int_t &str)
RhoSimpleProtonSelector * pSel
std::map< Int_t, Float_t > mapper
RhoMassParticleSelector * LambMSel
RhoMassParticleSelector * dsMSel
virtual InitStatus Init()
RhoSimpleKaonSelector * kSel
RhoMassParticleSelector * pi0MSel
RhoSimplePionSelector * piSel
TH2F * hvtx2[10]
RhoPlusParticleSelector * plusSel