![]() |
ATLAS Offline Software
|
#include <EMDatabaseID.h>
Public Member Functions | |
EMDatabaseID () | |
Default constructor. More... | |
EMDatabaseID (const EMDatabaseID &ob) | |
Copy constructor. More... | |
EMDatabaseID (const std::string &id) | |
Constructor via unique id-string. More... | |
EMDatabaseID (EMDatabaseIDDescriptor &id) | |
Constructor via unique id-string. More... | |
EMDatabaseID (const std::string &Object, const std::string &Container, const std::string &Type, const std::string &Channel, const std::string &Author, const std::string &RecoSWV, const std::string &Tag, long start, long end) | |
Constructor via 8 Identifiers for performance parameters which have been determined in a specific run. More... | |
EMDatabaseID (const std::string &Object, const std::string &Container, const std::string &Type, const std::string &Channel, const std::string &Author, const std::string &RecoSWV, const std::string &Tag, const std::string &SimSWV) | |
Constructor via 7 Identifiers for performance parameters which have been determined in Monte Carlo Simulation. More... | |
EMDatabaseID (const std::string &Object, const std::string &Type, const std::string &Tag) | |
~EMDatabaseID () | |
Destructor. More... | |
EMDatabaseID & | operator= (const EMDatabaseID &ob) |
= operator More... | |
bool | operator== (const EMDatabaseID &ob) const |
== operator: returns true if all Identifiers of the two objects coincide. More... | |
bool | isInSubgroup (const EMDatabaseID &ob) const |
Returns true if the given Identifiers in the parameter ob agree with the given object. More... | |
void | set (const EMDatabaseID &ob) |
Set given ID to this object. More... | |
void | set (const std::string &Object, const std::string &Container, const std::string &Type, const std::string &Channel, const std::string &Author, const std::string &RecoSWV, const std::string &Tag, long start, long end) |
Set ID of this object via 8 Identifiers which describe a specific data-run. More... | |
void | set (const std::string &Object, const std::string &Container, const std::string &Type, const std::string &Channel, const std::string &Author, const std::string &RecoSWV, const std::string &Tag, const std::string &SimSWV) |
Set ID of this object via 7 Identifiers which describe a Monte Carlo sample. More... | |
void | set (const std::string &Object, const std::string &Type, const std::string &Tag) |
void | clear () |
Clear all ID-informations. More... | |
void | object (std::string s) |
Access to single identifier. More... | |
void | container (std::string s) |
Access to single identifier. More... | |
void | type (std::string s) |
Access to single identifier. More... | |
void | channel (std::string s) |
Access to single identifier. More... | |
void | author (std::string s) |
Access to single identifier. More... | |
void | recoSWV (std::string s) |
Access to single identifier. More... | |
void | tag (std::string s) |
Access to single identifier. More... | |
void | run (long start, long end) |
Access to single identifier. More... | |
void | simSWV (std::string s) |
Access to single identifier. More... | |
int | setRunOrMCSWV (std::string s) |
converts the given string to runNumbers or Softwareversion. More... | |
std::string | object () const |
Access to single identifier. More... | |
std::string | container () const |
Access to single identifier. More... | |
std::string | type () const |
Access to single identifier. More... | |
std::string | channel () const |
Access to single identifier. More... | |
std::string | author () const |
Access to single identifier. More... | |
std::string | recoSWV () const |
Access to single identifier. More... | |
std::string | tag () const |
Access to single identifier. More... | |
long | runStart () const |
Access to single identifier. More... | |
long | runEnd () const |
Access to single identifier. More... | |
std::string | simSWV () |
Access to single identifier. More... | |
bool | isMCData () const |
Returns true, if this is an identifier for a MC-determined Performance Quantaty. More... | |
bool | isComplete () const |
Return true, if all 7/8 Identifiers have been initialized. More... | |
std::string | getUniqueID () const |
Returns the unique ID-String of this Object. More... | |
bool | setUniqueID (const std::string &s) |
Set the unique ID-String and initialize the object. More... | |
std::string | getRootDirectory () const |
std::string | getCoolChannel () const |
std::string | getTreeName () const |
std::string | getBranchName () const |
EMDatabaseIDDescriptor | getIDDescriptor () const |
Static Private Member Functions | |
static std::string | beautify (const std::string &s) |
deletes characters '_',' ','/' and '\' out of the string More... | |
static std::string | intToString (long l) |
converts int to string More... | |
Private Attributes | |
EMDatabaseIDDescriptor | m_idDes |
This class represents an unique ID which is used to identify Performance Parameters in a database. Seven Identifier Tags are used to create the ID. The ID itself is represented as String. See ATLAS-Note "" for detailed information
Definition at line 38 of file EMDatabaseID.h.
EMDatabaseID::EMDatabaseID | ( | ) |
EMDatabaseID::EMDatabaseID | ( | const EMDatabaseID & | ob | ) |
Copy constructor.
Definition at line 17 of file EMDatabaseID.cxx.
EMDatabaseID::EMDatabaseID | ( | const std::string & | id | ) |
Constructor via unique id-string.
Definition at line 23 of file EMDatabaseID.cxx.
EMDatabaseID::EMDatabaseID | ( | EMDatabaseIDDescriptor & | id | ) |
Constructor via unique id-string.
Definition at line 30 of file EMDatabaseID.cxx.
EMDatabaseID::EMDatabaseID | ( | const std::string & | Object, |
const std::string & | Container, | ||
const std::string & | Type, | ||
const std::string & | Channel, | ||
const std::string & | Author, | ||
const std::string & | RecoSWV, | ||
const std::string & | Tag, | ||
const std::string & | SimSWV | ||
) |
Constructor via 7 Identifiers for performance parameters which have been determined in Monte Carlo Simulation.
Definition at line 42 of file EMDatabaseID.cxx.
EMDatabaseID::EMDatabaseID | ( | const std::string & | Object, |
const std::string & | Type, | ||
const std::string & | Tag | ||
) |
Definition at line 48 of file EMDatabaseID.cxx.
EMDatabaseID::~EMDatabaseID | ( | ) |
|
inline |
Access to single identifier.
Definition at line 113 of file EMDatabaseID.h.
|
inline |
|
staticprivate |
|
inline |
Access to single identifier.
Definition at line 111 of file EMDatabaseID.h.
|
inline |
void EMDatabaseID::clear | ( | ) |
Clear all ID-informations.
Definition at line 131 of file EMDatabaseID.cxx.
|
inline |
Access to single identifier.
Definition at line 107 of file EMDatabaseID.h.
|
inline |
|
inline |
Definition at line 142 of file EMDatabaseID.h.
std::string EMDatabaseID::getCoolChannel | ( | ) | const |
Definition at line 252 of file EMDatabaseID.cxx.
|
inline |
Definition at line 144 of file EMDatabaseID.h.
|
inline |
Definition at line 139 of file EMDatabaseID.h.
|
inline |
Definition at line 141 of file EMDatabaseID.h.
std::string EMDatabaseID::getUniqueID | ( | ) | const |
|
staticprivate |
bool EMDatabaseID::isComplete | ( | ) | const |
Return true, if all 7/8 Identifiers have been initialized.
Definition at line 150 of file EMDatabaseID.cxx.
bool EMDatabaseID::isInSubgroup | ( | const EMDatabaseID & | ob | ) | const |
Returns true if the given Identifiers in the parameter ob agree with the given object.
Identifiers of "ob" which have been initialized empty, i.e. "" are not considered.
Definition at line 80 of file EMDatabaseID.cxx.
bool EMDatabaseID::isMCData | ( | ) | const |
Returns true, if this is an identifier for a MC-determined Performance Quantaty.
Otherwise false
Definition at line 145 of file EMDatabaseID.cxx.
|
inline |
Access to single identifier.
Definition at line 105 of file EMDatabaseID.h.
|
inline |
EMDatabaseID & EMDatabaseID::operator= | ( | const EMDatabaseID & | ob | ) |
bool EMDatabaseID::operator== | ( | const EMDatabaseID & | ob | ) | const |
== operator: returns true if all Identifiers of the two objects coincide.
Definition at line 65 of file EMDatabaseID.cxx.
|
inline |
Access to single identifier.
Definition at line 115 of file EMDatabaseID.h.
|
inline |
|
inline |
|
inline |
Access to single identifier.
Definition at line 121 of file EMDatabaseID.h.
|
inline |
Access to single identifier.
Definition at line 119 of file EMDatabaseID.h.
void EMDatabaseID::set | ( | const EMDatabaseID & | ob | ) |
Set given ID to this object.
Definition at line 92 of file EMDatabaseID.cxx.
void EMDatabaseID::set | ( | const std::string & | Object, |
const std::string & | Container, | ||
const std::string & | Type, | ||
const std::string & | Channel, | ||
const std::string & | Author, | ||
const std::string & | RecoSWV, | ||
const std::string & | Tag, | ||
const std::string & | SimSWV | ||
) |
Set ID of this object via 7 Identifiers which describe a Monte Carlo sample.
Definition at line 111 of file EMDatabaseID.cxx.
void EMDatabaseID::set | ( | const std::string & | Object, |
const std::string & | Container, | ||
const std::string & | Type, | ||
const std::string & | Channel, | ||
const std::string & | Author, | ||
const std::string & | RecoSWV, | ||
const std::string & | Tag, | ||
long | start, | ||
long | end | ||
) |
Set ID of this object via 8 Identifiers which describe a specific data-run.
Definition at line 97 of file EMDatabaseID.cxx.
void EMDatabaseID::set | ( | const std::string & | Object, |
const std::string & | Type, | ||
const std::string & | Tag | ||
) |
Definition at line 126 of file EMDatabaseID.cxx.
int EMDatabaseID::setRunOrMCSWV | ( | std::string | s | ) |
converts the given string to runNumbers or Softwareversion.
return 0 in case of failure. returns 1 in case of run and 2 inclase of MCDataset
Definition at line 209 of file EMDatabaseID.cxx.
bool EMDatabaseID::setUniqueID | ( | const std::string & | s | ) |
Set the unique ID-String and initialize the object.
Returns true if everything went fine, i.e. all parameters/formatation was ok
Definition at line 177 of file EMDatabaseID.cxx.
|
inline |
Access to single identifier.
Definition at line 123 of file EMDatabaseID.h.
|
inline |
Access to single identifier.
Note, that characters '_',' ','/' and '\' are deleted internally. If you choose the Software-Version which is used for simulation you also choose that you want to store MC-related data
Definition at line 99 of file EMDatabaseID.h.
|
inline |
Access to single identifier.
Definition at line 117 of file EMDatabaseID.h.
|
inline |
|
inline |
Access to single identifier.
Definition at line 109 of file EMDatabaseID.h.
|
inline |
|
private |
Definition at line 152 of file EMDatabaseID.h.