#include <FakeTBHodoscopeRawInfoProducer.h>
FakeTBHodoscopeRawInfoProducer::FakeTBHodoscopeRawInfoProducer |
( |
const edm::ParameterSet & |
ps | ) |
|
|
explicit |
Constructor.
Definition at line 12 of file FakeTBHodoscopeRawInfoProducer.cc.
15 produces<EcalTBHodoscopeRawInfo>();
EcalTBHodoscopeGeometry * theTBHodoGeom_
edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
FakeTBHodoscopeRawInfoProducer::~FakeTBHodoscopeRawInfoProducer |
( |
| ) |
|
|
override |
Produce digis out of raw data.
Definition at line 26 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.
35 double partXhodo = theEcalTBInfo->
evXbeam();
36 double partYhodo = theEcalTBInfo->
evYbeam();
38 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n" 39 <<
"x = " << partXhodo <<
" y = " << partYhodo;
46 product->setPlanes(nPlanes);
48 for (
int iPlane = 0 ; iPlane < nPlanes ; ++iPlane) {
50 float theCoord = (
float)partXhodo;
51 if (iPlane == 1 || iPlane == 3) theCoord = (
float)partYhodo;
54 unsigned int nChannels = firedChannels.size();
58 planeHit.addHit(firedChannels[
i]);
61 product->setPlane((
unsigned int)iPlane, planeHit);
65 LogDebug(
"EcalTBHodo") << (*product);
EcalTBHodoscopeGeometry * theTBHodoGeom_
edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
static std::vector< int > getFiredFibresInPlane(float xtr, int plane)