#include <AlfaLocalHits.h>
Definition at line 58 of file AlfaLocalHits.h.
◆ AlfaLocalHits()
| AlfaLocalHits::AlfaLocalHits |
( |
| ) |
|
◆ AddHit()
◆ ApplyPathPattern()
| void AlfaLocalHits::ApplyPathPattern |
( |
const char * |
pattern | ) |
|
Definition at line 178 of file AlfaLocalHits.cxx.
187 TObjArray toa_tokenized_pattern(4,0);
188 toa_tokenized_pattern = * ts_pattern.Tokenize(
"_");
189 if(toa_tokenized_pattern.GetEntries() != 4){
190 std::runtime_error(
"AlfaLocalHits: Pattern of wrong length!!! " + ts_pattern);
192 TString patternitem(
"");
194 for(
int i1 = 0; i1 <
m_nhits; i1++){
195 int i1last = (i1 ==
m_nhits-1);
197 TString patternitem0 = TString(((TObjString*) toa_tokenized_pattern.At(0))->GetString());
198 if((
h1.GetPotName().Contains(patternitem0))
199 || (i1last && patternitem0.Contains(
"X"))
201 for(
int i2 = 0; i2 <
m_nhits; i2++){
202 int i2last = (i2 ==
m_nhits-1);
203 if(i2 == i1 && !i2last)
continue;
205 TString patternitem1 = TString(((TObjString*) toa_tokenized_pattern.At(1))->GetString());
206 if((h2.GetPotName().Contains(patternitem1))
207 ||(i2last && patternitem1.Contains(
"X"))
209 for(
int i3 = 0; i3 <
m_nhits; i3++){
210 int i3last = (i3 ==
m_nhits-1);
211 if(i3 == i1 && !i3last)
continue;
212 if(i3 == i2 && !i3last)
continue;
214 TString patternitem2 = TString(((TObjString*) toa_tokenized_pattern.At(2))->GetString());
215 if((h3.GetPotName().Contains(patternitem2))
216 ||(i3last && patternitem2.Contains(
"X"))
218 for(
int i4 = 0; i4 <
m_nhits; i4++){
219 int i4last = (i4 ==
m_nhits-1);
220 if(i4 == i1 && !i4last)
continue;
221 if(i4 == i2 && !i4last)
continue;
222 if(i4 == i3 && !i4last)
continue;
224 TString patternitem3 = TString(((TObjString*) toa_tokenized_pattern.At(3))->GetString());
225 if((h4.GetPotName().Contains(patternitem3))
226 ||(i4last && patternitem3.Contains(
"X"))
228 if(patternitem0!=
'X') {alh_tmp.
AddHit(
h1);}
229 if(patternitem1!=
'X') {alh_tmp.
AddHit(h2);}
230 if(patternitem2!=
'X') {alh_tmp.
AddHit(h3);}
231 if(patternitem3!=
'X') {alh_tmp.
AddHit(h4);}
241 m_paths.push_back(std::move(alh_tmp));
◆ AssignZ()
| void AlfaLocalHit::AssignZ |
( |
| ) |
|
|
inherited |
Definition at line 64 of file AlfaLocalHits.cxx.
66 throw std::runtime_error(
"AlfaLocalHit::AssignZ() m_pot not assigned");
78 throw std::runtime_error(
"AlfaLocalHit::AssignZ: z coordinate was not assigned for the hit");
◆ Dump()
| void AlfaLocalHits::Dump |
( |
| ) |
|
Definition at line 159 of file AlfaLocalHits.cxx.
161 cout <<
"Cannot dump the AlfaLocalHits object, it has zero size." << endl;
163 cout <<
"Dumping object of AlfaLocalHits class:" << endl;
165 cout <<
"at " <<
i <<
" ";
◆ DumpPaths()
| void AlfaLocalHits::DumpPaths |
( |
| ) |
|
◆ GetHit()
Definition at line 257 of file AlfaLocalHits.cxx.
259 throw std::runtime_error(
"Requesting hit with overflow index");
261 return &(
m_hits.at(ihit));
◆ GetLocRecCorr()
◆ GetMDindex()
| int AlfaLocalHit::GetMDindex |
( |
const char * |
name | ) |
|
|
inherited |
Definition at line 90 of file AlfaLocalHits.cxx.
92 if(
n.Contains(
"B7L1U"))
return 0;
93 if(
n.Contains(
"B7L1L"))
return 1;
94 if(
n.Contains(
"A7L1U"))
return 2;
95 if(
n.Contains(
"A7L1L"))
return 3;
96 if(
n.Contains(
"A7R1U"))
return 4;
97 if(
n.Contains(
"A7R1L"))
return 5;
98 if(
n.Contains(
"B7R1U"))
return 6;
99 if(
n.Contains(
"B7R1L"))
return 7;
100 throw std::runtime_error(
"AlfaLocalHit::GetMDindex ... Not recognised detector name: " +
n);
◆ GetMDname()
| TString AlfaLocalHit::GetMDname |
( |
int |
i | ) |
|
|
inherited |
Definition at line 102 of file AlfaLocalHits.cxx.
103 if(
i == 0)
return {
"B7L1U"};
104 if(
i == 1)
return {
"B7L1L"};
105 if(
i == 2)
return {
"A7L1U"};
106 if(
i == 3)
return {
"A7L1L"};
107 if(
i == 4)
return {
"A7R1U"};
108 if(
i == 5)
return {
"A7R1L"};
109 if(
i == 6)
return {
"B7R1U"};
110 if(
i == 7)
return {
"B7R1L"};
111 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 249 of file AlfaLocalHits.cxx.
251 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 152 of file AlfaLocalHits.cxx.
154 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: