GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TGenericDetector.cxx
Go to the documentation of this file.
1#include "TGenericDetector.h"
2
3#include "TClass.h"
4#include <cmath>
5#include "TMath.h"
6
7#include "TGRSIOptions.h"
8
13
15{
16 rhs.Copy(*this);
17 return *this;
18}
19
21{
22 rhs.Copy(*this);
23}
24
25void TGenericDetector::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel* chan)
26{
27
28 /// This function creates TGenericDetectorHits for each fragment and stores them in separate front and back vectors
29 if(frag == nullptr || chan == nullptr) {
30 return;
31 }
32
33 auto* hit = new TDetectorHit(*frag);
34 AddHit(hit);
35}
36
37void TGenericDetector::Print(Option_t*) const
38{
39 Print(std::cout);
40}
41
42void TGenericDetector::Print(std::ostream& out) const
43{
44 std::ostringstream str;
45 str << __PRETTY_FUNCTION__ << "\tnot yet written." << std::endl; // NOLINT(cppcoreguidelines-pro-bounds-array-to-pointer-decay)
46 out << str.str();
47}
void Copy(TObject &) const override
!
Definition TDetector.cxx:24
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
!
TGenericDetector & operator=(const TGenericDetector &)
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!