43 produces<EcalTBHodoscopeRawInfo>();
58 double partXhodo = theEcalTBInfo->evXbeam();
59 double partYhodo = theEcalTBInfo->evYbeam();
61 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n"
62 <<
"x = " << partXhodo <<
" y = " << partYhodo;
69 product->setPlanes(nPlanes);
71 for (
int iPlane = 0; iPlane < nPlanes; ++iPlane) {
72 float theCoord = (float)partXhodo;
73 if (iPlane == 1 || iPlane == 3)
74 theCoord = (float)partYhodo;
77 unsigned int nChannels = firedChannels.size();
81 planeHit.
addHit(firedChannels[
i]);
84 product->setPlane(static_cast<unsigned int>(iPlane), planeHit);
87 LogDebug(
"EcalTBHodo") << (*product);
EcalTBHodoscopeGeometry * theTBHodoGeom_
#define DEFINE_FWK_MODULE(type)
void addHit(unsigned int i)
edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
Produce digis out of raw data.
static std::vector< int > getFiredFibresInPlane(float xtr, int plane)
~FakeTBHodoscopeRawInfoProducer() override
Destructor.
FakeTBHodoscopeRawInfoProducer(const edm::ParameterSet &ps)
Constructor.