Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:12

0001 #ifndef __L1Analysis_L1AnalysisRecoElectronDataFormat_H__
0002 #define __L1Analysis_L1AnalysisRecoElectronDataFormat_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 20/04/2010 - E. Conte, A.C. Le Bihan
0006 //
0007 //
0008 // Original code : L1Trigger/L1TNtuples/L1RecoElectronNtupleProducer - Jim Brooke
0009 //-------------------------------------------------------------------------------
0010 
0011 #include <vector>
0012 
0013 namespace L1Analysis {
0014   struct L1AnalysisRecoElectronDataFormat {
0015     L1AnalysisRecoElectronDataFormat() { Reset(); };
0016     ~L1AnalysisRecoElectronDataFormat() { Reset(); };
0017 
0018     void Reset() {
0019       nElectrons = 0;
0020 
0021       e.clear();
0022       et.clear();
0023       e_ECAL.clear();
0024       e_SC.clear();
0025       pt.clear();
0026       eta.clear();
0027       eta_SC.clear();
0028       phi_SC.clear();
0029       phi.clear();
0030       iso.clear();
0031       isVetoElectron.clear();
0032       isLooseElectron.clear();
0033       isMediumElectron.clear();
0034       isTightElectron.clear();
0035       charge.clear();
0036     }
0037 
0038     unsigned nElectrons;
0039     std::vector<float> e;
0040     std::vector<float> et;
0041     std::vector<float> e_SC;
0042     std::vector<float> e_ECAL;
0043     std::vector<float> phi_SC;
0044     std::vector<float> pt;
0045     std::vector<float> eta;
0046     std::vector<float> eta_SC;
0047     std::vector<float> phi;
0048     std::vector<float> iso;
0049     std::vector<short> isVetoElectron;
0050     std::vector<short> isLooseElectron;
0051     std::vector<short> isMediumElectron;
0052     std::vector<short> isTightElectron;
0053     std::vector<int> charge;
0054   };
0055 }  // namespace L1Analysis
0056 #endif