CMS 3D CMS Logo

L1AnalysisGeneratorDataFormat.h
Go to the documentation of this file.
1 #ifndef __L1Analysis_L1AnalysisGeneratorDataFormat_H__
2 #define __L1Analysis_L1AnalysisGeneratorDataFormat_H__
3 
4 //-------------------------------------------------------------------------------
5 // Created 15/04/2010 - E. Conte, A.C. Le Bihan
6 //
7 //
8 // Original code : L1Trigger/L1TNtuples/L1NtupleProducer
9 //-------------------------------------------------------------------------------
10 #include <TROOT.h>
11 #include <vector>
12 //#include <TString.h>
13 
14 namespace L1Analysis {
18 
19  void Reset() {
20  weight = -999.;
21  pthat = -999.;
22  nVtx = 0;
23  nMeanPU = 0;
24 
25  nPart = 0;
26  partId.resize(0);
27  partStat.resize(0);
28  partParent.resize(0);
29  partPt.resize(0);
30  partEta.resize(0);
31  partPhi.resize(0);
32  partE.resize(0);
33  partCh.resize(0);
34 
35  nJet = 0;
36  jetPt.resize(0);
37  jetEta.resize(0);
38  jetPhi.resize(0);
39  jetM.resize(0);
40  }
41 
42  // ---- L1AnalysisGeneratorDataFormat information.
43 
44  float weight;
45  float pthat;
46  int nVtx;
47  int nMeanPU;
48 
49  int nPart;
50  std::vector<int> partId;
51  std::vector<int> partStat;
52  std::vector<int> partParent;
53  std::vector<float> partPt;
54  std::vector<float> partEta;
55  std::vector<float> partPhi;
56  std::vector<float> partE;
57  std::vector<int> partCh;
58 
59  int nJet;
60  std::vector<float> jetPt;
61  std::vector<float> jetEta;
62  std::vector<float> jetPhi;
63  std::vector<float> jetM;
64  };
65 } // namespace L1Analysis
66 #endif
Definition: weight.py:1