|
BmnRoot
|
Data class for SSD clusters. More...
#include <BmnSsdCluster.h>
Public Member Functions | |
| BmnSsdCluster () | |
| Default constructor. | |
| virtual | ~BmnSsdCluster () |
| Destructor. | |
| Double_t | GetCharge () const |
| Get cluster charge @value Total cluster charge [e]. | |
| Int_t | GetIndex () const |
| Get cluster index. | |
| Double_t | GetPosition () const |
| Cluster position @value Cluster position in channel number units. | |
| Double_t | GetPositionError () const |
| Cluster position error @value Error (r.m.s.) of cluster position in channel number units. | |
| Int_t | GetSize () const |
| Set size of the cluster (number of channels) @value size Number of channels from first to last. | |
| Double_t | GetTime () const |
| Get cluster time. | |
| Double_t | GetTimeError () const |
| Get error of cluster time. | |
| void | SetIndex (Int_t index) |
| Set cluster index To keep track of the input during hit finding. | |
| void | SetPositionError (Double_t error) |
| Set the position error. | |
| void | SetProperties (Double_t charge, Double_t position, Double_t positionError, Double_t time=0., Double_t timeError=0.) |
| void | SetSize (Int_t size) |
| Set size of the cluster (number of channels) | |
| virtual std::string | ToString () const |
Public Member Functions inherited from BmnCluster | |
| BmnCluster () | |
| Constructor. | |
| BmnCluster (const std::vector< Int_t > &indices, Int_t address) | |
| virtual | ~BmnCluster () |
| Destructor. | |
| void | AddDigi (Int_t index) |
| Add digi to cluster. | |
| void | AddDigis (const std::vector< Int_t > &indices) |
| Add array of digi to cluster. | |
| void | SetDigis (const std::vector< Int_t > &indices) |
| Set array of digi to cluster. Overwrites existing array. | |
| Int_t | GetNofDigis () const |
| Number of digis in cluster. | |
| Int_t | GetDigi (Int_t index) const |
| Get digi at position index. | |
| const std::vector< Int_t > & | GetDigis () const |
| Get array of digi indices. | |
| void | ClearDigis () |
| Remove all digis. | |
| Int_t | GetAddress () const |
| BmnMatch * | GetMatch () const |
| void | SetAddress (Int_t address) |
| void | SetMatch (BmnMatch *match) |
Data class for SSD clusters.
The BmnSsdCluster is a collection of BmnSsdDigis in neighbouring module channels. Apart from the indices of the contributing digis, it provides address, time, total charge, mean position in channel units and the error of the latter.
Definition at line 23 of file BmnSsdCluster.h.
| BmnSsdCluster::BmnSsdCluster | ( | ) |
Default constructor.
Definition at line 17 of file BmnSsdCluster.cxx.
|
virtual |
Destructor.
Definition at line 31 of file BmnSsdCluster.cxx.
|
inline |
Get cluster charge @value Total cluster charge [e].
This is the sum of the charges of the contributing digis.
Definition at line 45 of file BmnSsdCluster.h.
|
inline |
Get cluster index.
Definition at line 51 of file BmnSsdCluster.h.
Referenced by BmnSsdSensor::CreateHit().
|
inline |
Cluster position @value Cluster position in channel number units.
Definition at line 57 of file BmnSsdCluster.h.
Referenced by BmnSsdSensorDssd::FindHits(), BmnSsdSensorDssdStereo::IntersectClusters(), and ToString().
|
inline |
Cluster position error @value Error (r.m.s.) of cluster position in channel number units.
Definition at line 63 of file BmnSsdCluster.h.
Referenced by BmnSsdSensorDssdStereo::IntersectClusters(), and ToString().
|
inline |
Set size of the cluster (number of channels) @value size Number of channels from first to last.
Note that this can be different from the number of digis in the cluster in case there are gaps e.g. due to dead channels.
Definition at line 72 of file BmnSsdCluster.h.
|
inline |
Get cluster time.
This is the average time of the contributing digis.
Definition at line 80 of file BmnSsdCluster.h.
Referenced by BmnSsdSensor::CreateHit(), and BmnSsdSensorDssd::FindHits().
|
inline |
Get error of cluster time.
Definition at line 86 of file BmnSsdCluster.h.
Referenced by BmnSsdSensor::CreateHit(), and BmnSsdSensorDssd::FindHits().
|
inline |
Set cluster index To keep track of the input during hit finding.
| index | Index of cluster in cluster array |
Definition at line 93 of file BmnSsdCluster.h.
|
inline |
Set the position error.
| error | Position error (r.m.s.) in channel units |
Definition at line 99 of file BmnSsdCluster.h.
|
inline |
Set cluster properties (time, charge, mean)
| charge | Total charge in cluster |
| position | Cluster centre in channel units |
| positionError | Error of cluster centre in channel units |
| time | Cluster time [ns] |
| timeError | Error of cluster time [ns] |
Definition at line 109 of file BmnSsdCluster.h.
|
inline |
Set size of the cluster (number of channels)
| size | Number of channels from first to last |
Note that this can be different from the number of digis in the cluster in case there are gaps e.g. due to dead channels.
Definition at line 126 of file BmnSsdCluster.h.
|
virtual |
String output
Reimplemented from BmnCluster.
Definition at line 37 of file BmnSsdCluster.cxx.
References BmnCluster::GetAddress(), BmnCluster::GetNofDigis(), GetPosition(), and GetPositionError().