Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
|
Channel identification. More...
#include <Identifier.hpp>
Public Types | |
typedef int | TagValue |
Type definition for the tag vaule. | |
Public Member Functions | |
Identifier () | |
~Identifier () | |
Identifier (const std::string &type, const std::string &subType, const int &loc) | |
void | SetDammID (int a) |
void | SetType (const std::string &a) |
void | SetSubtype (const std::string &a) |
void | SetLocation (int a) |
int | GetDammID () const |
const std::string & | GetType () const |
const std::string & | GetSubtype () const |
int | GetLocation () const |
void | AddTag (const std::string &s, TagValue n) |
bool | HasTag (const std::string &s) const |
TagValue | GetTag (const std::string &s) 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 |
std::string | GetPlaceName () const |
Static Public Member Functions | |
static void | PrintHeaders (void) |
Private Attributes | |
std::string | type |
std::string | subtype |
int | dammID |
int | location |
std::map< std::string, TagValue > | 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, ...)
|
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.
|
inline |
Default Destructor
Identifier::Identifier | ( | const std::string & | type, |
const std::string & | subType, | ||
const int & | loc | ||
) |
Constructor taking arguments and setting values
[in] | type | : the type to set |
[in] | subType | : the subType to set |
[in] | loc | : the location to set |
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
TagValue Identifier::GetTag | ( | const std::string & | s | ) | const |
[in] | s | : the name of the tag to get |
|
inline |
|
inline |
Check if an identifier has a tag
[in] | s | : the tag to search for |
|
inline |
Not - Equality operator for identifier
[in] | x | : the Identifier to compare to |
|
inline |
Less-then operator needed for map container in WalkCorrector.hpp
[in] | x | : the Identifier to compare |
|
inline |
Equality operator for identifier
[in] | x | : the Identifier to compare to |
void Identifier::Print | ( | void | ) | const |
Print all of the info for the Identifier
|
static |
Print the headers for the Identifier
|
inline |
Sets the DAMM ID
[in] | a | : the id to set |
|
inline |
Sets the location
[in] | a | : sets the location for the channel |
|
inline |
Sets the subtype of the channel
[in] | a | : the subtype to set |
|
inline |
Sets the type
[in] | a | : the type to set |
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.
|
private |
Damm spectrum number for plotting calibrated energies
|
private |
Specifies the real world location of the channel. For the DSSD this variable is the strip number
|
private |
Specifies the detector sub type
|
private |
A list of tags associated with the Identifier
|
private |
Specifies the detector type