ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1RpcTriggerAnalysis/interface/L1ObjColl.h
Revision: 1.5
Committed: Tue Oct 30 11:13:16 2012 UTC (12 years, 6 months ago) by konec
Content type: text/plain
Branch: MAIN
Changes since 1.4: +14 -2 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 konec 1.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 konec 1.3 typedef L1Obj::TYPE TYPE;
14 konec 1.1 void set(const std::vector<L1Obj> & obj) { theL1Obj = obj; }
15     void set(const std::vector<bool> & comp) { theL1Matching = comp; }
16 konec 1.4 void set(const std::vector<double> & dr) { theDeltaR = dr; }
17 konec 1.5
18 konec 1.1 const std::vector<L1Obj> & getL1Objs() const { return theL1Obj; }
19     const std::vector<bool> & getL1ObjsMatching() const { return theL1Matching; }
20 konec 1.5 const std::vector<double> & getL1ObjDeltaR() const { return theDeltaR; }
21    
22     /*
23     L1ObjColl selectByType( TYPE t1=L1Obj::NONE, TYPE t2=L1Obj::NONE, TYPE t3=L1Obj::NONE, TYPE t4=L1Obj::NONE);
24     L1ObjColl selectByPtMin( double ptMin = 0.);
25     L1ObjColl selectByEta( double etaMin = -2.5, double etaMax = 2.5);
26     L1ObjColl selectByBx( int bxMin = 0, int bxMax = 0);
27     L1ObjColl selectByQuality( int qMin = 0, int qMax = 7);
28     L1ObjColl operator+(const L1ObjColl& , const L1ObjColl&) const;
29     */
30    
31     void print() const;
32 konec 1.1
33 konec 1.5 //tmp
34 konec 1.1 std::vector<L1Obj> getL1ObjsMatched(double ptMin = 0) const;
35 konec 1.2 std::vector<L1Obj> getL1ObjsSelected(
36     bool requireMatched = true, bool requireNonMatched = false,
37     double ptMin = 0., double ptMax = 161.,
38     int bxMin = 0, int bxMax = 0,
39     double etaMin = -2.5, double etaMax = 2.5,
40     double phiMin = 0., double phiMax = 7.,
41     int qMin = 0, int qMax = 7) const;
42 konec 1.3 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    
44 konec 1.1
45     private:
46     std::vector<L1Obj> theL1Obj;
47     std::vector<bool> theL1Matching;
48 konec 1.4 std::vector<double> theDeltaR;
49 konec 1.1
50     public:
51     ClassDef(L1ObjColl,1)
52    
53     };
54    
55     #endif