R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandNeutron.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14#ifndef R3BNEULANDNEUTRON_H
15#define R3BNEULANDNEUTRON_H
16
17#include "R3BNeulandCluster.h"
18#include "R3BNeulandHit.h"
19#include "TObject.h"
20#include "TVector3.h"
21#include <iostream>
22
23class R3BNeulandNeutron : public TObject
24{
25 public:
26 R3BNeulandNeutron() = default;
27 R3BNeulandNeutron(Int_t paddle, Double_t time, const TVector3& pos, const TVector3& pix);
28 explicit R3BNeulandNeutron(const R3BNeulandHit&);
29 explicit R3BNeulandNeutron(const R3BNeulandCluster&);
30
31 Int_t GetPaddle() const { return fPaddle; }
32 Double_t GetT() const { return fT; }
33 TVector3 GetPosition() const { return fPosition; }
34 TVector3 GetPixel() const { return fPixel; }
35
36 Double_t GetEtot() const;
37 Double_t GetEkin() const;
38 Double_t GetGamma() const;
39 TVector3 GetP() const;
40
41 void Print(const Option_t*) const override;
42
43 private:
44 Int_t fPaddle;
45 Double_t fT;
46 TVector3 fPosition;
47 TVector3 fPixel;
48
49 ClassDefOverride(R3BNeulandNeutron, 1)
50};
51
52std::ostream& operator<<(std::ostream&, const R3BNeulandNeutron&); // Support easy printing
53
54#endif // R3BNEULANDNEUTRON_H
std::ostream & operator<<(std::ostream &, const R3BNeulandNeutron &)
TVector3 GetPosition() const
TVector3 GetP() const
TVector3 GetPixel() const
Double_t GetEtot() const
void Print(const Option_t *) const override
R3BNeulandNeutron()=default
Double_t GetGamma() const
Int_t GetPaddle() const
Double_t GetT() const
Double_t GetEkin() const