GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TPaces.cxx
Go to the documentation of this file.
1#include <iostream>
2#include "TPaces.h"
3#include "TMath.h"
4
5////////////////////////////////////////////////////////////
6//
7// TPaces
8//
9// The TPaces class defines the observables and algorithms used
10// when analyzing GRIFFIN data.
11//
12////////////////////////////////////////////////////////////
13
14bool TPaces::fSetCoreWave = false;
15
16std::array<ROOT::Math::Polar3DVector, 6> TPaces::fDetectorPosition = {
17 ROOT::Math::Polar3DVector(1., 0., 0.),
18 ROOT::Math::Polar3DVector(1., 120.178 / 180. * TMath::Pi(), 21. / 180. * TMath::Pi()),
19 ROOT::Math::Polar3DVector(1., 120.827 / 180. * TMath::Pi(), 94. / 180. * TMath::Pi()),
20 ROOT::Math::Polar3DVector(1., 119.742 / 180. * TMath::Pi(), 166. / 180. * TMath::Pi()),
21 ROOT::Math::Polar3DVector(1., 120.299 / 180. * TMath::Pi(), 237. / 180. * TMath::Pi()),
22 ROOT::Math::Polar3DVector(1., 120.193 / 180. * TMath::Pi(), 313. / 180. * TMath::Pi())};
23
25{
26 Clear();
27}
28
30{
31 rhs.Copy(*this);
32}
33
34void TPaces::Copy(TObject& rhs) const
35{
36 TDetector::Copy(rhs);
37}
38
39void TPaces::Print(Option_t*) const
40{
41 /// Prints out TPaces members, currently shows only multiplicity.
42 Print(std::cout);
43}
44
45void TPaces::Print(std::ostream& out) const
46{
47 std::ostringstream str;
48 str << GetMultiplicity() << " hits" << std::endl;
49 out << str.str();
50}
51
53{
54 rhs.Copy(*this);
55 return *this;
56}
57
58void TPaces::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel*)
59{
60 auto* hit = new TPacesHit(*frag);
61 AddHit(hit);
62}
void Copy(TObject &) const override
!
Definition TDetector.cxx:24
virtual Short_t GetMultiplicity() const
Definition TDetector.h:70
void Clear(Option_t *="") override
!
Definition TDetector.cxx:67
virtual void AddHit(TDetectorHit *hit)
Definition TDetector.h:60
void Print(Option_t *opt="") const override
!
Definition TPaces.cxx:39
void Copy(TObject &) const override
!
Definition TPaces.cxx:34
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TPaces.cxx:58
TPaces()
Definition TPaces.cxx:24
static std::array< ROOT::Math::Polar3DVector, 6 > fDetectorPosition
! Position of each detector (plus one default position)
Definition TPaces.h:16
static bool fSetCoreWave
! Flag for Waveforms ON/OFF
Definition TPaces.h:37
TPaces & operator=(const TPaces &)
!
Definition TPaces.cxx:52