LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_pandora::LArPandoraEvent::Labels Class Reference

Class to handle the required producer labels. More...

#include "LArPandoraEvent.h"

Public Types

enum  LabelType {
  PFParticleLabel, SpacePointLabel, ClusterLabel, VertexLabel,
  TrackLabel, ShowerLabel, T0Label, PFParticleMetadataLabel,
  PCAxisLabel, HitLabel, PFParticleToSpacePointLabel, PFParticleToClusterLabel,
  PFParticleToVertexLabel, PFParticleToTrackLabel, PFParticleToShowerLabel, PFParticleToT0Label,
  PFParticleToMetadataLabel, PFParticleToPCAxisLabel, SpacePointToHitLabel, ClusterToHitLabel,
  TrackToHitLabel, ShowerToHitLabel, ShowerToPCAxisLabel
}
 Label type enumeration. More...
 

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
 
void SetSpacePointProducerLabel (const std::string &label)
 
void SetClusterProducerLabel (const std::string &label)
 
void SetVertexProducerLabel (const std::string &label)
 
void SetTrackProducerLabel (const std::string &label)
 
void SetShowerProducerLabel (const std::string &label)
 
void SetT0ProducerLabel (const std::string &label)
 
void SetMetadataProducerLabel (const std::string &label)
 
void SetPCAxisProducerLabel (const std::string &label)
 
void SetPFParticleToSpacePointProducerLabel (const std::string &label)
 
void SetPFParticleToClusterProducerLabel (const std::string &label)
 
void SetPFParticleToVertexProducerLabel (const std::string &label)
 
void SetPFParticleToTrackProducerLabel (const std::string &label)
 
void SetPFParticleToShowerProducerLabel (const std::string &label)
 
void SetPFParticleToT0ProducerLabel (const std::string &label)
 
void SetPFParticleToMetadataProducerLabel (const std::string &label)
 
void SetPFParticleToPCAxisProducerLabel (const std::string &label)
 
void SetSpacePointToHitProducerLabel (const std::string &label)
 
void SetClusterToHitProducerLabel (const std::string &label)
 
void SetTrackToHitProducerLabel (const std::string &label)
 
void SetShowerToHitProducerLabel (const std::string &label)
 
void SetShowerToPCAxisProducerLabel (const std::string &label)
 

Private Attributes

std::map< LabelType, std::string > m_labels
 Map holding the labels. More...
 

Detailed Description

Class to handle the required producer labels.

Definition at line 54 of file LArPandoraEvent.h.

Member Enumeration Documentation

Label type enumeration.

Enumerator
PFParticleLabel 
SpacePointLabel 
ClusterLabel 
VertexLabel 
TrackLabel 
ShowerLabel 
T0Label 
PFParticleMetadataLabel 
PCAxisLabel 
HitLabel 
PFParticleToSpacePointLabel 
PFParticleToClusterLabel 
PFParticleToVertexLabel 
PFParticleToTrackLabel 
PFParticleToShowerLabel 
PFParticleToT0Label 
PFParticleToMetadataLabel 
PFParticleToPCAxisLabel 
SpacePointToHitLabel 
ClusterToHitLabel 
TrackToHitLabel 
ShowerToHitLabel 
ShowerToPCAxisLabel 

Definition at line 60 of file LArPandoraEvent.h.

61  {
66  TrackLabel,
68  T0Label,
71  HitLabel,
85  };

Constructor & Destructor Documentation

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 391 of file LArPandoraEvent.cxx.

References lar_pandora::LArPandoraEvent::m_labels.

392 {
393  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleLabel, pfParticleProducerLabel));
394  m_labels.insert(std::map< LabelType, std::string >::value_type(SpacePointLabel, pfParticleProducerLabel));
395  m_labels.insert(std::map< LabelType, std::string >::value_type(ClusterLabel, pfParticleProducerLabel));
396  m_labels.insert(std::map< LabelType, std::string >::value_type(VertexLabel, pfParticleProducerLabel));
397  m_labels.insert(std::map< LabelType, std::string >::value_type(TrackLabel, pfParticleProducerLabel));
398  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerLabel, pfParticleProducerLabel));
399  m_labels.insert(std::map< LabelType, std::string >::value_type(T0Label, pfParticleProducerLabel));
400  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleMetadataLabel, pfParticleProducerLabel));
401  m_labels.insert(std::map< LabelType, std::string >::value_type(PCAxisLabel, pfParticleProducerLabel));
402  m_labels.insert(std::map< LabelType, std::string >::value_type(HitLabel, hitProducerLabel));
403 
404  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToSpacePointLabel, pfParticleProducerLabel));
405  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToClusterLabel, pfParticleProducerLabel));
406  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToVertexLabel, pfParticleProducerLabel));
407  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToTrackLabel, pfParticleProducerLabel));
408  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToShowerLabel, pfParticleProducerLabel));
409  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToT0Label, pfParticleProducerLabel));
410  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToMetadataLabel, pfParticleProducerLabel));
411  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToPCAxisLabel, pfParticleProducerLabel));
412  m_labels.insert(std::map< LabelType, std::string >::value_type(SpacePointToHitLabel, pfParticleProducerLabel));
413  m_labels.insert(std::map< LabelType, std::string >::value_type(ClusterToHitLabel, pfParticleProducerLabel));
414  m_labels.insert(std::map< LabelType, std::string >::value_type(TrackToHitLabel, pfParticleProducerLabel));
415  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerToHitLabel, pfParticleProducerLabel));
416  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerToPCAxisLabel, pfParticleProducerLabel));
417 }
std::map< LabelType, std::string > m_labels
Map holding the 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 421 of file LArPandoraEvent.cxx.

References lar_pandora::LArPandoraEvent::m_labels.

423 {
424  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleLabel, pfParticleProducerLabel));
425  m_labels.insert(std::map< LabelType, std::string >::value_type(SpacePointLabel, pfParticleProducerLabel));
426  m_labels.insert(std::map< LabelType, std::string >::value_type(ClusterLabel, pfParticleProducerLabel));
427  m_labels.insert(std::map< LabelType, std::string >::value_type(VertexLabel, pfParticleProducerLabel));
428  m_labels.insert(std::map< LabelType, std::string >::value_type(TrackLabel, trackProducerLabel));
429  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerLabel, showerProducerLabel));
430  m_labels.insert(std::map< LabelType, std::string >::value_type(T0Label, pfParticleProducerLabel));
431  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleMetadataLabel, pfParticleProducerLabel));
432  m_labels.insert(std::map< LabelType, std::string >::value_type(PCAxisLabel, showerProducerLabel));
433  m_labels.insert(std::map< LabelType, std::string >::value_type(HitLabel, hitProducerLabel));
434 
435  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToSpacePointLabel, pfParticleProducerLabel));
436  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToClusterLabel, pfParticleProducerLabel));
437  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToVertexLabel, pfParticleProducerLabel));
438  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToTrackLabel, trackProducerLabel));
439  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToShowerLabel, showerProducerLabel));
440  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToT0Label, pfParticleProducerLabel));
441  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToMetadataLabel, pfParticleProducerLabel));
442  m_labels.insert(std::map< LabelType, std::string >::value_type(PFParticleToPCAxisLabel, showerProducerLabel));
443  m_labels.insert(std::map< LabelType, std::string >::value_type(SpacePointToHitLabel, pfParticleProducerLabel));
444  m_labels.insert(std::map< LabelType, std::string >::value_type(ClusterToHitLabel, pfParticleProducerLabel));
445  m_labels.insert(std::map< LabelType, std::string >::value_type(TrackToHitLabel, trackProducerLabel));
446  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerToHitLabel, showerProducerLabel));
447  m_labels.insert(std::map< LabelType, std::string >::value_type(ShowerToPCAxisLabel, showerProducerLabel));
448 }
std::map< LabelType, std::string > m_labels
Map holding the labels.

Member Function Documentation

const std::string & lar_pandora::LArPandoraEvent::Labels::GetLabel ( const LabelType type) const

Definition at line 452 of file LArPandoraEvent.cxx.

References lar_pandora::LArPandoraEvent::m_labels.

Referenced by lar_pandora::LArPandoraEvent::GetFilteredParticlesByCRTag().

453 {
454  return m_labels.at(type);
455 }
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetClusterProducerLabel ( const std::string &  label)

Definition at line 466 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

467 {
469 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetClusterToHitProducerLabel ( const std::string &  label)

Definition at line 571 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

572 {
574 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetMetadataProducerLabel ( const std::string &  label)

Definition at line 501 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

502 {
504 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPCAxisProducerLabel ( const std::string &  label)

Definition at line 508 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

509 {
511 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToClusterProducerLabel ( const std::string &  label)

Definition at line 522 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

523 {
525 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToMetadataProducerLabel ( const std::string &  label)
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToPCAxisProducerLabel ( const std::string &  label)

Definition at line 557 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

558 {
560 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToShowerProducerLabel ( const std::string &  label)

Definition at line 543 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

544 {
546 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToSpacePointProducerLabel ( const std::string &  label)

Definition at line 515 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

516 {
518 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToT0ProducerLabel ( const std::string &  label)

Definition at line 550 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

551 {
553 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToTrackProducerLabel ( const std::string &  label)

Definition at line 536 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

537 {
539 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetPFParticleToVertexProducerLabel ( const std::string &  label)

Definition at line 529 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

530 {
532 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetShowerProducerLabel ( const std::string &  label)

Definition at line 487 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

488 {
490 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetShowerToHitProducerLabel ( const std::string &  label)

Definition at line 585 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

586 {
588 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetShowerToPCAxisProducerLabel ( const std::string &  label)

Definition at line 592 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

593 {
595 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetSpacePointProducerLabel ( const std::string &  label)

Definition at line 459 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

460 {
462 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetSpacePointToHitProducerLabel ( const std::string &  label)

Definition at line 564 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

565 {
567 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetT0ProducerLabel ( const std::string &  label)

Definition at line 494 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

495 {
497 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetTrackProducerLabel ( const std::string &  label)

Definition at line 480 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

481 {
483 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetTrackToHitProducerLabel ( const std::string &  label)

Definition at line 578 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

579 {
581 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.
void lar_pandora::LArPandoraEvent::Labels::SetVertexProducerLabel ( const std::string &  label)

Definition at line 473 of file LArPandoraEvent.cxx.

References label, and lar_pandora::LArPandoraEvent::m_labels.

474 {
476 }
const std::string label
std::map< LabelType, std::string > m_labels
Map holding the labels.

Member Data Documentation

std::map<LabelType, std::string> lar_pandora::LArPandoraEvent::Labels::m_labels
private

Map holding the labels.

Definition at line 127 of file LArPandoraEvent.h.

Referenced by lar_pandora::LArPandoraEvent::GetAssociationMap(), and lar_pandora::LArPandoraEvent::GetCollection().


The documentation for this class was generated from the following files: