GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TFippsTAC.cxx
Go to the documentation of this file.
1#include "TFippsTAC.h"
2#include <iostream>
3#include "TRandom.h"
4#include "TMath.h"
5
7{
8 // Default Constructor
9#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
10 Class()->IgnoreTObjectStreamer(kTRUE);
11#endif
12 Clear();
13}
14
16{
17 // Default Destructor
18}
19
21{
22 // Copy Contructor
23#if ROOT_VERSION_CODE < ROOT_VERSION(6, 0, 0)
24 Class()->IgnoreTObjectStreamer(kTRUE);
25#endif
26 rhs.Copy(*this);
27}
28
30{
31 rhs.Copy(*this);
32 return *this;
33}
34
35void TFippsTAC::Print(Option_t*) const
36{
37 // Prints out TFippsTAC Multiplicity, currently does little.
38 Print(std::cout);
39}
40
41void TFippsTAC::Print(std::ostream& out) const
42{
43 std::ostringstream str;
44 str << Hits().size() << " Hits" << std::endl;
45 out << str.str();
46}
47
48void TFippsTAC::AddFragment(const std::shared_ptr<const TFragment>& frag, TChannel*)
49{
50 TFippsTACHit* hit = new TFippsTACHit(*frag);
51 Hits().push_back(hit);
52}
void Copy(TObject &) const override
!
Definition TDetector.cxx:24
void Clear(Option_t *="") override
!
Definition TDetector.cxx:54
std::vector< TDetectorHit * > & Hits()
Definition TDetector.h:78
~TFippsTAC() override
Definition TFippsTAC.cxx:15
void AddFragment(const std::shared_ptr< const TFragment > &, TChannel *) override
!
Definition TFippsTAC.cxx:48
TFippsTAC & operator=(const TFippsTAC &)
!
Definition TFippsTAC.cxx:29
void Print(Option_t *opt="") const override
!
Definition TFippsTAC.cxx:35