BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
L1HitsSortHelper.h
Go to the documentation of this file.
1#ifndef _L1HitsL1HitsSortHelper_h_
2#define _L1HitsL1HitsSortHelper_h_
3
4#include "L1Grid.h"
5#include "L1HitPoint.h"
6#include "L1StsHit.h"
7
8#include <algorithm>
9#include <vector>
10
11using std::vector;
12
14{
17 unsigned int bin;
19
20 static bool compare(const L1HitsSortHelperData& a, const L1HitsSortHelperData& b)
21 {
22 return a.bin < b.bin || (a.bin == b.bin && a.p->Ys() < b.p->Ys());
23 }
24};
25
27{
28 public:
29 L1HitsSortHelper(vector<L1StsHit>& hits,
30 vector<L1HitPoint>& points,
31 vector<THitI>& indices,
32 const L1Grid* grid,
33 THitI* iStart,
34 THitI* iStop,
35 int nStations);
36
37 void Sort();
38
39 private:
40 vector<L1HitsSortHelperData> fD;
41 vector<L1StsHit>& fHits;
42 vector<L1HitPoint>& fPoints;
43 vector<THitI>& fIndices;
44 const L1Grid* fGrid;
47
50};
51
52#endif
unsigned int THitI
Definition L1StsHit.h:6
2-dimensional grid of pointers.
Definition L1Grid.h:49
vector< L1HitPoint > & fPoints
vector< L1HitsSortHelperData > fD
THitI * fStsHitsUnusedStartIndex
const L1Grid * fGrid
THitI * fStsHitsUnusedStopIndex
L1HitsSortHelper & operator=(const L1HitsSortHelper &)
L1HitsSortHelper(vector< L1StsHit > &hits, vector< L1HitPoint > &points, vector< THitI > &indices, const L1Grid *grid, THitI *iStart, THitI *iStop, int nStations)
vector< THitI > & fIndices
vector< L1StsHit > & fHits
L1HitsSortHelper(const L1HitsSortHelper &)
contain strips positions and coordinates of hit
Definition L1HitPoint.h:9
static bool compare(const L1HitsSortHelperData &a, const L1HitsSortHelperData &b)