FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tracking
SecondariesTracking
TrkData
PndTrkConformalHitList.cxx
Go to the documentation of this file.
1
//
2
// PndTrkConformalHitList.cxx
3
//
4
// authors: Lia Lavezzi - INFN Pavia (2012)
5
//
6
7
#include "
PndTrkConformalHitList.h
"
8
9
#include <iostream>
10
#include "
PndTrkConformalHit.h
"
11
12
using namespace
std
;
13
14
15
PndTrkConformalHitList::PndTrkConformalHitList
() : fConformal(new
PndTrkConformalTransform
()), fHitList(TClonesArray(
"PndTrkConformalHit"
, 10000)) {}
16
17
PndTrkConformalHitList::PndTrkConformalHitList
(
PndTrkConformalTransform
*conformal) : fConformal(conformal), fHitList(TClonesArray(
"PndTrkConformalHit"
, 10000)) {}
18
19
PndTrkConformalHitList::PndTrkConformalHitList
(
const
PndTrkConformalHitList
& hlist) : TObject(hlist), fConformal(new
PndTrkConformalTransform
()), fHitList(TClonesArray(
"PndTrkConformalHit"
, 10000)) {
20
*
this
= hlist;
21
}
22
23
PndTrkConformalHitList::~PndTrkConformalHitList
() {
24
delete
fConformal
;
25
fHitList
.Delete();
26
}
27
28
PndTrkConformalHitList
&
PndTrkConformalHitList::operator=
(
const
PndTrkConformalHitList
& hlist) {
29
fHitList
= TClonesArray(hlist.
fHitList
);
30
fConformal
= hlist.
fConformal
;
31
return
*
this
;
32
}
33
34
35
// ----------------------------------------------------
36
37
void
PndTrkConformalHitList::Reset
() {
38
fConformal
= NULL;
39
fHitList
.Clear();
40
}
41
42
void
PndTrkConformalHitList::Clear
(Option_t* opt) {
43
fConformal
= NULL;
44
fHitList
.Clear(opt);
45
}
46
47
void
PndTrkConformalHitList::AddHit
(
PndTrkConformalHit
*chit) {
48
int
size =
fHitList
.GetEntriesFast();
49
new
(
fHitList
[size])
PndTrkConformalHit
(*chit);
50
}
51
52
PndTrkConformalHit
*
PndTrkConformalHitList::GetHit
(
int
index) {
53
return
(
PndTrkConformalHit
*)
fHitList
.At(index);
54
}
55
56
57
void
PndTrkConformalHitList::Print
() {
58
59
cout <<
"###############################"
<< endl;
60
for
(
int
ihit = 0; ihit <
GetNofHits
(); ihit++) {
61
PndTrkConformalHit
* chit = (
PndTrkConformalHit
*)
fHitList
.At(ihit);
62
chit->
Print
();
63
}
64
}
65
66
67
void
PndTrkConformalHitList::Draw
(Color_t color) {
68
for
(
int
ihit = 0; ihit <
GetNofHits
(); ihit++) {
69
PndTrkConformalHit
* chit = (
PndTrkConformalHit
*)
fHitList
.At(ihit);
70
chit->
Draw
(color);
71
}
72
}
73
74
75
76
ClassImp
(
PndTrkConformalHitList
)
77
PndTrkConformalHitList::operator=
PndTrkConformalHitList & operator=(const PndTrkConformalHitList &hlist)
Definition:
PndTrkConformalHitList.cxx:28
PndTrkConformalHitList::fHitList
TClonesArray fHitList
Definition:
PndTrkConformalHitList.h:58
std
Definition:
MvdMQ/run/runFileSampler.cxx:18
PndTrkConformalHitList::PndTrkConformalHitList
PndTrkConformalHitList()
Definition:
PndTrkConformalHitList.cxx:15
PndTrkConformalHitList::Reset
void Reset()
Definition:
PndTrkConformalHitList.cxx:37
PndTrkConformalHitList::GetNofHits
Int_t GetNofHits()
Definition:
PndTrkConformalHitList.h:49
PndTrkConformalHitList::~PndTrkConformalHitList
~PndTrkConformalHitList()
Definition:
PndTrkConformalHitList.cxx:23
PndTrkConformalHitList::AddHit
void AddHit(PndTrkConformalHit *chit)
Definition:
PndTrkConformalHitList.cxx:47
PndTrkConformalHit::Draw
void Draw(Color_t color)
Definition:
PndTrkConformalHit.cxx:34
PndTrkConformalHitList::GetHit
PndTrkConformalHit * GetHit(int index)
Definition:
PndTrkConformalHitList.cxx:52
PndTrkConformalHitList
Definition:
PndTrkConformalHitList.h:25
PndTrkConformalHitList.h
PndTrkConformalHitList::Print
void Print()
Definition:
PndTrkConformalHitList.cxx:57
PndTrkConformalHit::Print
void Print()
Definition:
PndTrkConformalHit.cxx:95
PndTrkConformalHitList::fConformal
PndTrkConformalTransform * fConformal
Definition:
PndTrkConformalHitList.h:57
PndTrkConformalHit.h
PndTrkConformalHit
Definition:
PndTrkConformalHit.h:14
ClassImp
ClassImp(PndAnaContFact)
PndTrkConformalTransform
Definition:
PndTrkConformalTransform.h:7
PndTrkConformalHitList::Clear
void Clear(Option_t *opt="")
Definition:
PndTrkConformalHitList.cxx:42
PndTrkConformalHitList::Draw
void Draw(Color_t color=kBlack)
Definition:
PndTrkConformalHitList.cxx:67
Generated on Sun Aug 18 2019 03:01:52 for FairRoot/PandaRoot by
1.8.8