LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Class to handle the required producer labels. More...
#include "LArPandoraEvent.h"
Public Member Functions | |
Labels (const std::string &pfParticleProducerLabel, const std::string &hitProducerLabel) | |
Minimal parametrised constructor. Sets all collection labels to be the same as the PFParticle producer label. More... | |
Labels (const std::string &pfParticleProducerLabel, const std::string &trackProducerLabel, const std::string &showerProducerLabel, const std::string &hitProducerLabel) | |
Track / Shower parametrised constructor. Sets all collection labels to be the same as the PFParticle producer label, except those relating to track and shower production, which are supplied. More... | |
const std::string & | GetLabel (const LabelType type) const |
Get the label of a given type. More... | |
void | SetLabel (const LabelType type, const std::string &label) |
Set the label of a given type. More... | |
Private Attributes | |
std::map< LabelType, std::string > | m_labels |
Map holding the labels. More... | |
Class to handle the required producer labels.
Definition at line 97 of file LArPandoraEvent.h.
Label type enumeration.
Definition at line 102 of file LArPandoraEvent.h.
lar_pandora::LArPandoraEvent::Labels::Labels | ( | const std::string & | pfParticleProducerLabel, |
const std::string & | hitProducerLabel | ||
) |
Minimal parametrised constructor. Sets all collection labels to be the same as the PFParticle producer label.
Definition at line 158 of file LArPandoraEvent.cxx.
References lar_pandora::LArPandoraEvent::m_labels.
lar_pandora::LArPandoraEvent::Labels::Labels | ( | const std::string & | pfParticleProducerLabel, |
const std::string & | trackProducerLabel, | ||
const std::string & | showerProducerLabel, | ||
const std::string & | hitProducerLabel | ||
) |
Track / Shower parametrised constructor. Sets all collection labels to be the same as the PFParticle producer label, except those relating to track and shower production, which are supplied.
Definition at line 192 of file LArPandoraEvent.cxx.
References lar_pandora::LArPandoraEvent::m_labels.
const std::string & lar_pandora::LArPandoraEvent::Labels::GetLabel | ( | const LabelType | type | ) | const |
Get the label of a given type.
type | the label type to retrieve |
Definition at line 228 of file LArPandoraEvent.cxx.
References lar_pandora::LArPandoraEvent::m_labels.
void lar_pandora::LArPandoraEvent::Labels::SetLabel | ( | const LabelType | type, |
const std::string & | label | ||
) |
Set the label of a given type.
type | the label type to set |
label | the label to set |
Definition at line 240 of file LArPandoraEvent.cxx.
References lar_pandora::LArPandoraEvent::m_labels.
|
private |
Map holding the labels.
Definition at line 165 of file LArPandoraEvent.h.