/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/CTPPSDigi/src/CTPPSDiamondDigi.cc
24 строки
855 B
Laurent Forthomme
Removed all get from PPS digi objects
23 окт 2019, 19:06
23 окт 2019, 19:06
4750e1b
Код
Авторство
О чём код?
/** \file * * * \author Seyed Mohsen Etesami */ #include <DataFormats/CTPPSDigi/interface/CTPPSDiamondDigi.h> using namespace std; CTPPSDiamondDigi::CTPPSDiamondDigi( unsigned int ledgt_, unsigned int tedgt_, unsigned int threvolt_, bool mhit_, unsigned short hptdcerror_) : ledgt(ledgt_), tedgt(tedgt_), threvolt(threvolt_), mhit(mhit_), hptdcerror(HPTDCErrorFlags(hptdcerror_)) {} CTPPSDiamondDigi::CTPPSDiamondDigi() : ledgt(0), tedgt(0), threvolt(0), mhit(false), hptdcerror(HPTDCErrorFlags(0)) {} // Comparison bool CTPPSDiamondDigi::operator==(const CTPPSDiamondDigi& digi) const { if (ledgt != digi.leadingEdge() || tedgt != digi.trailingEdge() || threvolt != digi.thresholdVoltage() || mhit != digi.multipleHit() || hptdcerror.errorFlag() != digi.hptdcErrorFlags().errorFlag()) return false; else return true; }