Belle II Software development
CompareMCParticlesByIndex Class Reference

Comparison of MCParticles by index. More...

Public Member Functions

bool operator() (const MCParticle *particle1, const MCParticle *particle2) const
 Compare MCParticles by index.
 

Detailed Description

Comparison of MCParticles by index.

Definition at line 31 of file KLMDigitizerModule.cc.

Member Function Documentation

◆ operator()()

bool operator() ( const MCParticle particle1,
const MCParticle particle2 
) const
inline

Compare MCParticles by index.

Parameters
[in]particle1MC particle 1.
[in]particle2MC particle 2.

Definition at line 41 of file KLMDigitizerModule.cc.

42 {
43 return particle1->getIndex() < particle2->getIndex();
44 }
int getIndex() const
Get 1-based index of the particle in the corresponding MCParticle list.
Definition: MCParticle.h:230

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