Go to the documentation of this file.
6 #ifndef CBMSTSALGOFINDCLUSTERS_H
7 #define CBMSTSALGOFINDCLUSTERS_H 1
58 typedef std::pair<const CbmStsDigi*, Long64_t>
InputData;
85 Long64_t
Exec(
const std::vector<InputData>& input,
86 std::vector<CbmStsCluster>& output,
89 UShort_t channelOffset,
90 Double_t timeCutSigma,
152 if (channel < 0 || channel >=
fNofChannels)
return kFALSE;
153 return fStatus[channel].first > -1;
166 Bool_t
ProcessDigi(UShort_t channel, Double_t time, Int_t index);
175 std::vector<std::pair<Long64_t, Double_t>>
fStatus {1024, {-1, 0.}};
178 std::vector<CbmStsCluster>*
fOutput =
nullptr;
Data class for STS clusters.
const CbmStsParModule * fModPar
void CreateCluster(UShort_t channel)
Create a cluster from an active channel.
std::vector< CbmStsCluster > * fOutput
Pointer to output vector.
Long64_t Exec(const std::vector< InputData > &input, std::vector< CbmStsCluster > &output, UInt_t address, UShort_t nChannels, UShort_t channelOffset, Double_t timeCutSigma, Double_t timeCutAbs, Bool_t connectEdge, const CbmStsParModule *modPar)
Algorithm execution.
Double_t fTimeCutSig
Time cut in multiples of error.
Bool_t IsActive(Short_t channel)
Check for a channel being active.
std::pair< const CbmStsDigi *, Long64_t > InputData
Typedef for input data.
Parameters for one STS module.
Short_t ChanRight(UShort_t channel)
Number of right neighbour channel.
Data class for a single-channel message in the STS.
UInt_t fAddress
Unique module address for clusters.
Short_t ChanLeft(UShort_t channel)
Number of left neighbour channel.
CbmStsAlgoFindClusters()
Default constructor.
UShort_t fNofChannels
Number of channels.
Double_t fTimeCutAbs
Absolute time cut [ns].
std::vector< std::pair< Long64_t, Double_t > > fStatus
Status buffer.
Algorithm for cluster finding in a linear array of channels.
Bool_t CheckChannel(Short_t channel, Double_t time)
Check for a matching digi in a given channel.
UShort_t fChannelOffset
Number of first channel.
Bool_t fConnectEdge
Connect last and first channel.
Bool_t ProcessDigi(UShort_t channel, Double_t time, Int_t index)
Process one input digi.
virtual ~CbmStsAlgoFindClusters()
Destructor.