#include <EdbVertexComb.h>
◆ EdbTopology()
| EdbTopology::EdbTopology |
( |
| ) |
|
|
inline |
◆ ~EdbTopology()
| virtual EdbTopology::~EdbTopology |
( |
| ) |
|
|
inlinevirtual |
◆ AddSingleTracks()
| void EdbTopology::AddSingleTracks |
( |
TObjArray & |
tracks | ) |
|
|
inline |
TObjArray eTracks
Definition: EdbVertexComb.h:11
TTree * tracks
Definition: check_tr.C:19
◆ AddVertex()
TObjArray eVertices
Definition: EdbVertexComb.h:10
◆ DZ()
| Float_t EdbTopology::DZ |
( |
| ) |
|
39 int n=
Nvtx();
if(n<2)
return dz;
42 for(
int i=1; i<n; i++)
brick dz
Definition: RecDispMC.C:107
EdbVertex * GetVertex(int i) const
Definition: EdbVertexComb.h:22
Int_t Nvtx() const
Definition: EdbVertexComb.h:17
Float_t VZ() const
Definition: EdbVertex.h:135
◆ GetTrack()
| EdbTrackP* EdbTopology::GetTrack |
( |
int |
i | ) |
const |
|
inline |
Definition: EdbPattern.h:118
◆ GetVertex()
| EdbVertex* EdbTopology::GetVertex |
( |
int |
i | ) |
const |
|
inline |
Definition: EdbVertex.h:68
◆ IsEqual()
54 if(
Nvtx() !=
t.Nvtx() )
return false;
56 if(
DZ() !=
t.DZ() )
return false;
TTree * t
Definition: check_shower.C:4
Float_t DZ()
Definition: EdbVertexComb.cxx:36
Float_t Probability()
Definition: EdbVertexComb.cxx:23
◆ MaxV()
| Int_t EdbTopology::MaxV |
( |
| ) |
|
|
inline |
◆ Ntr()
| Int_t EdbTopology::Ntr |
( |
| ) |
const |
|
inline |
18 {
return eTracks.GetEntriesFast();}
◆ Nvtx()
| Int_t EdbTopology::Nvtx |
( |
| ) |
const |
|
inline |
◆ OrderVtxByZ()
| void EdbTopology::OrderVtxByZ |
( |
| ) |
|
64 TArrayF rating(nt); TArrayI ind(nt);
65 for(
int i=0; i<nt; i++) rating[i] =
GetVertex(i)->
VZ();
66 Sort( nt, rating.GetArray(), ind.GetArray(), 1 );
68 for(
int i=0; i<nt; i++) tmparr.Add(
GetVertex(ind[i]) );
◆ Print()
| void EdbTopology::Print |
( |
| ) |
|
116 printf(
"\nEdbTopology: prob = %10.8f dz= %10.2f\n",
Probability(),
DZ());
117 printf(
" id Prob X Y Z MaxImp MaxApert Vol[(0.1mm)³] Tracks\n");
118 for(
int i=0; i< nvtx; i++)
char * TracksStr()
Definition: EdbVertexComb.cxx:88
char * VertexStr(EdbVertex &v)
Definition: EdbVertexComb.cxx:99
◆ PrintTracks()
| void EdbTopology::PrintTracks |
( |
| ) |
|
75 printf(
"---------------------------- Single Tracks --------------------------------------------------------\n");
76 printf(
" idtr X Y Z TX TY P idpl\n");
77 printf(
"--------------------------------------------------------------------------------------------------\n");
78 int ntr =
eTracks.GetEntriesFast();
79 for(
int i=0; i<ntr; i++) {
81 printf(
"%5d %12.2f %12.2f %12.2f %8.4f %8.4f %8.2f %4d\n"
82 ,
t->ID(),
t->X(),
t->Y(),
t->Z(),
t->TX(),
t->TY(),
t->P(),
t->Plate() );
84 printf(
"--------------------------------------------------------------------------------------------------\n");
EdbTrackP * GetTrack(int i) const
Definition: EdbVertexComb.h:23
◆ Probability()
| Float_t EdbTopology::Probability |
( |
| ) |
|
26 int n=
Nvtx();
if(!n)
return 0;
27 for(
int i=0; i<n; i++)
30 prob *= v->
V()->
prob();
VERTEX::Vertex * V() const
Definition: EdbVertex.h:154
float prob() const
upper tail $\chi^2$ probability
Definition: VtVertex.C:237
◆ TracksStr()
| char * EdbTopology::TracksStr |
( |
| ) |
|
90 char *str =
new char[1000]; memset(str,
'\0',1000);
91 char *cstr=str; cstr+=75; memset(str,
' ',75);
92 sprintf(cstr,
" ("); cstr+=4;
93 for(
int j=0; j<
Ntr(); j++) { sprintf(cstr,
" %6d",
GetTrack(j)->ID() ); cstr+=7; }
94 sprintf(cstr,
" )"); cstr+=2;
Int_t Ntr() const
Definition: EdbVertexComb.h:18
◆ VertexStr()
| char * EdbTopology::VertexStr |
( |
EdbVertex & |
v | ) |
|
101 char *str =
new char[1000]; memset(str,
'\0',1000);
103 sprintf(cstr,
"%5d %9.7f %9.1f %9.1f %9.1f %9.3f %9.4f %9.6f",
106 sprintf(cstr,
" ("); cstr+=4;
107 for(
int j=0; j<v.
N(); j++) { sprintf(cstr,
" %6d", v.
GetTrack(j)->
ID() ); cstr+=7; }
108 sprintf(cstr,
" )"); cstr+=2;
Int_t ID() const
Definition: EdbSegP.h:144
Int_t ID() const
Definition: EdbVertex.h:126
Float_t Volume()
Definition: EdbVertex.h:114
Float_t VX() const
Definition: EdbVertex.h:133
EdbTrackP * GetTrack(int i)
Definition: EdbVertex.h:141
Int_t N() const
Definition: EdbVertex.h:121
Float_t VY() const
Definition: EdbVertex.h:134
Float_t MaxImpact()
Definition: EdbVertex.h:116
Float_t MaxAperture()
Definition: EdbVertex.cxx:252
◆ eTracks
| TObjArray EdbTopology::eTracks |
|
private |
◆ eVertices
| TObjArray EdbTopology::eVertices |
|
private |
The documentation for this class was generated from the following files: