#include <MicromegasHitIdHelper.h>
|
std::string | GetStationName (const int &hid) const |
|
void | SetStationName (const std::string &name, int &hid) const |
|
int | GetPhiSector (const int &hid) const |
|
int | GetZSector (const int &hid) const |
|
int | GetMultiLayer (const int &hid) const |
|
int | GetLayer (const int &hid) const |
|
int | GetSide (const int &hid) const |
|
int | BuildMicromegasHitId (const std::string &, const int, const int, const int, const int, const int) const |
|
void | InitializeField (const std::string &n, int vmn, int vmx) |
|
void | InitializeField (const std::string &n, int nb) |
|
void | SetFieldValue (const std::string &name, int n, HitID &targetID) const |
|
int | GetFieldValue (const std::string &name, HitID targetID) const |
|
void | PrintFields () |
|
|
static void | SetBit (int &i, int bitpos) |
|
static void | UnsetBit (int &i, int bitpos) |
|
static void | Store (int &id, int value, int first, int field) |
|
static int | Retrieve (int id, int first, int field) |
|
Definition at line 13 of file MicromegasHitIdHelper.h.
◆ MicromegasHitIdHelper()
MicromegasHitIdHelper::MicromegasHitIdHelper |
( |
| ) |
|
|
private |
◆ BuildMicromegasHitId()
int MicromegasHitIdHelper::BuildMicromegasHitId |
( |
const std::string & |
statName, |
|
|
const int |
phiSect, |
|
|
const int |
zSect, |
|
|
const int |
multiLayer, |
|
|
const int |
layer, |
|
|
const int |
side |
|
) |
| const |
◆ GetFieldValue()
int HitIdHelper::GetFieldValue |
( |
const std::string & |
name, |
|
|
HitID |
targetID |
|
) |
| const |
|
inherited |
Definition at line 48 of file HitIdHelper.cxx.
50 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
58 std::cout<<
"HitIdHelper: field "<<
name<<
" not found: returning 0"<<
◆ GetHelper()
◆ GetLayer()
int MicromegasHitIdHelper::GetLayer |
( |
const int & |
hid | ) |
const |
◆ GetMultiLayer()
int MicromegasHitIdHelper::GetMultiLayer |
( |
const int & |
hid | ) |
const |
◆ GetPhiSector()
int MicromegasHitIdHelper::GetPhiSector |
( |
const int & |
hid | ) |
const |
◆ GetSide()
int MicromegasHitIdHelper::GetSide |
( |
const int & |
hid | ) |
const |
◆ GetStationName()
std::string MicromegasHitIdHelper::GetStationName |
( |
const int & |
hid | ) |
const |
◆ GetZSector()
int MicromegasHitIdHelper::GetZSector |
( |
const int & |
hid | ) |
const |
◆ Initialize()
void MicromegasHitIdHelper::Initialize |
( |
| ) |
|
|
private |
◆ InitializeField() [1/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
nb |
|
) |
| |
|
inherited |
◆ InitializeField() [2/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
vmn, |
|
|
int |
vmx |
|
) |
| |
|
inherited |
◆ InitializeStationName()
void MicromegasHitIdHelper::InitializeStationName |
( |
| ) |
|
|
private |
◆ Print()
void HitIdHelper::Print |
( |
int |
id | ) |
|
|
staticinherited |
Definition at line 73 of file HitIdHelper.cxx.
75 for (
unsigned int i=0;
i<8*
sizeof(
int);
i++)
77 if ((
id & (1
u<<
i))) std::cout<<
"1";
◆ PrintFields()
void HitIdHelper::PrintFields |
( |
| ) |
|
|
inherited |
◆ Retrieve()
int HitIdHelper::Retrieve |
( |
int |
id, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotectedinherited |
◆ SetBit()
void HitIdHelper::SetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotectedinherited |
◆ SetFieldValue()
void HitIdHelper::SetFieldValue |
( |
const std::string & |
name, |
|
|
int |
n, |
|
|
HitID & |
targetID |
|
) |
| const |
|
inherited |
Definition at line 31 of file HitIdHelper.cxx.
33 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
38 std::cout<<
"HitIdHelper: field "<<
name<<
": supplied value "<<
n<<
39 " is not within the allowed range ["<<
m_IDs[
i].vMin<<
","<<
m_IDs[
i].vMax
40 <<
"] : the result of this action is unpredictable "<<std::endl;
◆ SetStationName()
void MicromegasHitIdHelper::SetStationName |
( |
const std::string & |
name, |
|
|
int & |
hid |
|
) |
| const |
Definition at line 49 of file MicromegasHitIdHelper.cxx.
51 for (
unsigned int i=0;
i<
sizeof(v1);
i++)
53 for (
unsigned int i=0;
i<
sizeof(
v2);
i++)
55 for (
unsigned int i=0;
i<
sizeof(v3);
i++)
57 for (
unsigned int i=0;
i<
sizeof(v4);
i++)
◆ Store()
void HitIdHelper::Store |
( |
int & |
id, |
|
|
int |
value, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotectedinherited |
◆ UnsetBit()
void HitIdHelper::UnsetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotectedinherited |
◆ m_currentStorage
int HitIdHelper::m_currentStorage |
|
protectedinherited |
◆ m_IDs
The documentation for this class was generated from the following files: