BmnRoot
Loading...
Searching...
No Matches
CbmStsCluster.h
Go to the documentation of this file.
1//* $Id: */
2
3// -------------------------------------------------------------------------
4// ----- CbmStsCluster header file -----
5// ----- Created 25/06/2008 by R. Karabowicz -----
6// -------------------------------------------------------------------------
7
8
27#ifndef CBMSTSCLUSTER_H
28#define CBMSTSCLUSTER_H 1
29
30#include "FairMultiLinkedData.h"
31
32class CbmStsCluster : public FairMultiLinkedData
33{
34 public:
35
38
39
47 CbmStsCluster(Double_t digiSig, Int_t iStation, Int_t iSector, Int_t iSide);
48
50 virtual ~CbmStsCluster();
51
52 void AddDigi(Int_t idigi) { fDigis[fNofDigis++] = idigi; }
53// void AddIndex(int index, double digiSig){
54// AddLink(FairLink(kStsDigi, index));
55// }
56 void SetMean (Double_t chan) { fChannel = chan; }
57 void SetMeanError(Double_t err) { fError = err; }
58
60 Int_t GetDetectorId() const { return fDetectorId; }
61
62 Int_t GetStationNr() const {
63 return ( fDetectorId & (255<<16) ) >> 16; }
64 Int_t GetSectorNr() const { // sector number within station
65 return ( fDetectorId & (4095<<4) ) >> 4; }
66 Int_t GetSide() const {
67 return ( fDetectorId & (1<<0) ) >> 0; } // 0=front, 1=back
68
69 Int_t GetNDigis() const { return fNofDigis; }
70 Int_t GetDigi(Int_t inum ) { return fDigis[inum]; }
71 Double_t GetMean() const { return fChannel; }
72 Double_t GetMeanError() const { return fError; }
73 Double_t GetQtot() const { return fQtot; } //AZ
74 Int_t GetLeft() const { return fLeftEdge; } //AZ
75 void SetQtot(Double_t qtot) { fQtot = qtot; } //AZ
76 void SetLeft(Int_t left) { fLeftEdge = left; } //AZ: < 0 if no left neighbour
77
78 private:
79
80 Int_t fDetectorId;
81 // Int_t* fDigis;//[100];
82 Int_t fDigis[100];
83 Int_t fNofDigis;
84 Double_t fChannel;
85 Double_t fError;
86 Double32_t fQtot; //AZ
87 Int_t fLeftEdge; //AZ
88
89 ClassDef(CbmStsCluster,1);
90
91};
92
93#endif
void SetMeanError(Double_t err)
Int_t GetLeft() const
void SetMean(Double_t chan)
Int_t GetStationNr() const
Int_t GetSectorNr() const
virtual ~CbmStsCluster()
Double_t GetMean() const
void SetQtot(Double_t qtot)
CbmStsCluster(Double_t digiSig, Int_t iStation, Int_t iSector, Int_t iSide)
Int_t GetNDigis() const
Int_t GetDetectorId() const
Double_t GetMeanError() const
Double_t GetQtot() const
Int_t GetDigi(Int_t inum)
void SetLeft(Int_t left)
Int_t GetSide() const
void AddDigi(Int_t idigi)