Jpp
Public Member Functions | List of all members
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

JModuleSet getModules () const
 
JModuleSet getModules (int multiplicityThreshold) const
 

Detailed Description

Auxiliary class to manage a cluster of coincidences.

Definition at line 255 of file JSupernova.hh.

Member Function Documentation

◆ getModules() [1/2]

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

Definition at line 261 of file JSupernova.hh.

261  {
262 
263  JModuleSet out;
264 
265  for (JClusterSN::const_iterator p = this->begin(); p != this->end(); p++) {
266  out.insert(p->getModule());
267  }
268 
269  return out;
270  }

◆ getModules() [2/2]

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

Definition at line 278 of file JSupernova.hh.

278  {
279 
280  JModuleSet out;
281 
282  for (JClusterSN::const_iterator p = this->begin(); p != this->end(); p++) {
283  if (p->getMultiplicity() >= multiplicityThreshold) {
284  out.insert(p->getModule());
285  }
286  }
287 
288  return out;
289  }

The documentation for this class was generated from the following file:
JSUPERNOVA::JModuleSet
set< int > JModuleSet
Definition: JSupernova.hh:30