78 produces<CastorCellCollection>();
96 using namespace TMath;
103 auto OutputCells = std::make_unique<CastorCellCollection>();
107 LogDebug(
"CastorCellProducer") <<
"1. entering CastorCellProducer ";
109 for (
size_t i = 0;
i < InputRecHits->
size(); ++
i) {
130 zCell = 14534 + (
module - 3) * 92;
134 double castorphi[16];
135 for (
int j = 0;
j < 16;
j++) {
136 castorphi[
j] = -2.94524 +
j * 0.3927;
139 phiCell = castorphi[sector - 9];
141 phiCell = castorphi[sector + 7];
152 CellPoint tempcellposition(rhoCell, zCell, phiCell);
153 Point cellposition(tempcellposition);
155 LogDebug(
"CastorCellProducer") <<
"cell number: " <<
i + 1 << std::endl
156 <<
"rho: " << cellposition.rho() <<
" phi: " << cellposition.phi() *
MYR2D
157 <<
" eta: " << cellposition.eta() << std::endl
158 <<
"x: " << cellposition.x() <<
" y: " << cellposition.y()
159 <<
" z: " << cellposition.z();
163 OutputCells->push_back(newCell);
168 LogDebug(
"CastorCellProducer") <<
"total number of cells in the event: " << InputRecHits->
size();