14 |
|
void set(const std::vector<L1Obj> & obj) { theL1Obj = obj; } |
15 |
|
void set(const std::vector<bool> & comp) { theL1Matching = comp; } |
16 |
|
void set(const std::vector<double> & dr) { theDeltaR = dr; } |
17 |
+ |
void push_back(const L1Obj & obj, bool match, double deltaR); |
18 |
|
|
19 |
|
const std::vector<L1Obj> & getL1Objs() const { return theL1Obj; } |
20 |
|
const std::vector<bool> & getL1ObjsMatching() const { return theL1Matching; } |
21 |
|
const std::vector<double> & getL1ObjDeltaR() const { return theDeltaR; } |
22 |
+ |
|
23 |
+ |
L1ObjColl l1RpcColl() const { |
24 |
+ |
return selectByType(L1Obj::RPCb)+selectByType(L1Obj::RPCf); |
25 |
+ |
} |
26 |
+ |
L1ObjColl l1RpcCollEmu() const { |
27 |
+ |
return selectByType(L1Obj::RPCb_emu)+selectByType(L1Obj::RPCf_emu); |
28 |
+ |
} |
29 |
+ |
L1ObjColl l1OthColl() const { |
30 |
+ |
return selectByType(L1Obj::DT)+selectByType(L1Obj::CSC); |
31 |
+ |
} |
32 |
|
|
33 |
< |
/* |
34 |
< |
L1ObjColl selectByType( TYPE t1=L1Obj::NONE, TYPE t2=L1Obj::NONE, TYPE t3=L1Obj::NONE, TYPE t4=L1Obj::NONE); |
35 |
< |
L1ObjColl selectByPtMin( double ptMin = 0.); |
36 |
< |
L1ObjColl selectByEta( double etaMin = -2.5, double etaMax = 2.5); |
37 |
< |
L1ObjColl selectByBx( int bxMin = 0, int bxMax = 0); |
38 |
< |
L1ObjColl selectByQuality( int qMin = 0, int qMax = 7); |
39 |
< |
L1ObjColl operator+(const L1ObjColl& , const L1ObjColl&) const; |
40 |
< |
*/ |
33 |
> |
L1ObjColl selectByType( TYPE t1) const; |
34 |
> |
L1ObjColl selectByPt( double ptMin = 0., double ptMax = 161.) const; |
35 |
> |
L1ObjColl selectByPtMin( double ptMin = 0.) const; |
36 |
> |
L1ObjColl selectByEta( double etaMin = -1.61, double etaMax = 1.61) const; |
37 |
> |
L1ObjColl selectByBx( int bxMin = 0, int bxMax = 0) const; |
38 |
> |
L1ObjColl selectByQuality( int qMin = 0, int qMax = 7) const; |
39 |
> |
L1ObjColl selectByMatched() const; |
40 |
> |
L1ObjColl selectByDeltaR( double deltaRMax) const; |
41 |
> |
L1ObjColl operator+(const L1ObjColl &o) const; |
42 |
|
|
43 |
< |
void print() const; |
43 |
> |
friend ostream & operator<< (ostream &out, const L1ObjColl&s); |
44 |
|
|
45 |
|
//tmp |
46 |
|
std::vector<L1Obj> getL1ObjsMatched(double ptMin = 0) const; |
52 |
|
double phiMin = 0., double phiMax = 7., |
53 |
|
int qMin = 0, int qMax = 7) const; |
54 |
|
static std::vector<L1Obj> typeSelector(const std::vector<L1Obj> & col, TYPE t1=L1Obj::NONE, TYPE t2=L1Obj::NONE, TYPE t3=L1Obj::NONE, TYPE t4=L1Obj::NONE); |
43 |
– |
|
55 |
|
|
56 |
|
private: |
57 |
|
std::vector<L1Obj> theL1Obj; |