CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions
l1ct Namespace Reference

Namespaces

 multififo_regionizer
 
 Scales
 
 tdr_regionizer
 

Classes

class  DeregionizerEmulator
 
class  DeregionizerInput
 
struct  DetectorSector
 
struct  EGInputSelectorEmuConfig
 
class  EGInputSelectorEmulator
 
struct  EGIsoEleObj
 
struct  EGIsoEleObjEmu
 
struct  EGIsoObj
 
struct  EGIsoObjEmu
 
struct  EGObjEmu
 
struct  EmCaloObj
 
struct  EmCaloObjEmu
 
struct  Event
 
class  GMTMuonDecoderEmulator
 
struct  HadCaloObj
 
struct  HadCaloObjEmu
 
class  HgcalClusterDecoderEmulator
 
struct  Jet
 
struct  L2EgEncoderEmulator
 
class  L2EgSorterEmulator
 
class  LinPuppiEmulator
 
class  MultififoRegionizerEmulator
 
struct  MuObj
 
struct  MuObjEmu
 
struct  OutputBoard
 
struct  OutputRegion
 
struct  ParticleID
 
class  PFAlgo2HGCEmulator
 
class  PFAlgo3Emulator
 
class  PFAlgoDummyEmulator
 
class  PFAlgoEmulatorBase
 
struct  PFChargedObj
 
struct  PFChargedObjEmu
 
struct  PFCommonObj
 
struct  PFInputRegion
 
struct  PFNeutralObj
 
struct  PFNeutralObjEmu
 
struct  PFRegion
 
struct  PFRegionEmu
 
struct  PFTkEGAlgoEmuConfig
 
class  PFTkEGAlgoEmulator
 
class  PFTkEGSorterEmulator
 
struct  PuppiObj
 
struct  PuppiObjEmu
 
struct  PVObj
 
struct  PVObjEmu
 
struct  RawInputs
 
struct  RegionizerDecodedInputs
 
class  RegionizerEmulator
 
struct  Sum
 
struct  Tau
 
class  TDRRegionizerEmulator
 
struct  TkObj
 
struct  TkObjEmu
 
class  TrackInputEmulator
 

Typedefs

typedef ap_fixed< 16, 14, AP_TRN, AP_SAT > dpt_t
 
typedef ap_int< 8 > dxy_t
 
typedef ap_uint< 4 > egquality_t
 
typedef ap_uint< 10 > em2calo_dr_t
 
typedef ap_uint< 6 > emid_t
 
typedef ap_int< 10 > eta_t
 
typedef ap_fixed< 18, 5, AP_RND_CONV, AP_SAT > etaphi_sf_t
 
typedef ap_int< 12 > glbeta_t
 
typedef ap_int< 11 > glbphi_t
 
typedef ap_ufixed< 11, 9, AP_TRN, AP_SAT > iso_t
 
typedef ap_int< 10 > phi_t
 
typedef ap_ufixed< 10, 8, AP_TRN, AP_SAT > pt10_t
 
typedef ap_ufixed< 28, 24, AP_TRN, AP_SAT > pt2_t
 
typedef ap_ufixed< 14, 12, AP_TRN, AP_SAT > pt_t
 
typedef ap_fixed< 10, 6 > ptErrOffs_t
 
typedef ap_ufixed< 9, 1 > ptErrScale_t
 
typedef ap_ufixed< 17, 17 - 4, AP_TRN, AP_SAT > ptscale_t
 
typedef ap_uint< 9 > puppiWgt_t
 
typedef ap_uint< 13 > tk2calo_dq_t
 
typedef ap_uint< 14 > tk2calo_dr_t
 
typedef ap_uint< 14 > tk2em_dr_t
 
typedef ap_int< 6 > tkdeta_t
 
typedef ap_uint< 7 > tkdphi_t
 
typedef ap_uint< 3 > tkquality_t
 
typedef ap_int< 5 > vtx_t
 
typedef ap_int< 10 > z0_t
 

Functions

void clear (Sum &c)
 
void clear (HadCaloObj &c)
 
void clear (EGIsoObj &c)
 
void clear (Jet &c)
 
void clear (Tau &c)
 
void clear (PFChargedObj &c)
 
void clear (EmCaloObj &c)
 
void clear (PFNeutralObj &c)
 
void clear (EGIsoEleObj &c)
 
void clear (PuppiObj &c)
 
void clear (TkObj &c)
 
void clear (MuObj &c)
 
void clear (PVObj &c)
 
l1gt::eta_t CTtoGT_eta (glbeta_t x)
 
l1gt::phi_t CTtoGT_phi (glbphi_t x)
 
l1gt::pt_t CTtoGT_pt (pt_t x)
 
int dr2_int (eta_t eta1, phi_t phi1, eta_t eta2, phi_t phi2)
 
template<typename T >
bool readAP (std::fstream &from, T &to)
 
template<typename T >
bool readMany (std::fstream &from, std::vector< T > &objs)
 
template<int NB>
bool readMany (std::fstream &from, std::vector< ap_uint< NB >> &objs)
 
template<typename T >
bool readObj (std::fstream &from, T &obj)
 
template<typename T >
bool readVar (std::fstream &from, T &to)
 
template<typename T1 , typename T2 >
void toFirmware (const std::vector< T1 > &in, unsigned int NMAX, T2 out[])
 
template<typename T >
bool writeAP (const T &src, std::fstream &to)
 
template<typename T >
bool writeMany (const std::vector< T > &objs, std::fstream &to)
 
template<int NB>
bool writeMany (const std::vector< ap_uint< NB >> &objs, std::fstream &to)
 
template<typename T >
bool writeObj (const T &obj, std::fstream &to)
 
template<typename T >
bool writeVar (const T &src, std::fstream &to)
 

Typedef Documentation

◆ dpt_t

typedef ap_fixed<16, 14, AP_TRN, AP_SAT> l1ct::dpt_t

Definition at line 23 of file datatypes.h.

◆ dxy_t

typedef ap_int<8> l1ct::dxy_t

Definition at line 33 of file datatypes.h.

◆ egquality_t

typedef ap_uint<4> l1ct::egquality_t

Definition at line 41 of file datatypes.h.

◆ em2calo_dr_t

typedef ap_uint<10> l1ct::em2calo_dr_t

Definition at line 39 of file datatypes.h.

◆ emid_t

typedef ap_uint<6> l1ct::emid_t

Definition at line 36 of file datatypes.h.

◆ eta_t

typedef ap_int<10> l1ct::eta_t

Definition at line 25 of file datatypes.h.

◆ etaphi_sf_t

typedef ap_fixed<18, 5, AP_RND_CONV, AP_SAT> l1ct::etaphi_sf_t

Definition at line 252 of file gt_datatypes.h.

◆ glbeta_t

typedef ap_int<12> l1ct::glbeta_t

Definition at line 29 of file datatypes.h.

◆ glbphi_t

typedef ap_int<11> l1ct::glbphi_t

Definition at line 30 of file datatypes.h.

◆ iso_t

typedef ap_ufixed<11, 9, AP_TRN, AP_SAT> l1ct::iso_t

Definition at line 43 of file datatypes.h.

◆ phi_t

typedef ap_int<10> l1ct::phi_t

Definition at line 26 of file datatypes.h.

◆ pt10_t

typedef ap_ufixed<10, 8, AP_TRN, AP_SAT> l1ct::pt10_t

Definition at line 22 of file datatypes.h.

◆ pt2_t

typedef ap_ufixed<28, 24, AP_TRN, AP_SAT> l1ct::pt2_t

Definition at line 24 of file datatypes.h.

◆ pt_t

typedef ap_ufixed<14, 12, AP_TRN, AP_SAT> l1ct::pt_t

Definition at line 21 of file datatypes.h.

◆ ptErrOffs_t

typedef ap_fixed<10, 6> l1ct::ptErrOffs_t

Definition at line 10 of file pfalgo_types.h.

◆ ptErrScale_t

typedef ap_ufixed<9, 1> l1ct::ptErrScale_t

Definition at line 9 of file pfalgo_types.h.

◆ ptscale_t

typedef ap_ufixed<17, 17 - 4, AP_TRN, AP_SAT> l1ct::ptscale_t

Definition at line 8 of file pfalgo_types.h.

◆ puppiWgt_t

typedef ap_uint<9> l1ct::puppiWgt_t

Definition at line 35 of file datatypes.h.

◆ tk2calo_dq_t

typedef ap_uint<13> l1ct::tk2calo_dq_t

Definition at line 40 of file datatypes.h.

◆ tk2calo_dr_t

typedef ap_uint<14> l1ct::tk2calo_dr_t

Definition at line 38 of file datatypes.h.

◆ tk2em_dr_t

typedef ap_uint<14> l1ct::tk2em_dr_t

Definition at line 37 of file datatypes.h.

◆ tkdeta_t

typedef ap_int<6> l1ct::tkdeta_t

Definition at line 27 of file datatypes.h.

◆ tkdphi_t

typedef ap_uint<7> l1ct::tkdphi_t

Definition at line 28 of file datatypes.h.

◆ tkquality_t

typedef ap_uint<3> l1ct::tkquality_t

Definition at line 34 of file datatypes.h.

◆ vtx_t

typedef ap_int<5> l1ct::vtx_t

Definition at line 31 of file datatypes.h.

◆ z0_t

typedef ap_int<10> l1ct::z0_t

Definition at line 32 of file datatypes.h.

Function Documentation

◆ clear() [1/13]

void l1ct::clear ( Sum c)
inline

Definition at line 60 of file sums.h.

References HltBtagPostValidation_cff::c.

◆ clear() [2/13]

void l1ct::clear ( HadCaloObj c)
inline

Definition at line 66 of file layer1_objs.h.

References HltBtagPostValidation_cff::c.

◆ clear() [3/13]

void l1ct::clear ( EGIsoObj c)
inline

Definition at line 82 of file egamma.h.

References HltBtagPostValidation_cff::c.

Referenced by core.autovars.NTupleObjectType::addSubObjects(), ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::AlpakaService(), DTTFFEDReader::analyse(), IsoTrig::analyze(), IsoTrig::clearChgIsolnTreeVectors(), npstat::BoxND< unsigned >::copyFrom(), CSCALCTPreTriggerDigi::CSCALCTPreTriggerDigi(), DTTracoTrig::DTTracoTrig(), L1GtHfRingEtSumsCondition::evaluateCondition(), L1GtBptxCondition::evaluateCondition(), L1GtCastorCondition::evaluateCondition(), L1GtExternalCondition::evaluateCondition(), L1GtHfBitCountsCondition::evaluateCondition(), L1GtJetCountsCondition::evaluateCondition(), L1GtEnergySumCondition::evaluateCondition(), L1GtMuonCondition::evaluateCondition(), l1t::EnergySumCondition::evaluateCondition(), l1t::ExternalCondition::evaluateCondition(), l1t::CorrCondition::evaluateCondition(), L1GtCorrelationCondition::evaluateCondition(), l1t::CorrThreeBodyCondition::evaluateCondition(), l1t::CorrWithOverlapRemovalCondition::evaluateCondition(), FEConfigBadStripInfo::FEConfigBadStripInfo(), FEConfigBadTTInfo::FEConfigBadTTInfo(), FEConfigBadXTInfo::FEConfigBadXTInfo(), FEConfigCokeDat::FEConfigCokeDat(), FEConfigCokeInfo::FEConfigCokeInfo(), FEConfigFgrInfo::FEConfigFgrInfo(), FEConfigLinInfo::FEConfigLinInfo(), FEConfigLUTInfo::FEConfigLUTInfo(), FEConfigMainInfo::FEConfigMainInfo(), FEConfigOddWeightInfo::FEConfigOddWeightInfo(), FEConfigPedInfo::FEConfigPedInfo(), FEConfigSlidingInfo::FEConfigSlidingInfo(), FEConfigSpikeInfo::FEConfigSpikeInfo(), FEConfigTimingInfo::FEConfigTimingInfo(), FEConfigWeightInfo::FEConfigWeightInfo(), Pythia8HepMC3Hadronizer::initializeForExternalPartons(), Pythia8Hadronizer::initializeForExternalPartons(), Pythia8HepMC3Hadronizer::initializeForInternalPartons(), Pythia8Hadronizer::initializeForInternalPartons(), HcalGeomParameters::loadGeometry(), CSCStubMatcher::match(), CSCDigiMatcher::match(), GEMDigiMatcher::match(), ODBadTTInfo::ODBadTTInfo(), ODBadXTInfo::ODBadXTInfo(), ODCCSConfig::ODCCSConfig(), ODCond2ConfInfo::ODCond2ConfInfo(), ODDCCConfig::ODDCCConfig(), ODDCUConfig::ODDCUConfig(), ODEcalCycle::ODEcalCycle(), ODFEDAQConfig::ODFEDAQConfig(), ODFEDelaysInfo::ODFEDelaysInfo(), ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo(), ODFEWeightsInfo::ODFEWeightsInfo(), ODGolBiasCurrentInfo::ODGolBiasCurrentInfo(), ODJBH4Config::ODJBH4Config(), ODLaserConfig::ODLaserConfig(), ODLTCConfig::ODLTCConfig(), ODLTSConfig::ODLTSConfig(), ODScanConfig::ODScanConfig(), ODSRPConfig::ODSRPConfig(), ODTCCConfig::ODTCCConfig(), ODTCCEEConfig::ODTCCEEConfig(), ODTowersToByPassInfo::ODTowersToByPassInfo(), ODTTCciConfig::ODTTCciConfig(), ODTTCFConfig::ODTTCFConfig(), ODVfeToRejectInfo::ODVfeToRejectInfo(), FFTJetProducer::produce(), EcalFEtoDigi::readInput(), l1tVertexFinder::RecoVertex< T >::RecoVertex(), SequenceTypes._ModuleSequenceType::remove(), SequenceTypes._TaskBase::remove(), SequenceTypes._ModuleSequenceType::replace(), SequenceTypes._TaskBase::replace(), DTTracoLUTs::reset(), HoughGrouping::resetAttributes(), DQMImplNet< DQMNet::Object >::sendObjectListToPeer(), CaloRecHit::setFlagField(), toFirmware(), RPCCosmicSeedrecHitFinder::unsetInput(), SimG4HcalValidation::update(), MultiVertexFitter::vertices(), ALPAKA_ACCELERATOR_NAMESPACE::AlpakaService::~AlpakaService(), edm::CosMuoGenProducer::~CosMuoGenProducer(), CSCLayerInfo< TYPE >::~CSCLayerInfo(), DTTracoLUTs::~DTTracoLUTs(), and LinTrackCache::~LinTrackCache().

◆ clear() [4/13]

void l1ct::clear ( Jet c)
inline

Definition at line 91 of file jets.h.

References HltBtagPostValidation_cff::c.

◆ clear() [5/13]

void l1ct::clear ( Tau c)
inline

Definition at line 107 of file taus.h.

References HltBtagPostValidation_cff::c.

◆ clear() [6/13]

void l1ct::clear ( PFChargedObj c)
inline

Definition at line 110 of file pf.h.

References HltBtagPostValidation_cff::c.

◆ clear() [7/13]

void l1ct::clear ( EmCaloObj c)
inline

Definition at line 121 of file layer1_objs.h.

References HltBtagPostValidation_cff::c.

◆ clear() [8/13]

void l1ct::clear ( PFNeutralObj c)
inline

Definition at line 159 of file pf.h.

References HltBtagPostValidation_cff::c.

◆ clear() [9/13]

void l1ct::clear ( EGIsoEleObj c)
inline

Definition at line 171 of file egamma.h.

References HltBtagPostValidation_cff::c.

◆ clear() [10/13]

void l1ct::clear ( PuppiObj c)
inline

Definition at line 185 of file puppi.h.

References HltBtagPostValidation_cff::c.

◆ clear() [11/13]

void l1ct::clear ( TkObj c)
inline

Definition at line 208 of file layer1_objs.h.

References HltBtagPostValidation_cff::c.

◆ clear() [12/13]

void l1ct::clear ( MuObj c)
inline

Definition at line 291 of file layer1_objs.h.

References HltBtagPostValidation_cff::c.

◆ clear() [13/13]

void l1ct::clear ( PVObj c)
inline

Definition at line 316 of file layer1_objs.h.

References HltBtagPostValidation_cff::c.

◆ CTtoGT_eta()

l1gt::eta_t l1ct::CTtoGT_eta ( glbeta_t  x)
inline

Definition at line 264 of file gt_datatypes.h.

References l1ct::Scales::ETAPHI_CTtoGT_SCALE, and x.

Referenced by l1ct::EGIsoObj::toGT(), l1ct::Jet::toGT(), and l1ct::EGIsoEleObj::toGT().

264  {
265  // rescale the eta into the GT coordinates
267  }
const etaphi_sf_t ETAPHI_CTtoGT_SCALE
Definition: gt_datatypes.h:255
float x

◆ CTtoGT_phi()

l1gt::phi_t l1ct::CTtoGT_phi ( glbphi_t  x)
inline

Definition at line 269 of file gt_datatypes.h.

References l1ct::Scales::ETAPHI_CTtoGT_SCALE, and x.

Referenced by l1ct::Sum::toGT(), l1ct::EGIsoObj::toGT(), l1ct::Jet::toGT(), and l1ct::EGIsoEleObj::toGT().

269  {
270  // rescale the phi into the GT coordinates
272  }
const etaphi_sf_t ETAPHI_CTtoGT_SCALE
Definition: gt_datatypes.h:255
float x

◆ CTtoGT_pt()

l1gt::pt_t l1ct::CTtoGT_pt ( pt_t  x)
inline

Definition at line 258 of file gt_datatypes.h.

References x.

Referenced by l1ct::Sum::toGT(), l1ct::EGIsoObj::toGT(), l1ct::Jet::toGT(), and l1ct::EGIsoEleObj::toGT().

258  {
259  // the CT & GT pT are both ap_fixed with different power-of-2 LSBs
260  // -> conversion is just a cast
261  return (l1gt::pt_t)x;
262  }
ap_ufixed< 16, 11, AP_RND_CONV, AP_SAT > pt_t
Definition: gt_datatypes.h:26
float x

◆ dr2_int()

int l1ct::dr2_int ( eta_t  eta1,
phi_t  phi1,
eta_t  eta2,
phi_t  phi2 
)
inline

Definition at line 204 of file datatypes.h.

References HLT_2022v15_cff::eta1, and HLT_2022v15_cff::eta2.

Referenced by l1ct::PFAlgoEmulatorBase::best_match_with_pt_ref(), and l1ct::PFTkEGAlgoEmulator::deltaR2().

204  {
205  ap_int<eta_t::width + 1> deta = (eta1 - eta2);
206  ap_int<phi_t::width + 1> dphi = (phi1 - phi2);
207  return deta * deta + dphi * dphi;
208  }

◆ readAP()

template<typename T >
bool l1ct::readAP ( std::fstream &  from,
T to 
)

Definition at line 34 of file emulator_io.h.

References mps_fire::i, SiStripPI::min, dqmiodumpmetadata::n, readVar(), and ApeEstimator_cff::width.

Referenced by readMany(), and readObj().

34  {
35  uint32_t w32;
36  for (unsigned int i = 0, n = T::width; i < n; i += 32) {
37  if (!readVar(from, w32))
38  return false;
39  ap_uint<32> word = w32;
40  to(std::min(i + 31, n - 1), i) = word(std::min(31u, n - i - 1), 0);
41  }
42  return true;
43  }
bool readVar(std::fstream &from, T &to)
Definition: emulator_io.h:17
uint64_t word

◆ readMany() [1/2]

template<typename T >
bool l1ct::readMany ( std::fstream &  from,
std::vector< T > &  objs 
)

Definition at line 80 of file emulator_io.h.

References mps_fire::i, contentValuesFiles::number, HLTEGTnPMonitor_cfi::objs, fileinputsource_cfi::read, and readVar().

80  {
81  uint32_t number = 0;
82  readVar(from, number);
83  objs.resize(number);
84  for (uint32_t i = 0; i < number; ++i)
85  objs[i].read(from);
86  return from.good();
87  }
bool readVar(std::fstream &from, T &to)
Definition: emulator_io.h:17

◆ readMany() [2/2]

template<int NB>
bool l1ct::readMany ( std::fstream &  from,
std::vector< ap_uint< NB >> &  objs 
)

Definition at line 90 of file emulator_io.h.

References mps_fire::i, contentValuesFiles::number, HLTEGTnPMonitor_cfi::objs, readAP(), and readVar().

90  {
91  uint32_t number = 0;
92  readVar(from, number);
93  objs.resize(number);
94  for (uint32_t i = 0; i < number; ++i)
95  readAP(from, objs[i]);
96  return from.good();
97  }
bool readVar(std::fstream &from, T &to)
Definition: emulator_io.h:17
bool readAP(std::fstream &from, T &to)
Definition: emulator_io.h:34

◆ readObj()

template<typename T >
bool l1ct::readObj ( std::fstream &  from,
T obj 
)

Definition at line 51 of file emulator_io.h.

References getGTfromDQMFile::obj, readAP(), and BeamSpotPI::unpack().

51  {
52  ap_uint<T::BITWIDTH> packed;
53  if (!readAP(from, packed))
54  return false;
55  obj = T::unpack(packed);
56  return true;
57  }
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
bool readAP(std::fstream &from, T &to)
Definition: emulator_io.h:34

◆ readVar()

template<typename T >
bool l1ct::readVar ( std::fstream &  from,
T to 
)
inline

Definition at line 17 of file emulator_io.h.

Referenced by readAP(), and readMany().

17  {
18  from.read(reinterpret_cast<char *>(&to), sizeof(T));
19  return from.good();
20  }
long double T

◆ toFirmware()

template<typename T1 , typename T2 >
void l1ct::toFirmware ( const std::vector< T1 > &  in,
unsigned int  NMAX,
T2  out[] 
)

Definition at line 368 of file layer1_emulator.h.

References clear(), mps_fire::i, recoMuon::in, dqmiodumpmetadata::n, and MillePedeFileConverter_cfg::out.

368  {
369  unsigned int n = std::min<unsigned>(in.size(), NMAX);
370  for (unsigned int i = 0; i < n; ++i)
371  out[i] = in[i];
372  for (unsigned int i = n; i < NMAX; ++i)
373  out[i].clear();
374  }
void clear(EGIsoObj &c)
Definition: egamma.h:82

◆ writeAP()

template<typename T >
bool l1ct::writeAP ( const T src,
std::fstream &  to 
)

Definition at line 23 of file emulator_io.h.

References mps_fire::i, SiStripPI::min, dqmiodumpmetadata::n, TrackRefitter_38T_cff::src, ApeEstimator_cff::width, and writeVar().

Referenced by writeMany(), and writeObj().

23  {
24  for (unsigned int i = 0, n = T::width; i < n; i += 32) {
25  ap_uint<32> word = src(std::min(i + 31, n - 1), i);
26  uint32_t w32 = word.to_uint();
27  if (!writeVar(w32, to))
28  return false;
29  }
30  return true;
31  }
uint64_t word
bool writeVar(const T &src, std::fstream &to)
Definition: emulator_io.h:11

◆ writeMany() [1/2]

template<typename T >
bool l1ct::writeMany ( const std::vector< T > &  objs,
std::fstream &  to 
)

Definition at line 60 of file emulator_io.h.

References mps_fire::i, contentValuesFiles::number, HLTEGTnPMonitor_cfi::objs, and writeVar().

60  {
61  uint32_t number = objs.size();
62  writeVar(number, to);
63  for (uint32_t i = 0; i < number; ++i) {
64  objs[i].write(to);
65  }
66  return to.good();
67  }
bool writeVar(const T &src, std::fstream &to)
Definition: emulator_io.h:11

◆ writeMany() [2/2]

template<int NB>
bool l1ct::writeMany ( const std::vector< ap_uint< NB >> &  objs,
std::fstream &  to 
)

Definition at line 70 of file emulator_io.h.

References mps_fire::i, contentValuesFiles::number, HLTEGTnPMonitor_cfi::objs, writeAP(), and writeVar().

70  {
71  uint32_t number = objs.size();
72  writeVar(number, to);
73  for (uint32_t i = 0; i < number; ++i) {
74  writeAP(objs[i], to);
75  }
76  return to.good();
77  }
bool writeAP(const T &src, std::fstream &to)
Definition: emulator_io.h:23
bool writeVar(const T &src, std::fstream &to)
Definition: emulator_io.h:11

◆ writeObj()

template<typename T >
bool l1ct::writeObj ( const T obj,
std::fstream &  to 
)

Definition at line 46 of file emulator_io.h.

References getGTfromDQMFile::obj, and writeAP().

46  {
47  return writeAP(obj.pack(), to);
48  }
bool writeAP(const T &src, std::fstream &to)
Definition: emulator_io.h:23

◆ writeVar()

template<typename T >
bool l1ct::writeVar ( const T src,
std::fstream &  to 
)
inline

Definition at line 11 of file emulator_io.h.

References TrackRefitter_38T_cff::src.

Referenced by writeAP(), and writeMany().

11  {
12  to.write(reinterpret_cast<const char *>(&src), sizeof(T));
13  return to.good();
14  }
long double T