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
|