#include <RPCdigit.h>
Definition at line 15 of file RPCdigit.h.
◆ RPCdigit() [1/3]
Definition at line 12 of file RPCdigit.cxx.
12 :
14{
16
18
22
25
26
28}
std::list< unsigned int > m_codes
RPCtrigDataObject(int, const std::string &)
◆ RPCdigit() [2/3]
| RPCdigit::RPCdigit |
( |
const std::string & | name, |
|
|
int | number, |
|
|
unsigned int | code, |
|
|
float | vec[4] ) |
Definition at line 31 of file RPCdigit.cxx.
31 :
40{
41}
std::vector< size_t > vec
const std::string & name() const
◆ RPCdigit() [3/3]
| RPCdigit::RPCdigit |
( |
const RPCdigit & | digit | ) |
|
◆ ~RPCdigit()
| virtual RPCdigit::~RPCdigit |
( |
| ) |
|
|
inlinevirtual |
◆ codes()
| const std::list< unsigned int > & RPCdigit::codes |
( |
void | | ) |
const |
|
inline |
◆ decoding()
| const RPCdecoder & RPCdigit::decoding |
( |
void | | ) |
const |
|
inline |
◆ eta()
| bool RPCdigit::eta |
( |
float & | eta | ) |
const |
Definition at line 205 of file RPCdigit.cxx.
206{
209 {
210 eta = -std::log(std::tan(
theta/2.f));
212 return true;
213 }
214 return false;
215}
Scalar theta() const
theta method
bool theta(float &) const
◆ muon()
◆ name()
| const std::string & BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ number()
| int RPCtrigDataObject::number |
( |
void | | ) |
const |
|
inlineinherited |
◆ operator=()
Definition at line 142 of file RPCdigit.cxx.
143{
147
149
153
154
155
156
157
158
161
163
164 return *this;
165}
◆ operator==()
| bool RPCdigit::operator== |
( |
const RPCdigit & | digit | ) |
const |
Definition at line 169 of file RPCdigit.cxx.
170{
172 else return false;
173}
◆ particle_code()
| virtual int RPCdigit::particle_code |
( |
void | | ) |
const |
|
inlinevirtual |
◆ phi()
| bool RPCdigit::phi |
( |
float & | phi | ) |
const |
Definition at line 217 of file RPCdigit.cxx.
218{
219 if(
m_x != 0. ||
m_y != 0.)
220 {
222 return true;
223 }
224 return false;
225}
◆ Print()
| void RPCdigit::Print |
( |
std::ostream & | stream, |
|
|
bool | detail ) const |
|
virtual |
Reimplemented from BaseObject.
Definition at line 238 of file RPCdigit.cxx.
239{
240
241
242
243 unsigned int upper = 95;
244 unsigned int lower = 45;
245
246
248
249 for(
int i=0;
i<61;++
i) stream << (
char)
upper;
251
253 <<
time() <<
" ns" << endl;
255 {
259 }
260 stream << setiosflags(ios::fixed);
261
262 stream <<
"GlobalPosition (cm): "
263 << setiosflags(ios::fixed) << setprecision(3) << setw(12) <<
x() <<
","
264 << setiosflags(ios::fixed) << setprecision(3) << setw(12) <<
y() <<
","
265 << setiosflags(ios::fixed) << setprecision(3) << setw(12) <<
z()
266 << endl;
267
268 stream.unsetf(ios::fixed);
269
270 if(detail)
271 {
273 }
274
275 for(
int i=0;
i<61;++
i) stream << (
char) lower;
277}
void Print(std::ostream &, bool) const
ViewType view(void) const
const RPCdecoder & decoding(void) const
virtual int track_number(void) const
virtual int process_type(void) const
virtual int particle_code(void) const
◆ PrintElement()
| void RPCtrigDataObject::PrintElement |
( |
std::ostream & | , |
|
|
std::string | , |
|
|
bool | ) const |
|
inlineinherited |
◆ process_type()
| virtual int RPCdigit::process_type |
( |
void | | ) |
const |
|
inlinevirtual |
◆ radius()
| bool RPCdigit::radius |
( |
float & | rad | ) |
const |
Definition at line 182 of file RPCdigit.cxx.
183{
184 if(
m_x != 0. ||
m_y != 0.)
185 {
186 rad = std::sqrt( std::pow(
m_x,2) + std::pow(
m_y,2) );
187 return true;
188 }
189 return false;
190}
◆ set_number()
| void RPCtrigDataObject::set_number |
( |
int | number | ) |
|
|
inherited |
◆ station_eta()
| bool RPCdigit::station_eta |
( |
float & | eta | ) |
const |
Definition at line 227 of file RPCdigit.cxx.
228{
230 {
233 return true;
234 }
235 return false;
236}
◆ station_phi()
| bool RPCdigit::station_phi |
( |
float & | phi | ) |
const |
|
inline |
Definition at line 93 of file RPCdigit.h.
94{
96 {
98 return true;
99 }
100 return false;
101}
◆ station_radius()
| bool RPCdigit::station_radius |
( |
float & | rad | ) |
const |
|
inline |
Definition at line 81 of file RPCdigit.h.
82{
84 {
86 return true;
87 }
88 return false;
89}
◆ tag()
◆ theta()
| bool RPCdigit::theta |
( |
float & | theta | ) |
const |
Definition at line 193 of file RPCdigit.cxx.
194{
197 {
200 return true;
201 }
202 return false;
203}
bool radius(float &) const
◆ time()
| float RPCdigit::time |
( |
void | | ) |
const |
|
inline |
◆ track_number()
| virtual int RPCdigit::track_number |
( |
void | | ) |
const |
|
inlinevirtual |
◆ x()
| float RPCdigit::x |
( |
void | | ) |
const |
|
inline |
◆ xyz()
| void RPCdigit::xyz |
( |
float | vec[3] | ) |
const |
◆ y()
| float RPCdigit::y |
( |
void | | ) |
const |
|
inline |
◆ z()
| float RPCdigit::z |
( |
void | | ) |
const |
|
inline |
◆ m_codes
| std::list<unsigned int> RPCdigit::m_codes |
|
private |
◆ m_coding
◆ m_name
| std::string BaseObject::m_name |
|
privateinherited |
◆ m_number
| int RPCtrigDataObject::m_number |
|
privateinherited |
◆ m_station_phi
| float RPCdigit::m_station_phi |
|
private |
◆ m_station_radius
| float RPCdigit::m_station_radius |
|
private |
◆ m_tag
◆ m_time
◆ m_x
◆ m_y
◆ m_z
The documentation for this class was generated from the following files: