Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-01-18 03:41:53

0001 #ifndef DataFormats_HGCalRecHit_interface_HGCalRecHitSoA_h
0002 #define DataFormats_HGCalRecHit_interface_HGCalRecHitSoA_h
0003 
0004 #include "DataFormats/SoATemplate/interface/SoACommon.h"
0005 #include "DataFormats/SoATemplate/interface/SoALayout.h"
0006 #include "DataFormats/SoATemplate/interface/SoAView.h"
0007 
0008 namespace hgcalrechit {
0009 
0010   // Generate structure of arrays (SoA) layout with RecHit dataformat
0011   GENERATE_SOA_LAYOUT(HGCalRecHitSoALayout,
0012                       SOA_COLUMN(double, energy),
0013                       SOA_COLUMN(double, time),
0014                       SOA_COLUMN(uint16_t, flags))
0015   using HGCalRecHitSoA = HGCalRecHitSoALayout<>;
0016 
0017   enum HGCalRecHitFlags { Normal = 0x0, EnergyInvalid = 0x1, TimeInvalid = 0x2 };
0018 
0019 }  // namespace hgcalrechit
0020 
0021 #endif  // DataFormats_HGCalRecHit_interface_HGCalRecHitSoA_h