ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1TriggerDPG/interface/L1AnalysisDTTFDataFormat.h
Revision: 1.5
Committed: Sat Feb 19 17:50:16 2011 UTC (14 years, 2 months ago) by gcodispo
Content type: text/plain
Branch: MAIN
CVS Tags: V01-01-00, jimb4Jan2013, V01-00-00, hi44X_02, L1CorrectionsStudy_13_09_11, CMSSW_4_2_3_patch2, HEAD
Changes since 1.4: +3 -1 lines
Log Message:
Fixe memleak: added clear() to phGlobPhi and trAddress

File Contents

# Content
1 #ifndef __L1Analysis_L1AnalysisDTTFDataFormat_H__
2 #define __L1Analysis_L1AnalysisDTTFDataFormat_H__
3
4 //-------------------------------------------------------------------------------
5 // Created 16/04/2010 - E. Conte, A.C. Le Bihan
6 //
7 //
8 // Original code : UserCode/L1TriggerDPG/L1NtupleProducer
9 //-------------------------------------------------------------------------------
10
11 #include <vector>
12 #include "TMatrixD.h"
13
14
15 namespace L1Analysis
16 {
17 struct L1AnalysisDTTFDataFormat
18 {
19
20 L1AnalysisDTTFDataFormat(){Reset();};
21 ~L1AnalysisDTTFDataFormat(){};
22
23 void Reset()
24 {
25
26 phSize = 0;
27
28 phBx.clear();
29 phWh.clear();
30 phSe.clear();
31 phSt.clear();
32 phAng.clear();
33 phGlobPhi.clear(); ///
34 phBandAng.clear();
35 phCode.clear();
36 phX.clear();
37 phY.clear();
38
39
40 thSize = 0;
41
42 thBx.clear();
43 thWh.clear();
44 thSe.clear();
45 thSt.clear();
46 thX.clear();
47 thY.clear();
48
49
50 trSize = 0;
51
52 trBx.clear();
53 trTag.clear();
54 trQual.clear();
55 trPtPck.clear();
56 trPtVal.clear();
57 trPhiPck.clear();
58 trPhiVal.clear();
59 trEtaPck.clear();
60 trEtaVal.clear();
61 trPhiGlob.clear();
62 trChPck.clear();
63 trWh.clear();
64 trSc.clear();
65 trAddress.clear();
66
67 thTheta.Clear();
68 thCode.Clear();
69 }
70
71 // ---- L1AnalysisDTTFDataFormat information.
72
73 int phSize;
74 std::vector<int> phBx;
75 std::vector<int> phWh;
76 std::vector<int> phSe;
77 std::vector<int> phSt;
78 std::vector<float> phAng;
79 std::vector<double> phGlobPhi;
80 std::vector<float> phBandAng;
81 std::vector<int> phCode;
82 std::vector<float> phX;
83 std::vector<float> phY;
84
85 int thSize;
86 std::vector<int> thBx;
87 std::vector<int> thWh;
88 std::vector<int> thSe;
89 std::vector<int> thSt;
90 std::vector<float> thX;
91 std::vector<float> thY;
92
93 TMatrixD thTheta;
94 TMatrixD thCode;
95
96 int trSize;
97 std::vector<int> trBx;
98 std::vector<int> trTag;
99 std::vector<int> trQual;
100 std::vector<int> trPtPck;
101 std::vector<float> trPtVal;
102 std::vector<int> trPhiPck;
103 std::vector<float> trPhiVal;
104 std::vector<int> trEtaPck;
105 std::vector<float> trEtaVal;
106 std::vector<double>trPhiGlob;
107 std::vector<int> trChPck;
108 std::vector<int> trWh;
109 std::vector<int> trSc;
110 std::vector<unsigned int> trAddress;
111 };
112 }
113 #endif
114
115