PandaRoot
PndJPsiExample.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 PNDJPSIEXAMPLE_H
14 #define PNDJPSIEXAMPLE_H 1
15 
16 #include "FairTask.h"
17 #include "TH1F.h"
18 #include "TFile.h"
19 #include "TVector3.h"
20 #include "TLorentzVector.h"
21 #include <map>
22 #include <string>
23 
24 class TClonesArray;
25 class TObjectArray;
26 
27 class PndJPsiExample : public FairTask {
28 
29  public:
30  typedef std::map<Int_t, Float_t> mapper;
31 
34 
37 
39  virtual InitStatus Init();
40 
42  virtual void Exec(Option_t *opt);
43 
44  virtual void Finish();
45  // void CreateStructure();
46 
47  protected:
48  TLorentzVector track1;
49  TLorentzVector track2;
50 
52  TH1D *fInvMass;
53 
54  private:
56  TClonesArray *fTrArray;
57 
61  virtual void SetParContainers();
62 
63  ClassDef(PndJPsiExample, 1);
64 };
65 
66 #endif
virtual void Finish()
std::map< Int_t, Float_t > mapper
TLorentzVector track1
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
TLorentzVector track2