test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Enumerations | Functions | Variables
evf::evtn Namespace Reference

Classes

union  sizes
 
class  TCDSBST
 
class  TCDSHeader
 
class  TCDSL1AHistory
 
class  TCDSRecord
 

Enumerations

enum  EvmRecordScheme { BST32_3BX = 34 * SLINK_WORD_SIZE, BST32_5BX = 48 * SLINK_WORD_SIZE, BST52_3BX = 37 * SLINK_WORD_SIZE, BST52_5BX = 51 * SLINK_WORD_SIZE }
 

Functions

bool daq_board_sense (const unsigned char *p)
 
bool evm_board_sense (const unsigned char *p, size_t size)
 
void evm_board_setformat (size_t size)
 
bool evm_tcs_board_sense (const unsigned char *p)
 
unsigned int get (const unsigned char *, bool)
 
unsigned int getevtyp (const unsigned char *)
 
unsigned int getfdlbx (const unsigned char *)
 
unsigned int getfdlpsc (const unsigned char *)
 
unsigned long long getfdlta1 (const unsigned char *)
 
unsigned long long getfdlta2 (const unsigned char *)
 
unsigned long long getfdlttr (const unsigned char *)
 
unsigned int getgpshigh (const unsigned char *)
 
unsigned int getgpslow (const unsigned char *)
 
unsigned int getlbn (const unsigned char *)
 
unsigned int getorbit (const unsigned char *)
 
bool gtpe_board_sense (const unsigned char *p)
 
unsigned int gtpe_get (const unsigned char *)
 
unsigned int gtpe_getbx (const unsigned char *)
 
unsigned int gtpe_getlbn (const unsigned char *)
 
unsigned int gtpe_getorbit (const unsigned char *)
 
edm::EventAuxiliary makeEventAuxiliary (TCDSRecord *record, unsigned int runNumber, unsigned int lumiSection, std::string const &processGUID)
 
unsigned int offset (bool)
 

Variables

const unsigned int DAQ_BOARDID_MASK = 0xffff0000
 
const unsigned int DAQ_BOARDID_OFFSET = 1
 
const unsigned int DAQ_BOARDID_SHIFT = 24
 
const unsigned int DAQ_BOARDID_VALUE = 0x11
 
const unsigned int DAQ_TOTTRG_OFFSET = 2
 
const unsigned int EVM_BOARDID_MASK = 0xffff0000
 
const unsigned int EVM_BOARDID_OFFSET = 1
 
const unsigned int EVM_BOARDID_SHIFT = 24
 
const unsigned int EVM_BOARDID_VALUE = 0x11
 
const unsigned int EVM_FDL_ALGOB1_OFFSET = 4
 
const unsigned int EVM_FDL_ALGOB2_OFFSET = 6
 
const unsigned int EVM_FDL_BCNRIN_OFFSET = 1
 
const unsigned int EVM_FDL_BLOCK = 7
 
const unsigned int EVM_FDL_PSCVSN_OFFSET = 11
 
const unsigned int EVM_FDL_TECTRG_OFFSET = 2
 
const unsigned int EVM_GTFE_BLOCK_V0000 = 6
 
const unsigned int EVM_GTFE_BLOCK_V0011 = 9
 
const unsigned int EVM_GTFE_BSTGPS_OFFSET = 4
 
const unsigned int EVM_TCS_BCNRIN_MASK = 0x00000fff
 
const unsigned int EVM_TCS_BLOCK = 5
 
const unsigned int EVM_TCS_BOARDID_MASK = 0xffff0000
 
const unsigned int EVM_TCS_BOARDID_OFFSET = 1
 
const unsigned int EVM_TCS_BOARDID_SHIFT = 16
 
const unsigned int EVM_TCS_BOARDID_VALUE = 0xcc07
 
const unsigned int EVM_TCS_EVNTYP_MASK = 0x00f00000
 
const unsigned int EVM_TCS_EVNTYP_SHIFT = 20
 
const unsigned int EVM_TCS_LSBLNR_MASK = 0x0000ffff
 
const unsigned int EVM_TCS_LSBLNR_OFFSET = 0
 
const unsigned int EVM_TCS_ORBTNR_OFFSET = 6
 
const unsigned int EVM_TCS_TRIGNR_OFFSET = 5
 
const unsigned int FED_HEADER_SIZE = SLINK_WORD_SIZE
 
const unsigned int FED_TRAILER_SIZE = SLINK_WORD_SIZE
 
const unsigned int GTPE_BCNRIN_MASK = 0x00000fff
 
const unsigned int GTPE_BCNRIN_OFFSET = 3
 
const unsigned int GTPE_BOARDID_MASK = 0x000000ff
 
const unsigned int GTPE_BOARDID_OFFSET = 16
 
const unsigned int GTPE_BOARDID_SHIFT = 0
 
const unsigned int GTPE_BOARDID_VALUE = 0x1
 
const unsigned int GTPE_ORBTNR_OFFSET = 18
 
const unsigned int GTPE_TRIGNR_OFFSET = 14
 
const unsigned int SLINK_HALFWORD_SIZE = 4
 
const unsigned int SLINK_WORD_SIZE = 8
 

Enumeration Type Documentation

Enumerator
BST32_3BX 
BST32_5BX 
BST52_3BX 
BST52_5BX 

Definition at line 19 of file GlobalEventNumber.h.

Function Documentation

bool evf::evtn::daq_board_sense ( const unsigned char *  p)
inline

Definition at line 67 of file GlobalEventNumber.h.

References DAQ_BOARDID_OFFSET, DAQ_BOARDID_SHIFT, DAQ_BOARDID_VALUE, and SLINK_WORD_SIZE.

68  {
69  return (*(unsigned int*)(p + sizeof(fedh_t) + DAQ_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> DAQ_BOARDID_SHIFT) == DAQ_BOARDID_VALUE;
70  }
const unsigned int DAQ_BOARDID_SHIFT
const unsigned int DAQ_BOARDID_OFFSET
#define SLINK_WORD_SIZE
const unsigned int DAQ_BOARDID_VALUE
bool evf::evtn::evm_board_sense ( const unsigned char *  p,
size_t  size 
)

Definition at line 7 of file GlobalEventNumber.cc.

References BST32_3BX, BST32_5BX, BST52_3BX, BST52_5BX, EVM_BOARDID_OFFSET, EVM_BOARDID_SHIFT, EVM_BOARDID_VALUE, EVM_GTFE_BLOCK_V0000, EVM_GTFE_BLOCK_V0011, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

8  {
9  switch(size){
10  case BST32_3BX:
11  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
12  EVM_FDL_NOBX = 3;
13  break;
14  case BST32_5BX:
15  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
16  EVM_FDL_NOBX = 5;
17  break;
18  case BST52_3BX:
19  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
20  EVM_FDL_NOBX = 3;
21  break;
22  case BST52_5BX:
23  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
24  EVM_FDL_NOBX = 5;
25  break;
26  default:
27  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
28  EVM_FDL_NOBX = 3;
29  }
30  return (*(const unsigned int*)(p + sizeof(fedh_t) + EVM_BOARDID_OFFSET * SLINK_WORD_SIZE / 2) >> EVM_BOARDID_SHIFT) == EVM_BOARDID_VALUE;
31  }
const unsigned int EVM_GTFE_BLOCK_V0000
const unsigned int EVM_BOARDID_VALUE
#define SLINK_WORD_SIZE
const unsigned int EVM_GTFE_BLOCK_V0011
const unsigned int EVM_BOARDID_OFFSET
const unsigned int EVM_BOARDID_SHIFT
tuple size
Write out results.
void evf::evtn::evm_board_setformat ( size_t  size)

Definition at line 40 of file GlobalEventNumber.cc.

References BST32_3BX, BST32_5BX, BST52_3BX, BST52_5BX, EVM_GTFE_BLOCK_V0000, and EVM_GTFE_BLOCK_V0011.

Referenced by BxNumberFilter::filter().

41  {
42  switch(size){
43  case BST32_3BX:
44  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
45  EVM_FDL_NOBX = 3;
46  break;
47  case BST32_5BX:
48  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
49  EVM_FDL_NOBX = 5;
50  break;
51  case BST52_3BX:
52  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
53  EVM_FDL_NOBX = 3;
54  break;
55  case BST52_5BX:
56  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0011;
57  EVM_FDL_NOBX = 5;
58  break;
59  default:
60  EVM_GTFE_BLOCK = EVM_GTFE_BLOCK_V0000;
61  EVM_FDL_NOBX = 3;
62  }
63  }
const unsigned int EVM_GTFE_BLOCK_V0000
const unsigned int EVM_GTFE_BLOCK_V0011
tuple size
Write out results.
bool evf::evtn::evm_tcs_board_sense ( const unsigned char *  p)

Definition at line 32 of file GlobalEventNumber.cc.

References EVM_TCS_BOARDID_OFFSET, EVM_TCS_BOARDID_SHIFT, EVM_TCS_BOARDID_VALUE, and SLINK_WORD_SIZE.

Referenced by get().

32  {
33  return (*(const unsigned int*)(p + sizeof(fedh_t) +
34  (EVM_GTFE_BLOCK*2 + EVM_TCS_BOARDID_OFFSET)
35  * SLINK_WORD_SIZE / 2)
37 
38  }
const unsigned int EVM_TCS_BOARDID_VALUE
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BOARDID_SHIFT
const unsigned int EVM_TCS_BOARDID_OFFSET
unsigned int evf::evtn::get ( const unsigned char *  p,
bool  evm 
)

Definition at line 73 of file GlobalEventNumber.cc.

References evm_tcs_board_sense(), offset(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by test::GlobalNumbersAnalysis::analyze(), FedRawDataInputSource::fillFEDRawDataCollection(), BxNumberFilter::filter(), and FRDStreamSource::setRunAndEventInfo().

74  {
75  if(evm && evm_tcs_board_sense(p))
76  return *(const unsigned int*)( p+offset(true));
77  else
78  return *(const unsigned int*)( p+offset(false)); // cover case of evm but invalid tcs info
79  }
unsigned int offset(bool)
bool evm_tcs_board_sense(const unsigned char *p)
unsigned int evf::evtn::getevtyp ( const unsigned char *  p)

Definition at line 105 of file GlobalEventNumber.cc.

References EVM_TCS_EVNTYP_MASK, EVM_TCS_EVNTYP_SHIFT, EVM_TCS_LSBLNR_OFFSET, and SLINK_WORD_SIZE.

106  {
107  return (((*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
109  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_EVNTYP_SHIFT
const unsigned int EVM_TCS_EVNTYP_MASK
unsigned int evf::evtn::getfdlbx ( const unsigned char *  p)

Definition at line 114 of file GlobalEventNumber.cc.

References EVM_FDL_BCNRIN_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BCNRIN_MASK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

115  {
116  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
117  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2) ) * SLINK_WORD_SIZE +
119  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_BCNRIN_OFFSET
const unsigned int EVM_TCS_BCNRIN_MASK
unsigned int evf::evtn::getfdlpsc ( const unsigned char *  p)

Definition at line 124 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_PSCVSN_OFFSET, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze().

125  {
126  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
127  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
129  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_PSCVSN_OFFSET
unsigned long long evf::evtn::getfdlta1 ( const unsigned char *  p)

Definition at line 136 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB1_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

137  {
138  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
139  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
141  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_ALGOB1_OFFSET
unsigned long long evf::evtn::getfdlta2 ( const unsigned char *  p)

Definition at line 142 of file GlobalEventNumber.cc.

References EVM_FDL_ALGOB2_OFFSET, EVM_FDL_BLOCK, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

143  {
144  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
145  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
147  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_ALGOB2_OFFSET
unsigned long long evf::evtn::getfdlttr ( const unsigned char *  p)

Definition at line 130 of file GlobalEventNumber.cc.

References EVM_FDL_BLOCK, EVM_FDL_TECTRG_OFFSET, EVM_TCS_BLOCK, SLINK_HALFWORD_SIZE, and SLINK_WORD_SIZE.

131  {
132  return (*(const unsigned long long*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK + EVM_TCS_BLOCK
133  + EVM_FDL_BLOCK * (EVM_FDL_NOBX/2)) * SLINK_WORD_SIZE +
135  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int EVM_FDL_BLOCK
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_BLOCK
const unsigned int EVM_FDL_TECTRG_OFFSET
unsigned int evf::evtn::getgpshigh ( const unsigned char *  p)
unsigned int evf::evtn::getgpslow ( const unsigned char *  p)
unsigned int evf::evtn::getlbn ( const unsigned char *  p)

Definition at line 84 of file GlobalEventNumber.cc.

References EVM_TCS_LSBLNR_MASK, EVM_TCS_LSBLNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

85  {
86  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_LSBLNR_OFFSET) * SLINK_WORD_SIZE / 2))
88  }
const unsigned int EVM_TCS_LSBLNR_OFFSET
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_LSBLNR_MASK
unsigned int evf::evtn::getorbit ( const unsigned char *  p)

Definition at line 101 of file GlobalEventNumber.cc.

References EVM_TCS_ORBTNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and BxNumberFilter::filter().

102  {
103  return (*(const unsigned int*)( p+sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_ORBTNR_OFFSET) * SLINK_WORD_SIZE / 2));
104  }
#define SLINK_WORD_SIZE
const unsigned int EVM_TCS_ORBTNR_OFFSET
bool evf::evtn::gtpe_board_sense ( const unsigned char *  p)
inline
unsigned int evf::evtn::gtpe_get ( const unsigned char *  p)

Definition at line 80 of file GlobalEventNumber.cc.

References GTPE_TRIGNR_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), FedRawDataInputSource::fillFEDRawDataCollection(), and FRDStreamSource::setRunAndEventInfo().

81  {
82  return *(const unsigned int*)( p + GTPE_TRIGNR_OFFSET*SLINK_HALFWORD_SIZE );
83  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int GTPE_TRIGNR_OFFSET
unsigned int evf::evtn::gtpe_getbx ( const unsigned char *  p)

Definition at line 120 of file GlobalEventNumber.cc.

References GTPE_BCNRIN_MASK, GTPE_BCNRIN_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze().

121  {
122  return (*(const unsigned int*)( p + GTPE_BCNRIN_OFFSET * SLINK_HALFWORD_SIZE)) & GTPE_BCNRIN_MASK;
123  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int GTPE_BCNRIN_MASK
const unsigned int GTPE_BCNRIN_OFFSET
unsigned int evf::evtn::gtpe_getlbn ( const unsigned char *  p)

Definition at line 89 of file GlobalEventNumber.cc.

References gtpe_getorbit().

Referenced by test::GlobalNumbersAnalysis::analyze().

90  {
91  return gtpe_getorbit(p)/0x00100000;
92  }
unsigned int gtpe_getorbit(const unsigned char *)
unsigned int evf::evtn::gtpe_getorbit ( const unsigned char *  p)

Definition at line 110 of file GlobalEventNumber.cc.

References GTPE_ORBTNR_OFFSET, and SLINK_HALFWORD_SIZE.

Referenced by test::GlobalNumbersAnalysis::analyze(), and gtpe_getlbn().

111  {
112  return (*(const unsigned int*)( p + GTPE_ORBTNR_OFFSET * SLINK_HALFWORD_SIZE));
113  }
const unsigned int SLINK_HALFWORD_SIZE
Definition: FEDConstants.h:7
const unsigned int GTPE_ORBTNR_OFFSET
edm::EventAuxiliary evf::evtn::makeEventAuxiliary ( TCDSRecord *  record,
unsigned int  runNumber,
unsigned int  lumiSection,
std::string const &  processGUID 
)

Definition at line 5 of file AuxiliaryMakers.cc.

References evf::evtn::TCDSHeader::tcdsheader::bcid, evf::evtn::TCDSHeader::tcdsheader::eventNumber, evf::evtn::TCDSL1AHistory::l1a::eventtype, evf::evtn::TCDSBST::getBST(), evf::evtn::TCDSRecord::getBST(), evf::evtn::TCDSHeader::getData(), evf::evtn::TCDSRecord::getHeader(), evf::evtn::TCDSRecord::getHistory(), evf::evtn::TCDSBST::bst::gpstimehigh, evf::evtn::TCDSBST::bst::gpstimelow, evf::evtn::TCDSHeader::tcdsheader::header, evf::evtn::TCDSL1AHistory::l1h::hist, evf::evtn::TCDSL1AHistory::history(), edm::EventAuxiliary::invalidStoreNumber, and evf::evtn::TCDSHeader::tcdsheader::orbitLow.

Referenced by FedRawDataInputSource::read().

8  {
9  edm::EventID eventId(runNumber, // check that runnumber from record is consistent
10  //record->getHeader().getData().header.lumiSection,//+1
11  lumiSection,
12  record->getHeader().getData().header.eventNumber);
13 
14  uint64_t gpsh = record->getBST().getBST().gpstimehigh;
15  uint32_t gpsl = record->getBST().getBST().gpstimelow;
16  edm::Timestamp tstamp = edm::Timestamp(static_cast<edm::TimeValue_t> ((gpsh << 32) + gpsl));
17  return edm::EventAuxiliary(eventId,
18  processGUID,
19  tstamp,
20  true,
21  (edm::EventAuxiliary::ExperimentType)record->getHistory().history().hist[0].eventtype,
22  (int)record->getHeader().getData().header.bcid,
24  record->getHeader().getData().header.orbitLow);
25  }
JetCorrectorParameters::Record record
Definition: classes.h:7
unsigned long long uint64_t
Definition: Time.h:15
static int const invalidStoreNumber
unsigned int evf::evtn::offset ( bool  evm)

Definition at line 66 of file GlobalEventNumber.cc.

References DAQ_TOTTRG_OFFSET, EVM_TCS_TRIGNR_OFFSET, and SLINK_WORD_SIZE.

Referenced by FWItemAccessorFactory::accessorFor(), FBaseSimEvent::addParticles(), ora::DataElement::address(), DCCEETCCBlock::addTriggerPrimitivesToCollection(), CaloTowerGeometry::alignmentTransformIndexLocal(), DTTPAnalyzer::analyze(), DTTTrigCalibration::analyze(), L1TBPTX::analyze(), PhysicsTools::SourceVariableSet::append(), RPCDaqInfo::beginJob(), RPCNoisyStripTest::beginRun(), RPCBxTest::beginRun(), RPCDataCertification::beginRun(), RPCDCSSummary::beginRun(), RPCOccupancyTest::beginRun(), RPCDeadChannelTest::beginRun(), RPCMultiplicityTest::beginRun(), RPCClusterSizeTest::beginRun(), MagGeoBuilderFromDDD::bLayer::bLayer(), GctFormatTranslateV38::blockToGctEmCandsAndEnergySums(), GctFormatTranslateV35::blockToGctInternEmCand(), GctFormatTranslateV38::blockToGctInternEmCand(), ecaldqm::MESetDet1D::book(), ora::CArrayWriter::build(), ora::QueryableVectorWriter::build(), ora::STLContainerWriter::build(), FWRPCDigiProxyBuilder::build(), FWGEMDigiProxyBuilder::build(), ora::QueryableVectorUpdater::build(), MagGeoBuilderFromDDD::build(), ora::CArrayReader::build(), ora::STLContainerReader::build(), DDG4Builder::BuildGeometry(), lumi::LumiSectionData::bunchCrossingInfo(), L1GctJetFinderBase::calcHfSums(), pftools::Exercises3::calibrateCalibratables(), fireworks::Context::caloR1(), fireworks::Context::caloR2(), fireworks::Context::caloZ1(), fireworks::Context::caloZ2(), ConfigurationDBHandler::characters(), lhef::LHEReader::XMLHandler::characters(), FWItemAccessorFactory::classAccessedAsCollection(), CaloSD::cleanHitCollection(), RodPlaneBuilderFromDet::computeBounds(), TMarkov::computeChain(), tauImpactParameter::TauA1NuConstrainedFitter::ComputeInitalExpPar(), TFParams::computePulseWidth(), PlaneBuilderForGluedDet::computeRectBounds(), EcalUncalibRecHitRatioMethodAlgo< C >::computeTime(), MuonHOAcceptance::convertRegions(), L1JPTOffsetCorrector::correction(), EcalGlobalShowerContainmentCorrectionsVsEta::correction(), EcalShowerContainmentCorrections::correctionXY(), EmDQM::countSubstring(), RPCStripsRing::createRefConnections(), EcalElectronicsMapping::DCCid(), TEcnaParHistos::DeeNameOffsetX(), TEcnaParHistos::DeeNumberOffsetX(), TEcnaParHistos::DeeOffsetX(), PhysicsTools::VarProcessor::deriv(), DTDigiSyncTOFCorr::digitizerOffset(), edm::TrieNode< T >::display(), L1GctJetFinderBase::doEtSums(), EvolutionECAL::DoseLongitudinalProfile(), SiStripRecHitMatcher::doubleMatch(), PrintGeomInfoAction::dumpPV(), PrintGeomMatInfo::dumpPV(), EventWithHistoryProducerFromL1ABC::endRun(), APVCyclePhaseProducerFromL1ABC::endRun(), ESDataFrame::ESDataFrame(), PhysicsTools::VarProcessor::eval(), PhysicsTools::MVAComputer::evalInternal(), DDHCalXtalAlgo::execute(), EcalClusterEnergyCorrection::fBrem(), HiEgammaSCEnergyCorrectionAlgo::fBrem(), HiEgammaSCEnergyCorrectionAlgo::fEta(), EcalClusterEnergyCorrection::fEtEta(), HiEgammaSCEnergyCorrectionAlgo::fEtEta(), edm::IndexIntoFile::fillEventNumbersOrEntries(), GenParticleProducer::fillIndices(), LASPeakFinder::FindPeakIn(), CSCMotherboard::findQuality(), reco::GhostTrackFitter::fit(), TkLasBeamFitter::fitBeam(), ESDigitizerTraits::fix(), EcalSelectiveReadoutSuppressor::frame2Energy(), EcalSelectiveReadoutValidation::frame2EnergyForTp(), edm::Guid::fromString(), MuonDDDNumbering::geoHistoryToBaseNumber(), get(), HcalHistogramDigi::getArray(), edm::TypeWithDict::getBaseClassOffset(), EcalEndcapGeometry::getClosestCell(), pos::PixelGlobalDelay25::getDelay(), TkLasBeamFitter::getLasBeams(), MatacqProducer::getMatacqEvent(), LASProfileJudge::GetNegativity(), HcalDbOnline::getObject(), CaloTPGTranscoderULUT::getOutputLUTId(), HcalPedestalWidth::getSigma(), CastorPedestalWidth::getSigma(), HcalDTCHeader::getSlotData(), CastorCTDCHeader::getSpigotData(), HcalDCCHeader::getSpigotData(), pos::PixelGlobalDelay25::getTTCrxDelay(), EcalClusterEnergyUncertainty::getValue(), EcalClusterCrackCorrection::getValue(), HcalPedestalWidth::getWidth(), CastorPedestalWidth::getWidth(), gen::Herwig6Instance::give(), ecaldqm::binning::idFromName(), DDHCalXtalAlgo::initialize(), StMeasurementConditionSet::isMasked(), LASProfileJudge::IsNegativePeaksInProfile(), LASProfileJudge::IsOverdrive(), LASProfileJudge::IsPeaksInProfile(), LASProfileJudge::IsSignalIn(), LASProfileJudge::JudgeProfile(), ZSEnergy_impl::keepMe(), L1TBPTX::L1TBPTX(), fireworks::localSiStrip(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), LookInStream_SeekTo(), LookToRead_Skip(), LzmaDec_DecodeReal(), LzmaDec_TryDummy(), CastorDbHardcode::makeQIECoder(), CSCHitFromStripOnly::makeStripData(), L1GtVhdlWriterBitManager::mirror(), ora::DataElement::offset(), l1t::CaloStage2Nav::offsetIEta(), l1t::CaloStage2Nav::offsetIPhi(), CaloSamples::offsetTime(), CSCAnalogSignal::operator+=(), MomentumDependentPedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::parameterLabel(), pos::PixelROCName::parsename(), pos::PixelModuleName::parsename(), L1MuDTAssignmentUnit::phiDiff(), DTTrigGeom::phiSLOffset(), MuonErrorMatrix::Pindex(), pos::PixelFEDTestDAC::PixelFEDTestDAC(), edm::TypeWithDict::pointerToBaseType(), XrdFile::position(), XrdFile::prefetch(), File::prefetch(), CSCChamberTimeCorrectionsValues::prefill(), EMShower::prepareSteps(), HcalDigiMonitor::process_Digi(), HcalBeamMonitor::processEvent(), HcalTTPDigiProducer::produce(), GenParticleProducer::produce(), cms::SimpleTrackListMerger::produce(), ESDigiCollection::push_back(), MagneticFieldGrid::putCoordGetInd(), MagneticFieldGrid::putIndGetCoord(), QieShape::QieShape(), reco::castor::QieShape::QieShape(), Storage::readv(), XrdFile::readv(), XrdFile::readv_unpack(), edm::PoolOutputModule::reallyOpenFile(), EcalTBH2TDCRecInfoAlgo::reconstruct(), EcalTBTDCRecInfoAlgo::reconstruct(), L1MuDTEUX::run(), StMeasurementConditionSet::set128StripStatus(), BaseCrystal::setCorners(), CastorDataFrame::setFiberIdleOffset(), HFDataFrame::setFiberIdleOffset(), HcalCalibDataFrame::setFiberIdleOffset(), ZDCDataFrame::setFiberIdleOffset(), HBHEDataFrame::setFiberIdleOffset(), HODataFrame::setFiberIdleOffset(), reco::HitPattern::setHitPattern(), EcalRecHit::setMasked(), pftools::Erl_mlp::setOffsetAndSlope(), HcalPedestalWidth::setSigma(), CastorPedestalWidth::setSigma(), CSCAnalogSignal::setTimeOffset(), SimHitShifter::SimHitShifter(), CSCStripHitSim::simulate(), RPCSimAsymmetricCls::simulate(), edm::ProducerSourceBase::skip(), edm::RootFile::skipEvents(), edm::InputSource::skipEvents(), MedianCMNSubtractor::subtract_(), FastLinearCMNSubtractor::subtract_(), PercentileCMNSubtractor::subtract_(), IteratedMedianCMNSubtractor::subtract_(), cond::PayLoadInspector< DataT >::summary(), TStorageFactoryFile::SysSeek(), BeamMonitor::testScroll(), L1MuGMTMIAUPhiPro2LUT::TheLookupFunction(), TrapezoidalCartesianMFGrid::TrapezoidalCartesianMFGrid(), MuonIdTruthInfo::truthMatchMuon(), CastorCORData::unpackHistogram(), HcalHTRData::unpackHistogram(), LatencyHistosUsingDb::update(), HcaluLUTTPGCoder::update(), ValidateGeometry::validateCaloGeometry(), ValidateGeometry::validateRPCGeometry(), GctFormatTranslateMCLegacy::writeAllRctCaloRegionBlock(), GctFormatTranslateMCLegacy::writeGctOutEmAndEnergyBlock(), GctFormatTranslateMCLegacy::writeGctOutJetBlock(), Storage::writev(), and edm::helper::IndexRangeAssociation::FastFiller::~FastFiller().

67  {
68  if(evm)
69  return sizeof(fedh_t) + (EVM_GTFE_BLOCK*2 + EVM_TCS_TRIGNR_OFFSET) * SLINK_WORD_SIZE / 2;
70  else
71  return sizeof(fedh_t) + DAQ_TOTTRG_OFFSET * SLINK_WORD_SIZE / 2;
72  }
const unsigned int EVM_TCS_TRIGNR_OFFSET
struct fedh_struct fedh_t
const unsigned int DAQ_TOTTRG_OFFSET
#define SLINK_WORD_SIZE

Variable Documentation

const unsigned int evf::evtn::DAQ_BOARDID_MASK = 0xffff0000

Definition at line 15 of file GlobalEventNumber.h.

const unsigned int evf::evtn::DAQ_BOARDID_OFFSET = 1

Definition at line 14 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_BOARDID_SHIFT = 24

Definition at line 16 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_BOARDID_VALUE = 0x11

Definition at line 17 of file GlobalEventNumber.h.

Referenced by daq_board_sense().

const unsigned int evf::evtn::DAQ_TOTTRG_OFFSET = 2

Definition at line 13 of file GlobalEventNumber.h.

Referenced by offset().

const unsigned int evf::evtn::EVM_BOARDID_MASK = 0xffff0000

Definition at line 27 of file GlobalEventNumber.h.

const unsigned int evf::evtn::EVM_BOARDID_OFFSET = 1

Definition at line 26 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_BOARDID_SHIFT = 24

Definition at line 28 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_BOARDID_VALUE = 0x11

Definition at line 29 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and DaqFakeReader::fillGTPFED().

const unsigned int evf::evtn::EVM_FDL_ALGOB1_OFFSET = 4

Definition at line 51 of file GlobalEventNumber.h.

Referenced by getfdlta1().

const unsigned int evf::evtn::EVM_FDL_ALGOB2_OFFSET = 6

Definition at line 52 of file GlobalEventNumber.h.

Referenced by getfdlta2().

const unsigned int evf::evtn::EVM_FDL_BCNRIN_OFFSET = 1

Definition at line 49 of file GlobalEventNumber.h.

Referenced by getfdlbx().

const unsigned int evf::evtn::EVM_FDL_BLOCK = 7

Definition at line 48 of file GlobalEventNumber.h.

Referenced by getfdlbx(), getfdlpsc(), getfdlta1(), getfdlta2(), and getfdlttr().

const unsigned int evf::evtn::EVM_FDL_PSCVSN_OFFSET = 11

Definition at line 53 of file GlobalEventNumber.h.

Referenced by getfdlpsc().

const unsigned int evf::evtn::EVM_FDL_TECTRG_OFFSET = 2

Definition at line 50 of file GlobalEventNumber.h.

Referenced by getfdlttr().

const unsigned int evf::evtn::EVM_GTFE_BLOCK_V0000 = 6

Definition at line 31 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

const unsigned int evf::evtn::EVM_GTFE_BLOCK_V0011 = 9

Definition at line 32 of file GlobalEventNumber.h.

Referenced by evm_board_sense(), and evm_board_setformat().

const unsigned int evf::evtn::EVM_GTFE_BSTGPS_OFFSET = 4

Definition at line 33 of file GlobalEventNumber.h.

Referenced by DaqFakeReader::fillGTPFED(), getgpshigh(), and getgpslow().

const unsigned int evf::evtn::EVM_TCS_BCNRIN_MASK = 0x00000fff

Definition at line 46 of file GlobalEventNumber.h.

Referenced by getfdlbx().

const unsigned int evf::evtn::EVM_TCS_BLOCK = 5

Definition at line 36 of file GlobalEventNumber.h.

Referenced by getfdlbx(), getfdlpsc(), getfdlta1(), getfdlta2(), and getfdlttr().

const unsigned int evf::evtn::EVM_TCS_BOARDID_MASK = 0xffff0000

Definition at line 42 of file GlobalEventNumber.h.

const unsigned int evf::evtn::EVM_TCS_BOARDID_OFFSET = 1

Definition at line 39 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_BOARDID_SHIFT = 16

Definition at line 43 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_BOARDID_VALUE = 0xcc07

Definition at line 35 of file GlobalEventNumber.h.

Referenced by evm_tcs_board_sense().

const unsigned int evf::evtn::EVM_TCS_EVNTYP_MASK = 0x00f00000

Definition at line 44 of file GlobalEventNumber.h.

Referenced by getevtyp().

const unsigned int evf::evtn::EVM_TCS_EVNTYP_SHIFT = 20

Definition at line 45 of file GlobalEventNumber.h.

Referenced by getevtyp().

const unsigned int evf::evtn::EVM_TCS_LSBLNR_MASK = 0x0000ffff

Definition at line 41 of file GlobalEventNumber.h.

Referenced by getlbn().

const unsigned int evf::evtn::EVM_TCS_LSBLNR_OFFSET = 0

Definition at line 38 of file GlobalEventNumber.h.

Referenced by getevtyp(), and getlbn().

const unsigned int evf::evtn::EVM_TCS_ORBTNR_OFFSET = 6

Definition at line 40 of file GlobalEventNumber.h.

Referenced by getorbit().

const unsigned int evf::evtn::EVM_TCS_TRIGNR_OFFSET = 5

Definition at line 37 of file GlobalEventNumber.h.

Referenced by DaqFakeReader::fillGTPFED(), and offset().

const unsigned int evf::evtn::FED_HEADER_SIZE = SLINK_WORD_SIZE

Definition at line 8 of file FEDConstants.h.

const unsigned int evf::evtn::FED_TRAILER_SIZE = SLINK_WORD_SIZE

Definition at line 9 of file FEDConstants.h.

Referenced by evf::EvffedFillerRB::putTrailer().

const unsigned int evf::evtn::GTPE_BCNRIN_MASK = 0x00000fff

Definition at line 64 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

const unsigned int evf::evtn::GTPE_BCNRIN_OFFSET = 3

Definition at line 63 of file GlobalEventNumber.h.

Referenced by gtpe_getbx().

const unsigned int evf::evtn::GTPE_BOARDID_MASK = 0x000000ff

Definition at line 58 of file GlobalEventNumber.h.

const unsigned int evf::evtn::GTPE_BOARDID_OFFSET = 16

Definition at line 57 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

const unsigned int evf::evtn::GTPE_BOARDID_SHIFT = 0

Definition at line 59 of file GlobalEventNumber.h.

Referenced by gtpe_board_sense().

const unsigned int evf::evtn::GTPE_BOARDID_VALUE = 0x1

Definition at line 60 of file GlobalEventNumber.h.

const unsigned int evf::evtn::GTPE_ORBTNR_OFFSET = 18

Definition at line 62 of file GlobalEventNumber.h.

Referenced by gtpe_getorbit().

const unsigned int evf::evtn::GTPE_TRIGNR_OFFSET = 14

Definition at line 61 of file GlobalEventNumber.h.

Referenced by gtpe_get().

const unsigned int evf::evtn::SLINK_HALFWORD_SIZE = 4
const unsigned int evf::evtn::SLINK_WORD_SIZE = 8