Jpp 19.3.0-rc.2
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 351 of file JSupernova.hh.

Member Function Documentation

◆ getPeak()

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

Finds coincidence with maximum multiplicity.

Definition at line 358 of file JSupernova.hh.

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

◆ getModules()

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

Definition at line 376 of file JSupernova.hh.

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

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