5 int ieta,
int iphi,
int nsamples,
int whichSampleTriggered,
int databits) {
16 }
else if ((databits >>
nsamples) != 0x0000) {
18 <<
"nsamples " <<
nsamples <<
" and databits " << databits <<
"caused specified extra bits (" 19 << (databits >>
nsamples) <<
") to be out of nsamples range.";
29 if ((whichbit < 0) || (whichbit >
nsamples())) {
30 edm::LogWarning(
"HOTriggerPrimitiveDigi") <<
"value " << whichbit <<
" of sample bit requested out of range.";
33 return ((
theHO_TP >> (20 + whichbit)) & 0x0001);
38 s <<
"(HO TP " << HOtpd.
ieta() <<
", " << HOtpd.
iphi() <<
", ";
int ieta() const
get the signed ieta value
int whichSampleTriggered() const
get the number of the triggering sample
int iphi() const
get the iphi value
bool data(int whichbit=HO_TP_SAMPLES_MAX) const
static const int HO_TP_SAMPLES_MAX
Abs< T >::type abs(const T &t)
int nsamples() const
get the number of samples used to compute the TP
std::ostream & operator<<(std::ostream &s, const HOTriggerPrimitiveDigi &HOtpd)
Log< level::Warning, false > LogWarning