LArSoft  v07_13_02
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 lar_pandora::LArPandoraEvent::m_labels.

467 {
468  m_labels[ClusterLabel] = label;
469 }
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 lar_pandora::LArPandoraEvent::m_labels.

572 {
573  m_labels[ClusterToHitLabel] = label;
574 }
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 lar_pandora::LArPandoraEvent::m_labels.

502 {
504 }
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 lar_pandora::LArPandoraEvent::m_labels.

509 {
510  m_labels[PCAxisLabel] = label;
511 }
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 lar_pandora::LArPandoraEvent::m_labels.

523 {
525 }
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 lar_pandora::LArPandoraEvent::m_labels.

558 {
560 }
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 lar_pandora::LArPandoraEvent::m_labels.

544 {
546 }
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 lar_pandora::LArPandoraEvent::m_labels.

516 {
518 }
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 lar_pandora::LArPandoraEvent::m_labels.

551 {
552  m_labels[PFParticleToT0Label] = label;
553 }
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 lar_pandora::LArPandoraEvent::m_labels.

537 {
539 }
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 lar_pandora::LArPandoraEvent::m_labels.

530 {
532 }
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 lar_pandora::LArPandoraEvent::m_labels.

488 {
489  m_labels[ShowerLabel] = label;
490 }
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 lar_pandora::LArPandoraEvent::m_labels.

586 {
587  m_labels[ShowerToHitLabel] = label;
588 }
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 lar_pandora::LArPandoraEvent::m_labels.

593 {
594  m_labels[ShowerToPCAxisLabel] = label;
595 }
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 lar_pandora::LArPandoraEvent::m_labels.

460 {
461  m_labels[SpacePointLabel] = label;
462 }
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 lar_pandora::LArPandoraEvent::m_labels.

565 {
567 }
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 lar_pandora::LArPandoraEvent::m_labels.

495 {
496  m_labels[T0Label] = label;
497 }
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 lar_pandora::LArPandoraEvent::m_labels.

481 {
482  m_labels[TrackLabel] = label;
483 }
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 lar_pandora::LArPandoraEvent::m_labels.

579 {
580  m_labels[TrackToHitLabel] = label;
581 }
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 lar_pandora::LArPandoraEvent::m_labels.

474 {
475  m_labels[VertexLabel] = label;
476 }
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: