Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:28

0001 #ifndef __L1Analysis_L1AnalysisGeneratorDataFormat_H__
0002 #define __L1Analysis_L1AnalysisGeneratorDataFormat_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 15/04/2010 - E. Conte, A.C. Le Bihan
0006 //
0007 //
0008 // Original code : L1Trigger/L1TNtuples/L1NtupleProducer
0009 //-------------------------------------------------------------------------------
0010 #include <TROOT.h>
0011 #include <vector>
0012 //#include <TString.h>
0013 
0014 namespace L1Analysis {
0015   struct L1AnalysisGeneratorDataFormat {
0016     L1AnalysisGeneratorDataFormat() { Reset(); };
0017     ~L1AnalysisGeneratorDataFormat(){};
0018 
0019     void Reset() {
0020       weight = -999.;
0021       pthat = -999.;
0022       nVtx = 0;
0023       nMeanPU = 0;
0024 
0025       nPart = 0;
0026       partId.resize(0);
0027       partStat.resize(0);
0028       partParent.resize(0);
0029       partPt.resize(0);
0030       partEta.resize(0);
0031       partPhi.resize(0);
0032       partE.resize(0);
0033       partCh.resize(0);
0034 
0035       nJet = 0;
0036       jetPt.resize(0);
0037       jetEta.resize(0);
0038       jetPhi.resize(0);
0039       jetM.resize(0);
0040     }
0041 
0042     // ---- L1AnalysisGeneratorDataFormat information.
0043 
0044     float weight;
0045     float pthat;
0046     int nVtx;
0047     int nMeanPU;
0048 
0049     int nPart;
0050     std::vector<int> partId;
0051     std::vector<int> partStat;
0052     std::vector<int> partParent;
0053     std::vector<float> partPt;
0054     std::vector<float> partEta;
0055     std::vector<float> partPhi;
0056     std::vector<float> partE;
0057     std::vector<int> partCh;
0058 
0059     int nJet;
0060     std::vector<float> jetPt;
0061     std::vector<float> jetEta;
0062     std::vector<float> jetPhi;
0063     std::vector<float> jetM;
0064   };
0065 }  // namespace L1Analysis
0066 #endif