Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dune::PennMicroSlice::Payload_Trigger Struct Reference

Trigger description. More...

#include <PennMicroSlice.hh>

Public Types

typedef uint32_t trigger_type_t
 
typedef uint16_t data_size_t
 

Public Member Functions

bool has_muon_trigger ()
 
bool has_external_trigger ()
 
bool has_calibration ()
 
bool has_external_trigger (trigger_type_t t)
 
bool has_ssp_trigger ()
 
bool has_I09 ()
 
bool has_I10 ()
 
bool has_I12 ()
 
bool has_calibration (trigger_type_t t)
 
bool has_C1 ()
 
bool has_C2 ()
 
bool has_C3 ()
 
bool has_C4 ()
 
bool has_muon_trigger (trigger_type_t t)
 
bool has_muon_TA ()
 
bool has_muon_TB ()
 
bool has_muon_TC ()
 
bool has_muon_TD ()
 
bool has_muon_TE ()
 
bool has_muon_TF ()
 
bool has_muon_TG ()
 
bool has_muon_TH ()
 
bool has_muon_bsu_rm_cl ()
 
bool has_muon_tsu_sl_nu ()
 
bool has_muon_tsu_su_nl ()
 
bool has_muon_tsu_el_wu ()
 

Static Public Member Functions

static std::string getTriggerTypeName (trigger_type_t trigger_type)
 

Public Attributes

trigger_type_t padding_low: 8
 
trigger_type_t trigger_id_ext: 4
 
trigger_type_t trigger_id_calib: 4
 
trigger_type_t trigger_id_muon: 8
 
trigger_type_t trigger_type: 5
 
trigger_type_t padding_high: 3
 

Static Public Attributes

static data_size_t const num_bits_padding_low = 8
 
static data_size_t const num_bits_trigger_id_ext = 4
 
static data_size_t const num_bits_trigger_id_calib = 4
 
static data_size_t const num_bits_trigger_id_muon = 8
 
static data_size_t const num_bits_trigger_type = 5
 
static data_size_t const num_bits_padding_high = 3
 
static trigger_type_t const muon = 0x10
 
static trigger_type_t const external = 0x08
 
static trigger_type_t const calibration = 0x04
 
static trigger_type_t const I01_08 = 0x8
 
static trigger_type_t const ssp = 0x8
 
static trigger_type_t const I09 = 0x4
 
static trigger_type_t const I10 = 0x2
 
static trigger_type_t const I12 = 0x1
 
static trigger_type_t const C1 = 0x8
 
static trigger_type_t const C2 = 0x4
 
static trigger_type_t const C3 = 0x2
 
static trigger_type_t const C4 = 0x1
 
static trigger_type_t const TA = 0x80
 
static trigger_type_t const TB = 0x40
 
static trigger_type_t const TC = 0x20
 
static trigger_type_t const TD = 0x10
 
static trigger_type_t const TE = 0x08
 
static trigger_type_t const TF = 0x04
 
static trigger_type_t const TG = 0x02
 
static trigger_type_t const TH = 0x01
 
static trigger_type_t const bsu_rm_cl = 0x80
 
static trigger_type_t const tsu_sl_nu = 0x40
 
static trigger_type_t const tsu_su_nl = 0x20
 
static trigger_type_t const tsu_el_wu = 0x10
 
static size_t const size_bytes = sizeof(uint32_t)
 
static size_t const size_u32 = size_bytes/sizeof(uint32_t)
 
static size_t const ptb_offset_u32 = 2
 
static size_t const ptb_offset_bytes = ptb_offset_u32*sizeof(uint32_t)
 
static size_t const payload_offset_u32 = 1+ptb_offset_u32
 
static size_t const payload_offset_bytes = payload_offset_u32*sizeof(uint32_t)
 

Detailed Description

Trigger description.

Definition at line 360 of file PennMicroSlice.hh.

Member Typedef Documentation

Definition at line 362 of file PennMicroSlice.hh.

Definition at line 361 of file PennMicroSlice.hh.

Member Function Documentation

static std::string dune::PennMicroSlice::Payload_Trigger::getTriggerTypeName ( trigger_type_t  trigger_type)
inlinestatic

Definition at line 564 of file PennMicroSlice.hh.

564  {
565  switch (trigger_type) {
566  case calibration:
567  return "calibration";
568  break;
569  case external:
570  return "external";
571  break;
572  case muon :
573  return "muon";
574  break;
575  default:
576  return "unknown";
577  break;
578  }
579  return "";
580  }
static trigger_type_t const external
static trigger_type_t const muon
static trigger_type_t const calibration
bool dune::PennMicroSlice::Payload_Trigger::has_C1 ( )
inline

Definition at line 500 of file PennMicroSlice.hh.

500  {
501  return ((trigger_id_calib & C1) != 0);
502  }
class C1 in group 1
Definition: group.cpp:7
bool dune::PennMicroSlice::Payload_Trigger::has_C2 ( )
inline

Definition at line 503 of file PennMicroSlice.hh.

503  {
504  return ((trigger_id_calib & C2) != 0);
505  }
class C2 in group 1
Definition: group.cpp:10
bool dune::PennMicroSlice::Payload_Trigger::has_C3 ( )
inline

Definition at line 506 of file PennMicroSlice.hh.

506  {
507  return ((trigger_id_calib & C3) != 0);
508  }
class C3 in group 2
Definition: group.cpp:35
bool dune::PennMicroSlice::Payload_Trigger::has_C4 ( )
inline

Definition at line 509 of file PennMicroSlice.hh.

509  {
510  return ((trigger_id_calib & C4) != 0);
511  }
class C4 in group 2
Definition: group.cpp:40
bool dune::PennMicroSlice::Payload_Trigger::has_calibration ( )
inline

Definition at line 469 of file PennMicroSlice.hh.

469  {
470  return ((trigger_type & calibration) != 0x0);
471  }
static trigger_type_t const calibration
bool dune::PennMicroSlice::Payload_Trigger::has_calibration ( trigger_type_t  t)
inline

Test for the different calibration types

Definition at line 496 of file PennMicroSlice.hh.

496  {
497  return ((trigger_id_calib & t) != 0x0);
498  }
bool dune::PennMicroSlice::Payload_Trigger::has_external_trigger ( )
inline

Definition at line 466 of file PennMicroSlice.hh.

466  {
467  return ((trigger_type & external) != 0x0);
468  }
static trigger_type_t const external
bool dune::PennMicroSlice::Payload_Trigger::has_external_trigger ( trigger_type_t  t)
inline

Definition at line 475 of file PennMicroSlice.hh.

475  {
476  return ((trigger_id_ext & t) != 0x0);
477  }
bool dune::PennMicroSlice::Payload_Trigger::has_I09 ( )
inline

Definition at line 482 of file PennMicroSlice.hh.

482  {
483  return ((trigger_id_ext & I09) != 0x0);
484  }
static trigger_type_t const I09
bool dune::PennMicroSlice::Payload_Trigger::has_I10 ( )
inline

Definition at line 485 of file PennMicroSlice.hh.

485  {
486  return ((trigger_id_ext & I10) != 0x0);
487  }
static trigger_type_t const I10
bool dune::PennMicroSlice::Payload_Trigger::has_I12 ( )
inline

Definition at line 488 of file PennMicroSlice.hh.

488  {
489  return ((trigger_id_ext & I12) != 0x0);
490  }
static trigger_type_t const I12
bool dune::PennMicroSlice::Payload_Trigger::has_muon_bsu_rm_cl ( )
inline

Test the different muon trigger types

Definition at line 546 of file PennMicroSlice.hh.

546  {
547  return ((trigger_id_muon & bsu_rm_cl) != 0);
548  }
static trigger_type_t const bsu_rm_cl
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TA ( )
inline

Definition at line 519 of file PennMicroSlice.hh.

519  {
520  return ((trigger_id_muon & TA) != 0);
521  }
static trigger_type_t const TA
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TB ( )
inline

Definition at line 522 of file PennMicroSlice.hh.

522  {
523  return ((trigger_id_muon & TB) != 0);
524  }
static trigger_type_t const TB
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TC ( )
inline

Definition at line 525 of file PennMicroSlice.hh.

525  {
526  return ((trigger_id_muon & TC) != 0);
527  }
static trigger_type_t const TC
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TD ( )
inline

Definition at line 528 of file PennMicroSlice.hh.

528  {
529  return ((trigger_id_muon & TD) != 0);
530  }
static trigger_type_t const TD
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TE ( )
inline

Definition at line 531 of file PennMicroSlice.hh.

531  {
532  return ((trigger_id_muon & TE) != 0);
533  }
static trigger_type_t const TE
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TF ( )
inline

Definition at line 534 of file PennMicroSlice.hh.

534  {
535  return ((trigger_id_muon & TF) != 0);
536  }
static trigger_type_t const TF
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TG ( )
inline

Definition at line 537 of file PennMicroSlice.hh.

537  {
538  return ((trigger_id_muon & TG) != 0);
539  }
static trigger_type_t const TG
bool dune::PennMicroSlice::Payload_Trigger::has_muon_TH ( )
inline

Definition at line 540 of file PennMicroSlice.hh.

540  {
541  return ((trigger_id_muon & TH) != 0);
542  }
static trigger_type_t const TH
bool dune::PennMicroSlice::Payload_Trigger::has_muon_trigger ( )
inline

Bunch of auxiliary functions to help parse the word

Definition at line 463 of file PennMicroSlice.hh.

463  {
464  return ((trigger_type & muon) != 0x0);
465  }
static trigger_type_t const muon
bool dune::PennMicroSlice::Payload_Trigger::has_muon_trigger ( trigger_type_t  t)
inline

Test the different muon trigger types

Definition at line 515 of file PennMicroSlice.hh.

515  {
516  return ((trigger_id_muon & t) != 0x0);
517  }
bool dune::PennMicroSlice::Payload_Trigger::has_muon_tsu_el_wu ( )
inline

Definition at line 555 of file PennMicroSlice.hh.

555  {
556  return ((trigger_id_muon & tsu_el_wu) != 0);
557  }
static trigger_type_t const tsu_el_wu
bool dune::PennMicroSlice::Payload_Trigger::has_muon_tsu_sl_nu ( )
inline

Definition at line 549 of file PennMicroSlice.hh.

549  {
550  return ((trigger_id_muon & tsu_sl_nu) != 0);
551  }
static trigger_type_t const tsu_sl_nu
bool dune::PennMicroSlice::Payload_Trigger::has_muon_tsu_su_nl ( )
inline

Definition at line 552 of file PennMicroSlice.hh.

552  {
553  return ((trigger_id_muon & tsu_su_nl) != 0);
554  }
static trigger_type_t const tsu_su_nl
bool dune::PennMicroSlice::Payload_Trigger::has_ssp_trigger ( )
inline

Definition at line 479 of file PennMicroSlice.hh.

479  {
480  return ((trigger_id_ext & ssp) != 0x0);
481  }
static trigger_type_t const ssp

Member Data Documentation

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::bsu_rm_cl = 0x80
static

Definition at line 442 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::C1 = 0x8
static

Definition at line 420 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::C2 = 0x4
static

Definition at line 421 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::C3 = 0x2
static

Definition at line 422 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::C4 = 0x1
static

Definition at line 423 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::calibration = 0x04
static

Definition at line 405 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::external = 0x08
static

Definition at line 404 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::I01_08 = 0x8
static

Definition at line 409 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::I09 = 0x4
static

Definition at line 411 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::I10 = 0x2
static

Definition at line 412 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::I12 = 0x1
static

Definition at line 413 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::muon = 0x10
static

Old map static trigger_type_t const calibration = 0x00; //00000 static trigger_type_t const muon = 0x10; //10000 static trigger_type_t const ssp = 0x08; //01000 – This should probably be split into RCE and then RCE types static trigger_type_t const rce_1 = 0x01; //00001 static trigger_type_t const rce_2 = 0x02; //00010 static trigger_type_t const rce_12 = 0x03; //00011 static trigger_type_t const rce_3 = 0x04; //00100 static trigger_type_t const rce_13 = 0x05; //00101 static trigger_type_t const rce_23 = 0x06; //00110 static trigger_type_t const rce_123 = 0x07; //00111

Definition at line 403 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_padding_high = 3
static

Definition at line 381 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_padding_low = 8
static

Definition at line 376 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_trigger_id_calib = 4
static

Definition at line 378 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_trigger_id_ext = 4
static

Definition at line 377 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_trigger_id_muon = 8
static

Definition at line 379 of file PennMicroSlice.hh.

data_size_t const dune::PennMicroSlice::Payload_Trigger::num_bits_trigger_type = 5
static

Definition at line 380 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::padding_high

Definition at line 374 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::padding_low

Definition at line 365 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::payload_offset_bytes = payload_offset_u32*sizeof(uint32_t)
static

Definition at line 457 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::payload_offset_u32 = 1+ptb_offset_u32
static

Definition at line 456 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::ptb_offset_bytes = ptb_offset_u32*sizeof(uint32_t)
static

Definition at line 453 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::ptb_offset_u32 = 2
static

Definition at line 452 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::size_bytes = sizeof(uint32_t)
static

Definition at line 447 of file PennMicroSlice.hh.

size_t const dune::PennMicroSlice::Payload_Trigger::size_u32 = size_bytes/sizeof(uint32_t)
static

Definition at line 448 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::ssp = 0x8
static

Definition at line 410 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TA = 0x80
static

Definition at line 433 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TB = 0x40
static

Definition at line 434 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TC = 0x20
static

Definition at line 435 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TD = 0x10
static

Definition at line 436 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TE = 0x08
static

Definition at line 437 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TF = 0x04
static

Definition at line 438 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TG = 0x02
static

Definition at line 439 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::TH = 0x01
static

Definition at line 440 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::trigger_id_calib

Definition at line 371 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::trigger_id_ext

Definition at line 370 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::trigger_id_muon

Definition at line 372 of file PennMicroSlice.hh.

trigger_type_t dune::PennMicroSlice::Payload_Trigger::trigger_type

Definition at line 373 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::tsu_el_wu = 0x10
static

Definition at line 445 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::tsu_sl_nu = 0x40
static

Definition at line 443 of file PennMicroSlice.hh.

trigger_type_t const dune::PennMicroSlice::Payload_Trigger::tsu_su_nl = 0x20
static

Definition at line 444 of file PennMicroSlice.hh.


The documentation for this struct was generated from the following file: