Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:37:01

0001 #ifndef __L1Analysis_L1AnalysisRCTDataFormat_H__
0002 #define __L1Analysis_L1AnalysisRCTDataFormat_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 20/04/2010 - E. Conte, A.C. Le Bihan
0006 //
0007 //
0008 // Original code : L1Trigger/L1TNtuples/L1NtupleProducer
0009 //-------------------------------------------------------------------------------
0010 
0011 #include <vector>
0012 
0013 namespace L1Analysis {
0014   struct L1AnalysisRCTDataFormat {
0015     //  L1AnalysisRCTDataFormat(){Reset();};
0016     L1AnalysisRCTDataFormat() { Reset(); };
0017     ~L1AnalysisRCTDataFormat() {}
0018 
0019     void Reset() {
0020       RegSize = -999;
0021 
0022       RegEta.clear();
0023       RegPhi.clear();
0024       RegGEta.clear();
0025       RegGPhi.clear();
0026       RegRnk.clear();
0027       RegVeto.clear();
0028       RegBx.clear();
0029       RegOverFlow.clear();
0030       RegMip.clear();
0031       RegFGrain.clear();
0032 
0033       EmSize = -999;
0034 
0035       IsIsoEm.clear();
0036       EmEta.clear();
0037       EmPhi.clear();
0038       EmRnk.clear();
0039       EmBx.clear();
0040     }
0041 
0042     void InitHdRCT() {
0043       RegSize = -999;
0044 
0045       RegEta.assign(maxRCTREG_, -999.);
0046       RegPhi.assign(maxRCTREG_, -999.);
0047       RegGEta.assign(maxRCTREG_, -999.);
0048       RegGPhi.assign(maxRCTREG_, -999.);
0049       RegRnk.assign(maxRCTREG_, -999.);
0050       RegVeto.assign(maxRCTREG_, -999);
0051       RegBx.assign(maxRCTREG_, -999);
0052       RegOverFlow.assign(maxRCTREG_, -999);
0053       RegMip.assign(maxRCTREG_, -999);
0054       RegFGrain.assign(maxRCTREG_, -999);
0055     }
0056 
0057     void InitEmRCT() {
0058       EmSize = -999;
0059 
0060       IsIsoEm.assign(maxRCTREG_, -999);
0061       EmEta.assign(maxRCTREG_, -999.);
0062       EmPhi.assign(maxRCTREG_, -999.);
0063       EmRnk.assign(maxRCTREG_, -999.);
0064       EmBx.assign(maxRCTREG_, -999 - maxRCTREG_);
0065     }
0066 
0067     // ---- L1AnalysisRCTDataFormat information.
0068     int maxRCTREG_;
0069 
0070     int RegSize;
0071 
0072     std::vector<float> RegEta;
0073     std::vector<float> RegPhi;
0074     std::vector<float> RegGEta;
0075     std::vector<float> RegGPhi;
0076     std::vector<float> RegRnk;
0077     std::vector<int> RegVeto;
0078     std::vector<int> RegBx;
0079     std::vector<int> RegOverFlow;
0080     std::vector<int> RegMip;
0081     std::vector<int> RegFGrain;
0082 
0083     int EmSize;
0084 
0085     std::vector<int> IsIsoEm;
0086     std::vector<float> EmEta;
0087     std::vector<float> EmPhi;
0088     std::vector<float> EmRnk;
0089     std::vector<int> EmBx;
0090   };
0091 }  // namespace L1Analysis
0092 #endif