Jpp in_tag_pdf_generation
the software that should make you happy
Loading...
Searching...
No Matches
JSUPERNOVA::JClusterSN Class Reference

Auxiliary class to manage a cluster of coincidences. More...

#include <JSupernova.hh>

Inheritance diagram for JSUPERNOVA::JClusterSN:
std::vector< JCoincidenceSN >

Public Member Functions

JCoincidenceSN getPeak () const
 Finds coincidence with maximum multiplicity.
 
JModuleSet getModules () const
 

Detailed Description

Auxiliary class to manage a cluster of coincidences.

Definition at line 354 of file JSupernova.hh.

Member Function Documentation

◆ getPeak()

JCoincidenceSN JSUPERNOVA::JClusterSN::getPeak ( ) const
inline

Finds coincidence with maximum multiplicity.

Definition at line 361 of file JSupernova.hh.

361 {
362
363 JClusterSN::const_iterator p = this->begin();
364
365 for (JClusterSN::const_iterator q = p + 1; q != this->end(); q++) {
366 if (q->getMultiplicity() > p->getMultiplicity()) {
367 p = q;
368 }
369 }
370
371 return (*p);
372
373 }

◆ getModules()

JModuleSet JSUPERNOVA::JClusterSN::getModules ( ) const
inline

Definition at line 379 of file JSupernova.hh.

379 {
380
381 JModuleSet out;
382
383 for (JClusterSN::const_iterator p = this->begin(); p != this->end(); p++) {
384 out.insert(p->getModule());
385 }
386
387 return out;
388 }
set< int > JModuleSet
Definition JSupernova.hh:45

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