#include <AlfaLocalHits.h>
Definition at line 67 of file AlfaLocalHits.h.
◆ AlfaLocalHits()
AlfaLocalHits::AlfaLocalHits |
( |
| ) |
|
◆ AddHit()
◆ ApplyPathPattern()
void AlfaLocalHits::ApplyPathPattern |
( |
const char * |
pattern | ) |
|
Definition at line 179 of file AlfaLocalHits.cxx.
188 TObjArray toa_tokenized_pattern(4,0);
189 toa_tokenized_pattern = * ts_pattern.Tokenize(
"_");
190 if(toa_tokenized_pattern.GetEntries() != 4){
191 std::runtime_error(
"AlfaLocalHits: Pattern of wrong length!!! " + ts_pattern);
193 TString patternitem(
"");
195 for(
int i1 = 0; i1 <
m_nhits; i1++){
196 int i1last = (i1 ==
m_nhits-1);
198 TString patternitem0 = TString(((TObjString*) toa_tokenized_pattern.At(0))->GetString());
199 if((
h1.GetPotName().Contains(patternitem0))
200 || (i1last && patternitem0.Contains(
"X"))
202 for(
int i2 = 0; i2 <
m_nhits; i2++){
203 int i2last = (i2 ==
m_nhits-1);
204 if(i2 == i1 && !i2last)
continue;
206 TString patternitem1 = TString(((TObjString*) toa_tokenized_pattern.At(1))->GetString());
207 if((h2.GetPotName().Contains(patternitem1))
208 ||(i2last && patternitem1.Contains(
"X"))
210 for(
int i3 = 0; i3 <
m_nhits; i3++){
211 int i3last = (i3 ==
m_nhits-1);
212 if(i3 == i1 && !i3last)
continue;
213 if(i3 == i2 && !i3last)
continue;
215 TString patternitem2 = TString(((TObjString*) toa_tokenized_pattern.At(2))->GetString());
216 if((h3.GetPotName().Contains(patternitem2))
217 ||(i3last && patternitem2.Contains(
"X"))
219 for(
int i4 = 0; i4 <
m_nhits; i4++){
220 int i4last = (i4 ==
m_nhits-1);
221 if(i4 == i1 && !i4last)
continue;
222 if(i4 == i2 && !i4last)
continue;
223 if(i4 == i3 && !i4last)
continue;
225 TString patternitem3 = TString(((TObjString*) toa_tokenized_pattern.At(3))->GetString());
226 if((h4.GetPotName().Contains(patternitem3))
227 ||(i4last && patternitem3.Contains(
"X"))
229 if(patternitem0!=
'X') {alh_tmp.
AddHit(
h1);}
230 if(patternitem1!=
'X') {alh_tmp.
AddHit(h2);}
231 if(patternitem2!=
'X') {alh_tmp.
AddHit(h3);}
232 if(patternitem3!=
'X') {alh_tmp.
AddHit(h4);}
◆ AssignZ()
void AlfaLocalHit::AssignZ |
( |
| ) |
|
|
inherited |
Definition at line 65 of file AlfaLocalHits.cxx.
67 throw std::runtime_error(
"AlfaLocalHit::AssignZ() m_pot not assigned");
79 throw std::runtime_error(
"AlfaLocalHit::AssignZ: z coordinate was not assigned for the hit");
◆ Dump()
void AlfaLocalHits::Dump |
( |
| ) |
|
Definition at line 160 of file AlfaLocalHits.cxx.
162 cout <<
"Cannot dump the AlfaLocalHits object, it has zero size." << endl;
164 cout <<
"Dumping object of AlfaLocalHits class:" << endl;
166 cout <<
"at " <<
i <<
" ";
◆ DumpPaths()
void AlfaLocalHits::DumpPaths |
( |
| ) |
|
◆ GetHit()
Definition at line 258 of file AlfaLocalHits.cxx.
260 throw std::runtime_error(
"Requesting hit with overflow index");
262 return &(
m_hits.at(ihit));
◆ GetLocRecCorr()
◆ GetMDindex()
int AlfaLocalHit::GetMDindex |
( |
const char * |
name | ) |
|
|
inherited |
Definition at line 91 of file AlfaLocalHits.cxx.
93 if(
n.Contains(
"B7L1U"))
return 0;
94 if(
n.Contains(
"B7L1L"))
return 1;
95 if(
n.Contains(
"A7L1U"))
return 2;
96 if(
n.Contains(
"A7L1L"))
return 3;
97 if(
n.Contains(
"A7R1U"))
return 4;
98 if(
n.Contains(
"A7R1L"))
return 5;
99 if(
n.Contains(
"B7R1U"))
return 6;
100 if(
n.Contains(
"B7R1L"))
return 7;
101 throw std::runtime_error(
"AlfaLocalHit::GetMDindex ... Not recognised detector name: " +
n);
◆ GetMDname()
TString AlfaLocalHit::GetMDname |
( |
int |
i | ) |
|
|
inherited |
Definition at line 103 of file AlfaLocalHits.cxx.
104 if(
i == 0)
return {
"B7L1U"};
105 if(
i == 1)
return {
"B7L1L"};
106 if(
i == 2)
return {
"A7L1U"};
107 if(
i == 3)
return {
"A7L1L"};
108 if(
i == 4)
return {
"A7R1U"};
109 if(
i == 5)
return {
"A7R1L"};
110 if(
i == 6)
return {
"B7R1U"};
111 if(
i == 7)
return {
"B7R1L"};
112 throw std::runtime_error(
"AlfaLocalHit::GetMDname ... Not recognised detector number: " +
std::to_string(
i));
◆ GetNhits()
int AlfaLocalHits::GetNhits |
( |
| ) |
|
|
inline |
◆ GetNpaths()
int AlfaLocalHits::GetNpaths |
( |
| ) |
|
|
inline |
◆ GetPathHits()
Definition at line 250 of file AlfaLocalHits.cxx.
252 throw std::runtime_error(
"Requesting path with overflow index");
◆ GetPathPattern()
TString AlfaLocalHits::GetPathPattern |
( |
| ) |
|
|
inline |
◆ GetPotName()
TString AlfaLocalHit::GetPotName |
( |
| ) |
const |
|
inlineinherited |
◆ GetPotNum()
int AlfaLocalHit::GetPotNum |
( |
| ) |
const |
|
inlineinherited |
◆ GetX()
float AlfaLocalHit::GetX |
( |
| ) |
const |
|
inlineinherited |
◆ GetY()
float AlfaLocalHit::GetY |
( |
| ) |
const |
|
inlineinherited |
◆ GetZ()
float AlfaLocalHit::GetZ |
( |
| ) |
const |
|
inlineinherited |
◆ IsHi()
int AlfaLocalHit::IsHi |
( |
| ) |
const |
|
inlineinherited |
◆ Print()
void AlfaLocalHit::Print |
( |
| ) |
|
|
inherited |
◆ Reset()
void AlfaLocalHits::Reset |
( |
| ) |
|
◆ ResetPaths()
void AlfaLocalHits::ResetPaths |
( |
| ) |
|
◆ SetHit()
◆ SetPathPattern()
void AlfaLocalHits::SetPathPattern |
( |
const char * |
pattern | ) |
|
◆ size()
int AlfaLocalHits::size |
( |
| ) |
|
Definition at line 153 of file AlfaLocalHits.cxx.
155 throw std::runtime_error(
"Class AlfaLocalHits: m_nhits != m_hits.size() !!! ");
◆ update()
void AlfaLocalHits::update |
( |
| ) |
|
◆ m_hits
◆ m_ishit
int AlfaLocalHit::m_ishit = 0 |
|
privateinherited |
◆ m_LocRecCorr
◆ m_nhits
int AlfaLocalHits::m_nhits |
|
private |
◆ m_npaths
int AlfaLocalHits::m_npaths |
|
private |
◆ m_pathpattern
TString AlfaLocalHits::m_pathpattern |
|
private |
◆ m_paths
◆ m_pot
int AlfaLocalHit::m_pot = 0 |
|
privateinherited |
◆ m_potname
TString AlfaLocalHit::m_potname |
|
privateinherited |
◆ m_x
Float_t AlfaLocalHit::m_x = 0.0F |
|
privateinherited |
◆ m_y
Float_t AlfaLocalHit::m_y = 0.0F |
|
privateinherited |
◆ m_z
Float_t AlfaLocalHit::m_z = 0.0F |
|
privateinherited |
The documentation for this class was generated from the following files: