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