ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/L1ObjColl.h
Revision: 1.3
Committed: Mon Oct 29 12:41:09 2012 UTC (12 years, 6 months ago) by konec
Content type: text/plain
Branch: MAIN
Changes since 1.2: +4 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef L1ObjColl_H
2 #define L1ObjColl_H
3
4 #include "UserCode/L1RpcTriggerAnalysis/interface/L1Obj.h"
5 #include <vector>
6
7 class L1ObjColl : public TObject {
8
9 public:
10 L1ObjColl() {}
11 virtual ~L1ObjColl(){}
12
13 typedef L1Obj::TYPE TYPE;
14 void set(const std::vector<L1Obj> & obj) { theL1Obj = obj; }
15 void set(const std::vector<bool> & comp) { theL1Matching = comp; }
16 const std::vector<L1Obj> & getL1Objs() const { return theL1Obj; }
17 const std::vector<bool> & getL1ObjsMatching() const { return theL1Matching; }
18
19 std::vector<L1Obj> getL1ObjsMatched(double ptMin = 0) const;
20 std::vector<L1Obj> getL1ObjsSelected(
21 bool requireMatched = true, bool requireNonMatched = false,
22 double ptMin = 0., double ptMax = 161.,
23 int bxMin = 0, int bxMax = 0,
24 double etaMin = -2.5, double etaMax = 2.5,
25 double phiMin = 0., double phiMax = 7.,
26 int qMin = 0, int qMax = 7) const;
27 void print() const;
28
29 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);
30
31
32 private:
33 std::vector<L1Obj> theL1Obj;
34 std::vector<bool> theL1Matching;
35
36 public:
37 ClassDef(L1ObjColl,1)
38
39 };
40
41 #endif