GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TTAC.cxx
Go to the documentation of this file.
1#include "TTAC.h"
2#include <iostream>
3#include "TRandom.h"
4#include "TMath.h"
5
7{
8 // Default Constructor
9 Clear();
10}
11
12TTAC::TTAC(const TTAC& rhs) : TDetector(rhs)
13{
14 // Copy Contructor
15 rhs.Copy(*this);
16}
17
19{
20 rhs.Copy(*this);
21 return *this;
22}
23
24void TTAC::Print(Option_t*) const
25{
26 // Prints out TTAC Multiplicity, currently does little.
27 Print(std::cout);
28}
29
30void TTAC::Print(std::ostream& out) const
31{
32 std::ostringstream str;
33 str << GetMultiplicity() << " hits" << std::endl;
34 out << str.str();
35}
36
37void TTAC::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel*)
38{
39 auto* hit = new TTACHit(*frag);
40 AddHit(hit);
41}
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
Definition TTAC.h:27
TTAC & operator=(const TTAC &)
!
Definition TTAC.cxx:18
TTAC()
Definition TTAC.cxx:6
void Print(Option_t *opt="") const override
!
Definition TTAC.cxx:24
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TTAC.cxx:37