30 hCPU(0), hDigi(0), theTimer(0)
35 produces<FEDRawDataCollection>();
46 hCPU =
new TH1D (
"hCPU",
"hCPU",100,0.,0.050);
47 hDigi =
new TH1D(
"hDigi",
"hDigi",50,0.,15000.);
57 TFile rootFile(
"analysis.root",
"RECREATE",
"my histograms");
70 using namespace sipixelobjects;
72 edm::LogInfo(
"SiPixelDigiToRaw") <<
"[SiPixelDigiToRaw::produce] "
81 typedef vector< edm::DetSet<PixelDigi> >::const_iterator DI;
85 digiCounter += (di->data).
size();
86 digis[ di->id] = di->data;
93 fedIds = cablingMap->fedIds();
114 typedef vector<const PixelFEDCabling *>::const_iterator FI;
115 for (FI it = fedList.begin(); it != fedList.end(); it++) {
116 LogDebug(
"SiPixelDigiToRaw")<<
" PRODUCE DATA FOR FED_id: " << (**it).id();
117 FEDRawData& fedRawData = buffers->FEDData( (**it).id() );
118 PixelDataFormatter::RawData::iterator fedbuffer =
rawdata.find( (**it).id() );
119 if( fedbuffer !=
rawdata.end() ) fedRawData = fedbuffer->second;
120 LogDebug(
"SiPixelDigiToRaw")<<
"size of data in fedRawData: "<<fedRawData.
size();
125 <<
"Words/Digis this ev: "<<digiCounter<<
"(fm:"<<formatter.
nDigis()<<
")/"
132 LogDebug(
"SiPixelDigiToRaw") <<
" (Words/Digis) this ev: "
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
SiPixelDigiToRaw(const edm::ParameterSet &)
ctor
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static MessageDrop * instance()
unsigned long eventCounter
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > tPixelDigi
virtual void produce(edm::Event &, const edm::EventSetup &)
get data, convert to raw event, attach again to Event
size_t size() const
Lenght of the data buffer in bytes.
std::vector< unsigned int > fedIds
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual ~SiPixelDigiToRaw()
dtor
R2DTimerObserver * theTimer
virtual std::string version() const
map version
const LastMeasurement & lastMeasurement()
T const * product() const
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher
edm::ParameterSet config_
bool check(const edm::EventSetup &iSetup)
SiPixelFrameReverter * frameReverter_
SiPixelFedCablingTree * cablingTree_
std::vector< const PixelFEDCabling * > fedList() const
tuple size
Write out results.