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
L1Analysis::L1AnalysisGeneratorDataFormat::jetM
std::vector< float > jetM
Definition: L1AnalysisGeneratorDataFormat.h:63
L1Analysis::L1AnalysisGeneratorDataFormat::partId
std::vector< int > partId
Definition: L1AnalysisGeneratorDataFormat.h:50
L1Analysis::L1AnalysisGeneratorDataFormat::partEta
std::vector< float > partEta
Definition: L1AnalysisGeneratorDataFormat.h:54
L1Analysis::L1AnalysisGeneratorDataFormat::jetEta
std::vector< float > jetEta
Definition: L1AnalysisGeneratorDataFormat.h:61
L1Analysis::L1AnalysisGeneratorDataFormat::jetPt
std::vector< float > jetPt
Definition: L1AnalysisGeneratorDataFormat.h:60
L1Analysis::L1AnalysisGeneratorDataFormat::partPhi
std::vector< float > partPhi
Definition: L1AnalysisGeneratorDataFormat.h:55
L1Analysis::L1AnalysisGeneratorDataFormat::nPart
int nPart
Definition: L1AnalysisGeneratorDataFormat.h:49
L1Analysis::L1AnalysisGeneratorDataFormat::nJet
int nJet
Definition: L1AnalysisGeneratorDataFormat.h:59
L1Analysis::L1AnalysisGeneratorDataFormat::nVtx
int nVtx
Definition: L1AnalysisGeneratorDataFormat.h:46
L1Analysis::L1AnalysisGeneratorDataFormat::partCh
std::vector< int > partCh
Definition: L1AnalysisGeneratorDataFormat.h:57
L1Analysis::L1AnalysisGeneratorDataFormat::partPt
std::vector< float > partPt
Definition: L1AnalysisGeneratorDataFormat.h:53
L1Analysis
Definition: L1AnalysisBMTFInputs.h:18
L1Analysis::L1AnalysisGeneratorDataFormat
Definition: L1AnalysisGeneratorDataFormat.h:15
L1Analysis::L1AnalysisGeneratorDataFormat::partParent
std::vector< int > partParent
Definition: L1AnalysisGeneratorDataFormat.h:52
L1Analysis::L1AnalysisGeneratorDataFormat::weight
float weight
Definition: L1AnalysisGeneratorDataFormat.h:44
L1Analysis::L1AnalysisGeneratorDataFormat::jetPhi
std::vector< float > jetPhi
Definition: L1AnalysisGeneratorDataFormat.h:62
L1Analysis::L1AnalysisGeneratorDataFormat::partE
std::vector< float > partE
Definition: L1AnalysisGeneratorDataFormat.h:56
L1Analysis::L1AnalysisGeneratorDataFormat::pthat
float pthat
Definition: L1AnalysisGeneratorDataFormat.h:45
L1Analysis::L1AnalysisGeneratorDataFormat::Reset
void Reset()
Definition: L1AnalysisGeneratorDataFormat.h:19
L1Analysis::L1AnalysisGeneratorDataFormat::~L1AnalysisGeneratorDataFormat
~L1AnalysisGeneratorDataFormat()
Definition: L1AnalysisGeneratorDataFormat.h:17
L1Analysis::L1AnalysisGeneratorDataFormat::nMeanPU
int nMeanPU
Definition: L1AnalysisGeneratorDataFormat.h:47
L1Analysis::L1AnalysisGeneratorDataFormat::partStat
std::vector< int > partStat
Definition: L1AnalysisGeneratorDataFormat.h:51
L1Analysis::L1AnalysisGeneratorDataFormat::L1AnalysisGeneratorDataFormat
L1AnalysisGeneratorDataFormat()
Definition: L1AnalysisGeneratorDataFormat.h:16
weight
Definition: weight.py:1