Jpp test-rotations-old-57-g407471f53
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 353 of file JSupernova.hh.

Member Function Documentation

◆ getPeak()

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

Finds coincidence with maximum multiplicity.

Definition at line 360 of file JSupernova.hh.

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

◆ getModules()

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

Definition at line 378 of file JSupernova.hh.

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

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