GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrPlastic.cxx
Go to the documentation of this file.
1#include <iostream>
2#include "TTdrPlastic.h"
3#include <TRandom.h>
4#include <TMath.h>
5
6/// \cond CLASSIMP
8/// \endcond
9
10bool TTdrPlastic::fSetWave = false;
11
12TVector3 TTdrPlastic::gPaddlePosition[21] = {
13 // TdrPlastic positions from Evan; Thanks Evan.
14 TVector3(0, 0, 1),
15 TVector3(14.3025, 4.6472, 22.8096),
16 TVector3(0, 15.0386, 22.8096),
17 TVector3(-14.3025, 4.6472, 22.8096),
18 TVector3(-8.8395, -12.1665, 22.8096),
19 TVector3(8.8395, -12.1665, 22.8096),
20 TVector3(19.7051, 6.4026, 6.2123),
21 TVector3(0, 20.7192, 6.2123),
22 TVector3(-19.7051, 6.4026, 6.2123),
23 TVector3(-12.1784, -16.7622, 6.2123),
24 TVector3(12.1784, -16.7622, 6.2123),
25 TVector3(19.7051, 6.4026, -6.2123),
26 TVector3(0, 20.7192, -6.2123),
27 TVector3(-19.7051, 6.4026, -6.2123),
28 TVector3(-12.1784, -16.7622, -6.2123),
29 TVector3(12.1784, -16.7622, -6.2123),
30 TVector3(14.3025, 4.6472, -22.8096),
31 TVector3(0, 15.0386, -22.8096),
32 TVector3(-14.3025, 4.6472, -22.8096),
33 TVector3(-8.8395, -12.1665, -22.8096),
34 TVector3(8.8395, -12.1665, -22.8096)};
35
37{
38 // Default Constructor
39#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
40 Class()->IgnoreTObjectStreamer(kTRUE);
41#endif
42 // Class()->AddRule("TTdrPlastic sceptar_hits attributes=NotOwner");
43 // Class()->AddRule("TTdrPlastic sceptardata attributes=NotOwner");
44 Clear();
45}
46
48{
49 // Default Destructor
50}
51
53{
54 // Copy Contructor
55#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
56 Class()->IgnoreTObjectStreamer(kTRUE);
57#endif
58 rhs.Copy(*this);
59}
60
61void TTdrPlastic::Clear(Option_t* opt)
62{
63 // Clears all of the hits
64 // The Option "all" clears the base class.
66}
67
69{
70 rhs.Copy(*this);
71 return *this;
72}
73
74void TTdrPlastic::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel*)
75{
76 auto hit = new TTdrPlasticHit(*frag); // Construction of TTdrPlasticHit is handled in the constructor
77 fHits.push_back(hit);
78}
79
80void TTdrPlastic::Print(Option_t*) const
81{
82 // Prints out TTdrPlastic Multiplicity, currently does little.
83 Print(std::cout);
84}
85
86void TTdrPlastic::Print(std::ostream& out) const
87{
88 std::ostringstream str;
89 str<<fHits.size()<<" fHits"<<std::endl;
90 out<<str.str();
91}
92
ClassImp(THILMnemonic) void THILMnemonic
std::vector< TDetectorHit * > fHits
Definition TDetector.h:88
void Copy(TObject &) const override
!
Definition TDetector.cxx:24
void Clear(Option_t *="") override
!
Definition TDetector.h:68
static TVector3 gPaddlePosition[21]
! Position of each Paddle
Definition TTdrPlastic.h:12
void Print(Option_t *opt="") const override
!
static bool fSetWave
Definition TTdrPlastic.h:44
TTdrPlastic & operator=(const TTdrPlastic &)
!
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
~TTdrPlastic() override
void Clear(Option_t *opt="") override
!