◆ FakeTBHodoscopeRawInfoProducer()
FakeTBHodoscopeRawInfoProducer::FakeTBHodoscopeRawInfoProducer |
( |
const edm::ParameterSet & |
ps | ) |
|
|
explicit |
Constructor.
Definition at line 43 of file FakeTBHodoscopeRawInfoProducer.cc.
References theTBHodoGeom_.
45 produces<EcalTBHodoscopeRawInfo>();
const edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
std::unique_ptr< EcalTBHodoscopeGeometry > theTBHodoGeom_
◆ ~FakeTBHodoscopeRawInfoProducer()
FakeTBHodoscopeRawInfoProducer::~FakeTBHodoscopeRawInfoProducer |
( |
| ) |
|
|
overridedefault |
◆ produce()
Produce digis out of raw data.
Definition at line 50 of file FakeTBHodoscopeRawInfoProducer.cc.
References EcalTBHodoscopePlaneRawHits::addHit(), ecalTBInfo_, PEcalTBInfo::evXbeam(), PEcalTBInfo::evYbeam(), dqmMemoryStats::float, mps_fire::i, LogDebug, eostools::move(), ecaldqm::nChannels, and theTBHodoGeom_.
57 double partXhodo = theEcalTBInfo->
evXbeam();
58 double partYhodo = theEcalTBInfo->
evYbeam();
60 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n" 61 <<
"x = " << partXhodo <<
" y = " << partYhodo;
68 product->setPlanes(nPlanes);
70 for (
int iPlane = 0; iPlane < nPlanes; ++iPlane) {
71 float theCoord = (
float)partXhodo;
72 if (iPlane == 1 || iPlane == 3)
73 theCoord = (
float)partYhodo;
75 std::vector<int> firedChannels =
theTBHodoGeom_->getFiredFibresInPlane(theCoord, iPlane);
76 unsigned int nChannels = firedChannels.size();
80 planeHit.addHit(firedChannels[
i]);
83 product->setPlane(static_cast<unsigned int>(iPlane), planeHit);
86 LogDebug(
"EcalTBHodo") << (*product);
const edm::EDGetTokenT< PEcalTBInfo > ecalTBInfo_
std::unique_ptr< EcalTBHodoscopeGeometry > theTBHodoGeom_
◆ ecalTBInfo_
◆ theTBHodoGeom_