ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/L1Object.hh.broken
Revision: 1.1
Committed: Tue Oct 25 13:26:50 2011 UTC (13 years, 6 months ago) by agilbert
Branch: MAIN
CVS Tags: v01-00-00, HEAD
Log Message:
Significant code re-write.  Compiles under 4_2_4 but may not work as expected.  Files marked as broken may need to be fixed in the future.

File Contents

# User Rev Content
1 agilbert 1.1 #ifndef HbbAnalysis_L1Object_hh
2     #define HbbAnalysis_L1Object_hh
3    
4     #include <vector>
5     #include <string>
6     #include <iostream>
7    
8     #include "UserCode/HbbAnalysis/interface/Objects.hh"
9    
10     namespace HbbAnalysis {
11    
12     class L1Object {
13    
14     public:
15    
16    
17     /** Constructors */
18    
19     L1Object(){
20     Clear();
21     };
22    
23     ~L1Object(){};
24    
25     L1Object(const HbbAnalysis::L1Vars & aPart){
26     Clear();
27     l1Vars(aPart);
28     };
29    
30     inline const HbbAnalysis::L1Vars & l1Vars() const {
31     return part_;
32     };
33    
34     inline void l1Vars(const HbbAnalysis::L1Vars & aPart) {
35     part_ = aPart;
36     };
37    
38     inline void Clear(){
39     part_.pT = 0;
40     part_.ET = 0;
41     part_.eta = 0;
42     part_.phi = 0;
43     part_.bx = 0;
44     part_.type = 0;
45     };
46    
47     inline void print() const{
48    
49     std::cout << "=======================================================" << std::endl
50     << "================== Print L1Object ==================" << std::endl
51     << "=======================================================" << std::endl
52     << " ---- type : " << part_.type << std::endl
53     << " ---- pt,eta,phi: " << part_.pT << " " << part_.eta << " " << part_.phi << std::endl
54     << "=======================================================" << std::endl;
55    
56     };
57    
58     private:
59    
60     HbbAnalysis::L1Vars part_;
61    
62     };
63    
64     }//namespace
65     #endif