PandaRoot
PndEmcHeader.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 // -------------------------------------------------------------------------
14 // ----- PndEmcHeader header file -----
15 // ----- Created 21/04/07 by S.Spataro ----
16 // -------------------------------------------------------------------------
17 
24 //#pragma once
25 #ifndef PNDEMCHEADER_H
26 #define PNDEMCHEADER_H
27 
28 #include "TObject.h"
29 #include "TVector3.h"
30 
31 class PndEmcHit;
32 class PndEmcCluster;
33 
34 class PndEmcHeader : public TObject {
35  public:
37  PndEmcHeader();
38 
39  PndEmcHeader(Double32_t ene_hit, Int_t mult_hit, Int_t mult_digi, Double32_t ene_clu, Int_t mult_clu, TVector3 p_clu);
40 
42  PndEmcHeader(const PndEmcHeader &);
43 
45  virtual ~PndEmcHeader();
46 
48  virtual void Print(const Option_t *opt = "") const;
49 
51  virtual void SetHitEnergy(Double32_t energy) { fHitEnergy = energy; };
52  virtual void SetCluEnergy(Double32_t energy) { fCluEnergy = energy; };
53  virtual void SetHitMult(Int_t mult) { nHitMult = mult; };
54  virtual void SetDigiMult(Int_t mult) { nDigiMult = mult; };
55  virtual void SetCluMult(Int_t mult) { nCluMult = mult; };
56  virtual void SetPx(Double32_t px) { fPx = px; };
57  virtual void SetPy(Double32_t py) { fPy = py; };
58  virtual void SetPz(Double32_t pz) { fPz = pz; };
59 
61  virtual Double32_t GetHitEnergy() const { return fHitEnergy; };
62  virtual Double32_t GetCluEnergy() const { return fCluEnergy; };
63  virtual Int_t GetHitMult() const { return nHitMult; };
64  virtual Int_t GetDigiMult() const { return nDigiMult; };
65  virtual Int_t GetCluMult() const { return nCluMult; };
66  virtual Double32_t GetPx() const { return fPx; };
67  virtual Double32_t GetPy() const { return fPy; };
68  virtual Double32_t GetPz() const { return fPz; };
69 
70  protected:
71  Double32_t fPx; // total px
72  Double32_t fPy; // total py
73  Double32_t fPz; // total py
74  Double32_t fHitEnergy; // total energy in crystals
75  Double32_t fCluEnergy; // total energy in clusters
76  Int_t nHitMult; // number of fired crystals
77  Int_t nDigiMult; // number of fired crystals above threshold and after digitization
78  Int_t nCluMult; // number of reconstructed clusters
79 
80  ClassDef(PndEmcHeader, 2)
81 };
82 
83 #endif // PNDEMCHEADER_H
virtual Int_t GetDigiMult() const
Definition: PndEmcHeader.h:64
Int_t nCluMult
Definition: PndEmcHeader.h:78
virtual void SetPx(Double32_t px)
Definition: PndEmcHeader.h:56
virtual void SetPz(Double32_t pz)
Definition: PndEmcHeader.h:58
virtual Double32_t GetCluEnergy() const
Definition: PndEmcHeader.h:62
virtual void SetCluMult(Int_t mult)
Definition: PndEmcHeader.h:55
virtual Double32_t GetPx() const
Definition: PndEmcHeader.h:66
virtual void SetPy(Double32_t py)
Definition: PndEmcHeader.h:57
virtual void SetHitMult(Int_t mult)
Definition: PndEmcHeader.h:53
Int_t nHitMult
Definition: PndEmcHeader.h:76
virtual void SetHitEnergy(Double32_t energy)
Definition: PndEmcHeader.h:51
virtual Int_t GetCluMult() const
Definition: PndEmcHeader.h:65
virtual Int_t GetHitMult() const
Definition: PndEmcHeader.h:63
virtual Double32_t GetHitEnergy() const
Definition: PndEmcHeader.h:61
virtual Double32_t GetPz() const
Definition: PndEmcHeader.h:68
Int_t nDigiMult
Definition: PndEmcHeader.h:77
Double32_t fPz
Definition: PndEmcHeader.h:73
represents the deposited energy of one emc crystal from simulation
Definition: PndEmcHit.h:40
Double32_t fCluEnergy
Definition: PndEmcHeader.h:75
Double32_t fHitEnergy
Definition: PndEmcHeader.h:74
virtual void SetCluEnergy(Double32_t energy)
Definition: PndEmcHeader.h:52
Double32_t fPy
Definition: PndEmcHeader.h:72
Double32_t fPx
Definition: PndEmcHeader.h:68
virtual Double32_t GetPy() const
Definition: PndEmcHeader.h:67
virtual void Print(const Option_t *opt="") const
virtual void SetDigiMult(Int_t mult)
Definition: PndEmcHeader.h:54
double pz[39]
Definition: pipisigmas.h:25
virtual ~PndEmcHeader()