CMS 3D CMS Logo

L1AnalysisRCTDataFormat.h
Go to the documentation of this file.
1 #ifndef __L1Analysis_L1AnalysisRCTDataFormat_H__
2 #define __L1Analysis_L1AnalysisRCTDataFormat_H__
3 
4 //-------------------------------------------------------------------------------
5 // Created 20/04/2010 - E. Conte, A.C. Le Bihan
6 //
7 //
8 // Original code : L1Trigger/L1TNtuples/L1NtupleProducer
9 //-------------------------------------------------------------------------------
10 
11 #include <vector>
12 
13 namespace L1Analysis {
15  // L1AnalysisRCTDataFormat(){Reset();};
18 
19  void Reset() {
20  RegSize = -999;
21 
22  RegEta.clear();
23  RegPhi.clear();
24  RegGEta.clear();
25  RegGPhi.clear();
26  RegRnk.clear();
27  RegVeto.clear();
28  RegBx.clear();
29  RegOverFlow.clear();
30  RegMip.clear();
31  RegFGrain.clear();
32 
33  EmSize = -999;
34 
35  IsIsoEm.clear();
36  EmEta.clear();
37  EmPhi.clear();
38  EmRnk.clear();
39  EmBx.clear();
40  }
41 
42  void InitHdRCT() {
43  RegSize = -999;
44 
45  RegEta.assign(maxRCTREG_, -999.);
46  RegPhi.assign(maxRCTREG_, -999.);
47  RegGEta.assign(maxRCTREG_, -999.);
48  RegGPhi.assign(maxRCTREG_, -999.);
49  RegRnk.assign(maxRCTREG_, -999.);
50  RegVeto.assign(maxRCTREG_, -999);
51  RegBx.assign(maxRCTREG_, -999);
52  RegOverFlow.assign(maxRCTREG_, -999);
53  RegMip.assign(maxRCTREG_, -999);
54  RegFGrain.assign(maxRCTREG_, -999);
55  }
56 
57  void InitEmRCT() {
58  EmSize = -999;
59 
60  IsIsoEm.assign(maxRCTREG_, -999);
61  EmEta.assign(maxRCTREG_, -999.);
62  EmPhi.assign(maxRCTREG_, -999.);
63  EmRnk.assign(maxRCTREG_, -999.);
64  EmBx.assign(maxRCTREG_, -999 - maxRCTREG_);
65  }
66 
67  // ---- L1AnalysisRCTDataFormat information.
69 
70  int RegSize;
71 
72  std::vector<float> RegEta;
73  std::vector<float> RegPhi;
74  std::vector<float> RegGEta;
75  std::vector<float> RegGPhi;
76  std::vector<float> RegRnk;
77  std::vector<int> RegVeto;
78  std::vector<int> RegBx;
79  std::vector<int> RegOverFlow;
80  std::vector<int> RegMip;
81  std::vector<int> RegFGrain;
82 
83  int EmSize;
84 
85  std::vector<int> IsIsoEm;
86  std::vector<float> EmEta;
87  std::vector<float> EmPhi;
88  std::vector<float> EmRnk;
89  std::vector<int> EmBx;
90  };
91 } // namespace L1Analysis
92 #endif