GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTdrSiLi.cxx
Go to the documentation of this file.
1#include <iostream>
2#include "TTdrSiLi.h"
3#include "TRandom.h"
4#include "TMath.h"
5
6////////////////////////////////////////////////////////////
7//
8// TTdrSiLi
9//
10// The TTdrSiLi class defines the observables and algorithms used
11// when analyzing GRIFFIN data.
12//
13////////////////////////////////////////////////////////////
14
15/// \cond CLASSIMP
17/// \endcond
18
19bool TTdrSiLi::fSetCoreWave = false;
20
22{
23#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
24 Class()->IgnoreTObjectStreamer(kTRUE);
25#endif
26 Clear();
27}
28
30{
31#if ROOT_VERSION_CODE < ROOT_VERSION(6,0,0)
32 Class()->IgnoreTObjectStreamer(kTRUE);
33#endif
34 rhs.Copy(*this);
35}
36
37void TTdrSiLi::Copy(TObject& rhs) const
38{
39 TDetector::Copy(rhs);
40
41 static_cast<TTdrSiLi&>(rhs).fSetCoreWave = fSetCoreWave;
42}
43
45{
46 // Default Destructor
47}
48
49void TTdrSiLi::Clear(Option_t* opt)
50{
51 // Clears the mother, all of the hits
53}
54
55void TTdrSiLi::Print(Option_t*) const
56{
57 // Prints out TTdrSiLi members, currently does nothing.
58 Print(std::cout);
59}
60
61void TTdrSiLi::Print(std::ostream& out) const
62{
63 std::ostringstream str;
64 str<<fHits.size()<<" fHits"<<std::endl;
65 out<<str.str();
66}
67
69{
70 rhs.Copy(*this);
71 return *this;
72}
73
74void TTdrSiLi::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel*)
75{
76 auto hit = new TTdrSiLiHit(*frag);
77 fHits.push_back(hit);
78}
79
81{
82 // Gets the position vector for a crystal specified by DetNbr
83 // Does not currently contain any positons.
84 return TVector3(0, 0, 1);
85}
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
void Print(Option_t *opt="") const override
!
Definition TTdrSiLi.cxx:55
void Copy(TObject &) const override
!
Definition TTdrSiLi.cxx:37
TTdrSiLi & operator=(const TTdrSiLi &)
!
Definition TTdrSiLi.cxx:68
static TVector3 GetPosition(int DetNbr)
!
Definition TTdrSiLi.cxx:80
static bool fSetCoreWave
! Flag for Waveforms ON/OFF
Definition TTdrSiLi.h:36
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TTdrSiLi.cxx:74
~TTdrSiLi() override
Definition TTdrSiLi.cxx:44
void Clear(Option_t *opt="all") override
!
Definition TTdrSiLi.cxx:49