All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Static Public Attributes | Private Attributes
nemo3::cluster Class Reference

Clusters of scintillators. More...

#include <cluster.h>

Inheritance diagram for nemo3::cluster:
nemo3::ana_event::i_measurement

List of all members.

Public Member Functions

virtual void do_measurement (ana_event &)
 The "analyser" method.
virtual void init_from (const datatools::utils::properties &)
 Be able to init from config file.
void init ()
 Unused.
int get_cluster (const scin_hit &)
 If scin_hit is in a cluster, return its number.
int clusters (ana_event &)
 return the number of clusters in the event.
int get_hits_number (ana_event &, int)
 Get the number of hits.
bool is_associated (ana_event &, int)
 Check if the cluster is associated.
double get_energy (ana_event &event_, int cluster_)
 Sum the energy of the cluster 'cluster_' from the ana_event 'event_'.
void dump (ana_event &, std::ostream &)
 Dump infos on clusters.
 cluster (bool debug_=false)
 Default constructor.
virtual ~cluster ()
 Default destructor.

Static Public Attributes

static const string NUMBER_OF_CLUSTERS_PROPERTY_NAME
 Properties cluster name for the number of clusters.
static const string IN_CLUSTER_PROPERTY_NAME
 Properties cluster name for "in cluster" scintillator.

Private Attributes

bool __debug
string __tracking_name
 the name of the tracking 'default' by default

Detailed Description

Clusters of scintillators.

Author(s): Arnaud Chapon chapo.nosp@m.n@lp.nosp@m.ccaen.nosp@m..in2.nosp@m.p3.fr Creation date: 2010-03-04 Last modified: 2010-03-05

License:

Description: NEMO3 ANA event cluster model

History:


Member Function Documentation

bool nemo3::cluster::is_associated ( ana_event ,
int   
)

Check if the cluster is associated.

Check all of the scins implied in the clusters, and if one of them is associated with a track

Returns:
-1 if not associated
scin_number of the associated scin

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