GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TEaglePulser.cxx
Go to the documentation of this file.
1#include "TEaglePulser.h"
2
3#include "TClass.h"
4#include <cmath>
5#include "TMath.h"
6
7#include "TGRSIOptions.h"
8
9/// \cond CLASSIMP
11/// \endcond
12
13
15{
16 Clear();
17}
18
20
22{
23 rhs.Copy(*this);
24 return *this;
25}
26
28{
29 rhs.Copy(*this);
30}
31
32void TEaglePulser::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel* chan)
33{
34
35 /// This function creates TEaglePulserHits for each fragment and stores them in separate front and back vectors
36 if(frag == nullptr || chan == nullptr) {
37 return;
38 }
39
40 auto hit = new TDetectorHit(*frag);
41 fHits.push_back(hit);
42}
43
44void TEaglePulser::Print(Option_t*) const
45{
46 /// Prints out TEaglePulser information
47 Print(std::cout);
48}
49
50void TEaglePulser::Print(std::ostream& out) const
51{
52 /// Prints TEaglePulser information to out
53 std::ostringstream str;
54 str<<this<<": "<<fHits.size()<<" hits"<<std::endl;
55 for(auto hit : fHits) {
56 hit->Print(str);
57 }
58 str<<"----------------------------------------"<<std::endl;
59 out<<str.str();
60}
61
ClassImp(THILMnemonic) void THILMnemonic
std::vector< TDetectorHit * > fHits
Definition TDetector.h:88
void Copy(TObject &) const override
!
Definition TDetector.cxx:24
~TEaglePulser() override
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
void Print(Option_t *opt="") const override
!
TEaglePulser & operator=(const TEaglePulser &)