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