ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/HLTObject.hh
Revision: 1.3
Committed: Tue Oct 25 13:26:50 2011 UTC (13 years, 6 months ago) by agilbert
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
State: FILE REMOVED
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

# Content
1 #ifndef HbbAnalysis_HLTObject_hh
2 #define HbbAnalysis_HLTObject_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 HLTObject {
13
14 public:
15
16
17 /** Constructors */
18
19 HLTObject(){
20 Clear();
21 };
22
23 ~HLTObject(){};
24
25 HLTObject(const HbbAnalysis::HLTVars & aPart){
26 Clear();
27 hltVars(aPart);
28 };
29
30 inline const HbbAnalysis::HLTVars & hltVars() const {
31 return part_;
32 };
33
34 inline void hltVars(const HbbAnalysis::HLTVars & aPart) {
35 part_ = aPart;
36 };
37
38 inline void Clear(){
39 part_.pT = 0;
40 part_.eta = 0;
41 part_.phi = 0;
42 part_.id = 0;
43 part_.mass = 0;
44 part_.type = 0;
45 };
46
47 inline void print() const{
48
49 std::cout << "=======================================================" << std::endl
50 << "================== Print HLTObject ==================" << std::endl
51 << "=======================================================" << std::endl
52 << " ---- id : " << part_.id << std::endl
53 << " ---- mass: " << part_.mass << std::endl
54 << " ---- pt,eta,phi: " << part_.pT << " " << part_.eta << " " << part_.phi << std::endl
55 << "=======================================================" << std::endl;
56
57 };
58
59 private:
60
61 HbbAnalysis::HLTVars part_;
62
63 };
64
65 }//namespace
66 #endif