PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
Channel identification. More...
#include <Identifier.hpp>
Public Member Functions | |
Identifier () | |
~Identifier () | |
Identifier (const std::string &atype, const std::string &subType, const unsigned int &loc) | |
void | SetDammID (unsigned int &a) |
void | SetType (const std::string &a) |
void | SetSubtype (const std::string &a) |
void | SetLocation (const unsigned int &a) |
unsigned int | GetDammID () const |
const std::string & | GetType () const |
const std::string & | GetSubtype () const |
unsigned int | GetLocation () const |
void | AddTag (const std::string &s, int n) |
bool | HasTag (const std::string &s) const |
int | GetTag (const std::string &s) const |
std::map< std::string, int > | GetTagMap (void) const |
void | Zero () |
void | Print (void) const |
bool | operator== (const Identifier &x) const |
bool | operator!= (const Identifier &x) const |
bool | operator< (const Identifier &x) const |
bool | operator> (const Identifier &rhs) const |
std::string | GetPlaceName () const |
Static Public Member Functions | |
static void | PrintHeaders (void) |
Private Attributes | |
std::string | type_ |
std::string | subtype_ |
unsigned int | dammID_ |
unsigned int | location_ |
std::map< std::string, int > | tag_ |
Channel identification.
All parameters needed to uniquely specify the detector connected to a specific channel are set here. A vector of identifiers for all channels is created on initialization in InitID(). Each event that is created in ScanList() in PixieStd.cpp has its channel identifier attached to it in the variable chanID inside RawEvent
Identifier is a class that will contain basic channel information that will not change including the damm spectrum number where the raw energies will be plotted, the detector type and subtype, and the detector's physical location (strip number, detector location, ...)
Definition at line 23 of file Identifier.hpp.
|
inline |
Default constructor
The dammid and detector location variable are set to -1 and the detector type and sub type are both set to "" when an identifier object is created.
Definition at line 30 of file Identifier.hpp.
|
inline |
Default Destructor
Definition at line 32 of file Identifier.hpp.
|
inline |
Constructor taking arguments and setting values
[in] | atype | : the type to set |
[in] | subType | : the subType to set |
[in] | loc | : the location to set |
Definition at line 38 of file Identifier.hpp.
|
inline |
Insert a tag to the Identifier
[in] | s | : the name of the tag to insert |
[in] | n | : the value of the tag to insert |
Definition at line 70 of file Identifier.hpp.
|
inline |
Definition at line 59 of file Identifier.hpp.
|
inline |
Definition at line 65 of file Identifier.hpp.
|
inline |
Definition at line 140 of file Identifier.hpp.
|
inline |
Definition at line 63 of file Identifier.hpp.
int Identifier::GetTag | ( | const std::string & | s | ) | const |
[in] | s | : the name of the tag to get |
Definition at line 12 of file Identifier.cpp.
|
inline |
Definition at line 85 of file Identifier.hpp.
|
inline |
Definition at line 61 of file Identifier.hpp.
|
inline |
Check if an identifier has a tag
[in] | s | : the tag to search for |
Definition at line 75 of file Identifier.hpp.
|
inline |
Not - Equality operator for identifier
[in] | x | : the Identifier to compare to |
Definition at line 110 of file Identifier.hpp.
|
inline |
Less-then operator needed for map container in WalkCorrector.hpp
[in] | x | : the Identifier to compare |
Definition at line 117 of file Identifier.hpp.
|
inline |
Equality operator for identifier
[in] | x | : the Identifier to compare to |
Definition at line 101 of file Identifier.hpp.
|
inline |
[in] | rhs | : The right hand side that we are comparing with. |
Definition at line 135 of file Identifier.hpp.
void Identifier::Print | ( | void | ) | const |
Print all of the info for the Identifier
Definition at line 36 of file Identifier.cpp.
|
static |
Print the headers for the Identifier
Definition at line 28 of file Identifier.cpp.
|
inline |
|
inline |
Sets the location
[in] | a | : sets the location for the channel |
Definition at line 56 of file Identifier.hpp.
|
inline |
Sets the subtype of the channel
[in] | a | : the subtype to set |
Definition at line 53 of file Identifier.hpp.
|
inline |
void Identifier::Zero | ( | ) |
Zeroes an identifier
The dammid and detector location variable are reset to -1 and the detector type and sub type are both reset to "" when an identifier object is zeroed.
Definition at line 19 of file Identifier.cpp.
|
private |
Damm spectrum number for plotting calibrated energies
Definition at line 148 of file Identifier.hpp.
|
private |
Specifies the real world location of the channel. For the DSSD this variable is the strip number
Definition at line 150 of file Identifier.hpp.
|
private |
Specifies the detector sub type
Definition at line 147 of file Identifier.hpp.
|
private |
A list of tags associated with the Identifier
Definition at line 153 of file Identifier.hpp.
|
private |
Specifies the detector type
Definition at line 146 of file Identifier.hpp.