Detector geometry and addressing related imformation and routines.
More...
#include <CSCDQM_Detector.h>
|
const bool | AddressFromString (const std::string &str_address, Address &adr) const |
| Construct address from string. More...
|
|
const float | Area (const unsigned int station) const |
| Calculate station area in eta/phi space. More...
|
|
const float | Area (const Address &adr) const |
| Calculate address area in eta/phi space. More...
|
|
| Detector (const unsigned int p_partitions_x=0, const unsigned int p_partitions_y=0) |
| Constructor. More...
|
|
unsigned int | GlobalChamberIndex (unsigned int side, unsigned int station, unsigned int ring, unsigned int chamber) const |
| Return global chamber index on his geometric location. More...
|
|
const bool | NextAddress (unsigned int &i, const Address *&adr, const Address &mask) const |
| Address iterator by mask. More...
|
|
const bool | NextAddressBox (unsigned int &i, const AddressBox *&box, const Address &mask) const |
| Address box iterator by mask. More...
|
|
const bool | NextAddressBoxByPartition (unsigned int &i, const unsigned int px, const unsigned int py, AddressBox *&box) |
| Address box iterator by partition. More...
|
|
const unsigned int | NumberOfChamberCFEBs (const unsigned int station, const unsigned int ring) const |
| Returns the number of CFEBs per Chamber on given Station/Ring. More...
|
|
const unsigned int | NumberOfChamberHVs (const unsigned int station, const unsigned int ring) const |
| Returns the number of HVs per Chamber on given Station/Ring. More...
|
|
const unsigned int | NumberOfChambers (const unsigned int station, const unsigned int ring) const |
| Returns the number of chambers for the given station and ring. More...
|
|
const unsigned int | NumberOfRings (const unsigned int station) const |
| Returns the number of rings for the given station. More...
|
|
void | PrintAddress (const Address &adr) const |
| Prints address for debugging. More...
|
|
|
const float | Eta (const float r, const float z) const |
|
const float | EtaToX (const float eta) const |
| Transform eta coordinate to local canvas coordinate. More...
|
|
const float | PhiMaxCFEB (const int station, const int ring, const int chamber, const int cfeb) const |
| Get Max phi boundary for particular CFEB. More...
|
|
const float | PhiMinCFEB (const int station, const int ring, const int chamber, const int cfeb) const |
| Get Min phi boundary for particular CFEB. More...
|
|
const float | PhiToY (const float phi) const |
| Transform phi coordinate to local canvas coordinate. More...
|
|
const float | RMaxHV (const int station, const int ring, const int n_hv) const |
| Get R max parameter (used in address eta/phi calculation) More...
|
|
const float | RMinHV (const int station, const int ring, const int n_hv) const |
| Get R min parameter (used in address eta/phi calculation) More...
|
|
const float | Z (const int station, const int ring) const |
| Get Z parameter (used in address eta/phi calculation) More...
|
|
Detector geometry and addressing related imformation and routines.
Definition at line 183 of file CSCDQM_Detector.h.
cscdqm::Detector::Detector |
( |
const unsigned int |
p_partitions_x = 0 , |
|
|
const unsigned int |
p_partitions_y = 0 |
|
) |
| |
Constructor.
- Parameters
-
p_partition_x | Number of efficiency partitions on X axis |
p_partition_y | Number of efficiency partitions on Y axis |
- Returns
Creating real eta/phi boxes for available addresses
Address box calculated successfully. Now lets cache its partition elements for performace.
Cached the most frequently used areas
Definition at line 33 of file CSCDQM_Detector.cc.
const bool cscdqm::Detector::AddressFromString |
( |
const std::string & |
str_address, |
|
|
Address & |
adr |
|
) |
| const |
Construct address from string.
- Parameters
-
- Returns
- true if address was successfully created, false - otherwise
Definition at line 572 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::Area |
( |
const unsigned int |
station | ) |
const |
const float cscdqm::Detector::Area |
( |
const Address & |
adr | ) |
const |
const float cscdqm::Detector::Eta |
( |
const float |
r, |
|
|
const float |
z |
|
) |
| const |
|
private |
const float cscdqm::Detector::EtaToX |
( |
const float |
eta | ) |
const |
|
private |
Transform eta coordinate to local canvas coordinate.
- Parameters
-
- Returns
- local canvas coordinate
Definition at line 372 of file CSCDQM_Detector.cc.
unsigned int cscdqm::Detector::GlobalChamberIndex |
( |
unsigned int |
side, |
|
|
unsigned int |
station, |
|
|
unsigned int |
ring, |
|
|
unsigned int |
chamber |
|
) |
| const |
Return global chamber index on his geometric location.
- Parameters
-
side | Side (1,2) |
station | Station |
ring | Ring\ |
chamber | Chamber position |
- Returns
- Global chamber index starting 1. If chamber is not existing - returns 0
Definition at line 153 of file CSCDQM_Detector.cc.
const bool cscdqm::Detector::NextAddress |
( |
unsigned int & |
i, |
|
|
const Address *& |
adr, |
|
|
const Address & |
mask |
|
) |
| const |
Address iterator by mask.
- Parameters
-
- Returns
- true if address was found and filled in, false - otherwise
Definition at line 302 of file CSCDQM_Detector.cc.
const bool cscdqm::Detector::NextAddressBox |
( |
unsigned int & |
i, |
|
|
const AddressBox *& |
box, |
|
|
const Address & |
mask |
|
) |
| const |
Address box iterator by mask.
- Parameters
-
- Returns
- true if address box was found and filled in, false - otherwise
Definition at line 320 of file CSCDQM_Detector.cc.
const bool cscdqm::Detector::NextAddressBoxByPartition |
( |
unsigned int & |
i, |
|
|
const unsigned int |
px, |
|
|
const unsigned int |
py, |
|
|
AddressBox *& |
box |
|
) |
| |
Address box iterator by partition.
- Parameters
-
- Returns
- true if address box was found and filled in, false - otherwise
Definition at line 340 of file CSCDQM_Detector.cc.
const unsigned int cscdqm::Detector::NumberOfChamberCFEBs |
( |
const unsigned int |
station, |
|
|
const unsigned int |
ring |
|
) |
| const |
Returns the number of CFEBs per Chamber on given Station/Ring.
- Parameters
-
station | Station number (1...4) |
ring | Ring number (1...3) |
- Returns
- Number of CFEBs per Chamber
Definition at line 232 of file CSCDQM_Detector.cc.
const unsigned int cscdqm::Detector::NumberOfChamberHVs |
( |
const unsigned int |
station, |
|
|
const unsigned int |
ring |
|
) |
| const |
Returns the number of HVs per Chamber on given Station/Ring.
- Parameters
-
station | Station number (1...4) |
ring | Ring number (1...3) |
- Returns
- Number of HVs per Chamber
Definition at line 251 of file CSCDQM_Detector.cc.
const unsigned int cscdqm::Detector::NumberOfChambers |
( |
const unsigned int |
station, |
|
|
const unsigned int |
ring |
|
) |
| const |
Returns the number of chambers for the given station and ring.
- Parameters
-
station | Station number (1...4) |
ring | Ring number (1...3) |
- Returns
- number of chambers
Definition at line 213 of file CSCDQM_Detector.cc.
const unsigned int cscdqm::Detector::NumberOfRings |
( |
const unsigned int |
station | ) |
const |
Returns the number of rings for the given station.
- Parameters
-
station | Station number (1, 2, 3, 4) |
- Returns
- number of rings for the given station
Definition at line 199 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::PhiMaxCFEB |
( |
const int |
station, |
|
|
const int |
ring, |
|
|
const int |
chamber, |
|
|
const int |
cfeb |
|
) |
| const |
|
private |
Get Max phi boundary for particular CFEB.
- Parameters
-
station | Station number |
ring | Ring number |
chamber | Chamber number |
cfeb | CFEB number |
- Returns
- Max phi CFEB boundary
Definition at line 555 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::PhiMinCFEB |
( |
const int |
station, |
|
|
const int |
ring, |
|
|
const int |
chamber, |
|
|
const int |
cfeb |
|
) |
| const |
|
private |
Get Min phi boundary for particular CFEB.
- Parameters
-
station | Station number |
ring | Ring number |
chamber | Chamber number |
cfeb | CFEB number |
- Returns
- Min phi CFEB boundary
Definition at line 536 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::PhiToY |
( |
const float |
phi | ) |
const |
|
private |
Transform phi coordinate to local canvas coordinate.
- Parameters
-
- Returns
- local canvas coordinate
Definition at line 387 of file CSCDQM_Detector.cc.
void cscdqm::Detector::PrintAddress |
( |
const Address & |
adr | ) |
const |
const float cscdqm::Detector::RMaxHV |
( |
const int |
station, |
|
|
const int |
ring, |
|
|
const int |
n_hv |
|
) |
| const |
|
private |
Get R max parameter (used in address eta/phi calculation)
- Parameters
-
station | Station Id |
ring | Ring Id |
n_hv | HV number |
- Returns
- R max value
Definition at line 479 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::RMinHV |
( |
const int |
station, |
|
|
const int |
ring, |
|
|
const int |
n_hv |
|
) |
| const |
|
private |
Get R min parameter (used in address eta/phi calculation)
- Parameters
-
station | Station Id |
ring | Ring Id |
n_hv | HV number |
- Returns
- R min value
Definition at line 423 of file CSCDQM_Detector.cc.
const float cscdqm::Detector::Z |
( |
const int |
station, |
|
|
const int |
ring |
|
) |
| const |
|
private |
Get Z parameter (used in address eta/phi calculation)
- Parameters
-
station | Station Id |
ring | Ring Id |
- Returns
- Z value
Definition at line 403 of file CSCDQM_Detector.cc.
Map of partitions and list of it covering addresses indexes
Definition at line 230 of file CSCDQM_Detector.h.
unsigned int cscdqm::Detector::partitions_x |
|
private |
unsigned int cscdqm::Detector::partitions_y |
|
private |
float cscdqm::Detector::station_area[4] |
|
private |