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 98 of file LArPandoraEvent.h.
Label type enumeration.
Definition at line 104 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 144 of file LArPandoraEvent.cxx.
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 177 of file LArPandoraEvent.cxx.
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 211 of file LArPandoraEvent.cxx.
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 221 of file LArPandoraEvent.cxx.
|
private |
Map holding the labels.
Definition at line 166 of file LArPandoraEvent.h.