61 virtual void endJob()
override;
83 std::vector< std::vector<int> >
data_;
123 LogDebug(
"L1TDebug") <<
"Preparing for " <<
nLink_ <<
" links" << std::endl;
151 std::vector<l1t::CaloTower>
towers;
153 for(std::vector<l1t::CaloTower>::const_iterator tower = towHandle->begin(0);
154 tower != towHandle->end(0);
166 for (
unsigned iQuad=0; iQuad<
nQuad_; ++iQuad ) {
167 for (
unsigned iChan=0; iChan<
nChan_; ++iChan ) {
172 unsigned iLink = (iQuad*
nChan_)+iChan;
175 data_.at(iLink).push_back( data );
193 for (
unsigned iQuad=0; iQuad<
nQuad_; ++iQuad ) {
194 for (
unsigned iChan=0; iChan<
nChan_; ++iChan ) {
199 int iLink = (iQuad*
nChan_)+iChan;
200 int ietaSgn = (iLink % 2==0 ? +1 : -1);
201 int ieta = ietaSgn * (iFrame + 1);
202 int iphi = 1+(iLink % 2==0 ? iLink : iLink-1);
206 data |= tower.
hwPt() & 0xff;
208 data |= (tower.
hwQual() & 0xf)<<12;
213 data |= (tower.
hwPt() & 0xff)<<16;
215 data |= (tower.
hwQual() & 0xf)<<28;
218 data_.at(iLink).push_back( data );
235 for (
unsigned iQuad=0; iQuad<
nQuad_; ++iQuad ) {
236 for (
unsigned iChan=0; iChan<
nChan_; ++iChan ) {
241 unsigned iLink = (iQuad*
nChan_)+iChan;
244 data_.at(iLink).push_back( data );
276 file <<
"Board MP7_TEST" << std::endl;
279 file <<
" Quad/Chan : ";
282 file <<
" q" <<
i <<
"c" <<
j <<
" ";
298 for (
unsigned iFrame=0; iFrame<
nFrame_; ++iFrame ) {
299 file <<
"Frame " <<
std::dec << std::setw(4) << std::setfill(
'0') << iFrame <<
" : ";
300 for (
unsigned iQuad=0; iQuad<
nQuad_; ++iQuad ) {
301 for (
unsigned iChan=0; iChan<
nChan_; ++iChan ) {
302 unsigned iLink = (iQuad*
nChan_)+iChan;
303 if (iLink<
data_.size() && iFrame<
data_.at(iLink).size()) {
304 file << std::hex << ::std::setw(1) <<
dataValid_.at(iFrame) <<
"v" << std::hex << std::setw(8) << std::setfill(
'0') <<
data_.at(iLink).at(iFrame) <<
" ";
307 std::cerr <<
"Out of range : " << iLink <<
", " << iFrame << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
char data[epos_bytes_allocation]