#include <FakeTBHodoscopeRawInfoProducer.h>
FakeTBHodoscopeRawInfoProducer::FakeTBHodoscopeRawInfoProducer |
( |
const edm::ParameterSet & |
ps | ) |
|
|
explicit |
Constructor.
Definition at line 12 of file FakeTBHodoscopeRawInfoProducer.cc.
14 produces<EcalTBHodoscopeRawInfo>();
EcalTBHodoscopeGeometry * theTBHodoGeom_
edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
FakeTBHodoscopeRawInfoProducer::~FakeTBHodoscopeRawInfoProducer |
( |
| ) |
|
|
override |
Produce digis out of raw data.
Definition at line 21 of file FakeTBHodoscopeRawInfoProducer.cc.
References EcalTBHodoscopePlaneRawHits::addHit(), PEcalTBInfo::evXbeam(), PEcalTBInfo::evYbeam(), objects.autophobj::float, mps_fire::i, createfilelist::int, LogDebug, eostools::move(), and ecaldqm::nChannels.
29 double partXhodo = theEcalTBInfo->
evXbeam();
30 double partYhodo = theEcalTBInfo->
evYbeam();
32 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n" 33 <<
"x = " << partXhodo <<
" y = " << partYhodo;
40 product->setPlanes(nPlanes);
42 for (
int iPlane = 0; iPlane < nPlanes; ++iPlane) {
43 float theCoord = (
float)partXhodo;
44 if (iPlane == 1 || iPlane == 3)
45 theCoord = (
float)partYhodo;
48 unsigned int nChannels = firedChannels.size();
52 planeHit.addHit(firedChannels[
i]);
55 product->setPlane((
unsigned int)iPlane, planeHit);
58 LogDebug(
"EcalTBHodo") << (*product);
EcalTBHodoscopeGeometry * theTBHodoGeom_
edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
static std::vector< int > getFiredFibresInPlane(float xtr, int plane)