GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TZeroDegree.cxx
Go to the documentation of this file.
1#include <iostream>
2
3#include "TRandom.h"
4#include "TMath.h"
5
6#include "TZeroDegree.h"
7#include "TGRSIOptions.h"
8
9bool TZeroDegree::fSetWave = false;
10
12{
13 // Default Constructor
14 Clear();
15}
16
18{
19 // Copy Contructor
20 rhs.Copy(*this);
21}
22
24{
25 rhs.Copy(*this);
26 return *this;
27}
28
29void TZeroDegree::Print(Option_t*) const
30{
31 /// Prints out TZeroDegree multiplicity, currently does little.
32 Print(std::cout);
33}
34
35void TZeroDegree::Print(std::ostream& out) const
36{
37 std::ostringstream str;
38 str << "TZeroDegree contains " << GetMultiplicity() << " hits" << std::endl;
39 out << str.str();
40}
41
42void TZeroDegree::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel* chan)
43{
44 /// Builds the ZDS Hits directly from the TFragment. Basically, loops through the data for an event and sets
45 /// observables.
46 if(frag == nullptr || chan == nullptr) {
47 return;
48 }
49
50 auto* hit = new TZeroDegreeHit(*frag);
51 AddHit(hit);
52}
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
TZeroDegree & operator=(const TZeroDegree &)
!
static bool fSetWave
Flag for Waveforms ON/OFF.
Definition TZeroDegree.h:46
void Print(Option_t *opt="") const override
!
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!