Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
IORawData
SiPixelInputSources
interface
PixelSLinkDataInputSource.h
Go to the documentation of this file.
1
#ifndef IORawDataSiPixelInputSources_PixelSLinkDataInputSource_h
2
#define IORawDataSiPixelInputSources_PixelSLinkDataInputSource_h
3
// -*- C++ -*-
4
//
5
// Package: SiPixelInputSources
6
// Class: PixelSLinkDataInputSource
7
//
15
//
16
// Original Author: Freya Blekman
17
// Created: Fri Sep 7 15:46:34 CEST 2007
18
// $Id: PixelSLinkDataInputSource.h,v 1.9 2008/02/25 21:12:09 fblekman Exp $
19
//
20
//
21
22
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
23
#include "
FWCore/Sources/interface/ExternalInputSource.h
"
24
#include "
FWCore/Framework/interface/Event.h
"
25
#include "
FWCore/Framework/interface/InputSourceMacros.h
"
26
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
27
#include <iostream>
28
#include <iomanip>
29
#include "
Utilities/StorageFactory/interface/StorageFactory.h
"
30
#include "
Utilities/StorageFactory/interface/StorageAccount.h
"
31
#include "
Utilities/StorageFactory/interface/Storage.h
"
32
#include "
FWCore/PluginManager/interface/PluginManager.h
"
33
#include "
FWCore/PluginManager/interface/standard.h
"
34
35
class
PixelSLinkDataInputSource
:
public
edm::ExternalInputSource
{
36
37
public
:
38
39
explicit
PixelSLinkDataInputSource
(
const
edm::ParameterSet
& pset,
40
const
edm::InputSourceDescription
& desc);
41
42
virtual
~PixelSLinkDataInputSource
();
43
44
bool
produce
(
edm::Event
&
event
);
45
46
47
private
:
48
49
int
m_fedid
;
50
uint32_t
m_fileindex
;
51
std::auto_ptr<Storage>
storage
;
52
int
m_runnumber
;
53
uint64_t
m_data
;
54
uint32_t
m_currenteventnumber
;
55
uint32_t
m_currenttriggernumber
;
56
uint32_t
m_globaleventnumber
;
57
int32_t
m_eventnumber_shift
;
58
int
getEventNumberFromFillWords
(std::vector<uint64_t>
data
, uint32_t &totword);
59
uint32_t
synchronizeEvents
();
60
};
61
#endif
InputSourceMacros.h
PixelSLinkDataInputSource
Definition:
PixelSLinkDataInputSource.h:35
PixelSLinkDataInputSource::m_fileindex
uint32_t m_fileindex
Definition:
PixelSLinkDataInputSource.h:50
Event.h
PixelSLinkDataInputSource::synchronizeEvents
uint32_t synchronizeEvents()
Definition:
PixelSLinkDataInputSource.cc:273
PixelSLinkDataInputSource::m_currenteventnumber
uint32_t m_currenteventnumber
Definition:
PixelSLinkDataInputSource.h:54
PixelSLinkDataInputSource::m_globaleventnumber
uint32_t m_globaleventnumber
Definition:
PixelSLinkDataInputSource.h:56
Frameworkfwd.h
ExternalInputSource.h
ParameterSet.h
StorageAccount.h
edm::InputSourceDescription
Definition:
InputSourceDescription.h:17
Storage.h
PixelSLinkDataInputSource::getEventNumberFromFillWords
int getEventNumberFromFillWords(std::vector< uint64_t > data, uint32_t &totword)
Definition:
PixelSLinkDataInputSource.cc:34
PixelSLinkDataInputSource::PixelSLinkDataInputSource
PixelSLinkDataInputSource(const edm::ParameterSet &pset, const edm::InputSourceDescription &desc)
Definition:
PixelSLinkDataInputSource.cc:118
PixelSLinkDataInputSource::m_fedid
int m_fedid
Definition:
PixelSLinkDataInputSource.h:49
PixelSLinkDataInputSource::m_eventnumber_shift
int32_t m_eventnumber_shift
Definition:
PixelSLinkDataInputSource.h:57
PixelSLinkDataInputSource::m_data
uint64_t m_data
Definition:
PixelSLinkDataInputSource.h:53
PixelSLinkDataInputSource::m_runnumber
int m_runnumber
Definition:
PixelSLinkDataInputSource.h:52
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
PixelSLinkDataInputSource::~PixelSLinkDataInputSource
virtual ~PixelSLinkDataInputSource()
Definition:
PixelSLinkDataInputSource.cc:174
edm::ConfigurableInputSource::event
EventNumber_t event() const
Definition:
ConfigurableInputSource.h:32
PluginManager.h
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
StorageFactory.h
PixelSLinkDataInputSource::m_currenttriggernumber
uint32_t m_currenttriggernumber
Definition:
PixelSLinkDataInputSource.h:55
PixelSLinkDataInputSource::produce
bool produce(edm::Event &event)
Definition:
PixelSLinkDataInputSource.cc:179
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::ExternalInputSource
Definition:
ExternalInputSource.h:18
PixelSLinkDataInputSource::storage
std::auto_ptr< Storage > storage
Definition:
PixelSLinkDataInputSource.h:51
edm::Event
Definition:
Event.h:50
standard.h
Generated for CMSSW Reference Manual by
1.8.5