ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1TriggerDPG/interface/L1AnalysisGeneratorDataFormat.h
Revision: 1.2
Committed: Mon Oct 29 10:21:52 2012 UTC (12 years, 6 months ago) by gflouris
Content type: text/plain
Branch: MAIN
CVS Tags: V01-01-00, jimb4Jan2013, HEAD
Changes since 1.1: +21 -3 lines
Log Message:
Generator Branch with gen level particles

File Contents

# User Rev Content
1 econte 1.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 : UserCode/L1TriggerDPG/L1NtupleProducer
9     //-------------------------------------------------------------------------------
10 gflouris 1.2 #include <TROOT.h>
11     #include <vector>
12     //#include <TString.h>
13 econte 1.1
14    
15     namespace L1Analysis
16     {
17 gflouris 1.2 struct L1AnalysisGeneratorDataFormat
18 econte 1.1 {
19 gflouris 1.2
20 econte 1.1 L1AnalysisGeneratorDataFormat(){Reset();};
21     ~L1AnalysisGeneratorDataFormat(){};
22    
23     void Reset()
24     {
25     weight = -999.;
26     pthat = -999.;
27 gflouris 1.2 id.resize(0);
28     status.resize(0);
29     parent_id.resize(0);
30     px.resize(0);
31     py.resize(0);
32     pz.resize(0);
33     e.resize(0);
34    
35 econte 1.1 }
36    
37    
38     // ---- L1AnalysisGeneratorDataFormat information.
39    
40     float weight;
41     float pthat;
42 gflouris 1.2 std::vector<int> id;
43     std::vector<int> status;
44     std::vector<int> parent_id;
45     std::vector<float> px;
46     std::vector<float> py;
47     std::vector<float> pz;
48     std::vector<float> e;
49    
50 econte 1.1 };
51     }
52     #endif
53    
54