31 const std::string& footer,
const std::vector<std::string> columns,
32 const std::vector<uint32_t>&
lengths,
const std::vector<uint32_t>&
defaults,
33 const std::vector<int>& bx,
bool debug) :
49 for(L1GtPatternMap::LineMap::const_iterator it = patterns.
begin(); it != patterns.
end() ; ++it) {
50 int event = it->first.first;
51 int bx = it->first.second;
54 std::stringstream
dump;
56 LogTrace(
"L1GtPatternGenerator") << dump.str();
61 m_dest <<
"# Event " << std::dec <<
event <<
", bx " << bx << std::endl;
66 LogTrace(
"L1GtPatternGenerator") <<
"Skipping event " << it->first.first <<
" bx " << it->first.second <<
" because of bx filter";
72 m_dest << std::setfill(
'0');
75 m_dest << std::dec << std::setw(4) <<
m_lineNo <<
' ' << std::hex ;
116 return ~((~0) << length);
void writePatterns(const L1GtPatternMap &patterns)
LineMap::const_iterator begin() const
boost::uint32_t get(const std::string &name) const
std::vector< boost::uint32_t > m_defaults
std::vector< boost::uint32_t > m_lengths
static boost::uint32_t mask(boost::uint32_t length)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< std::string > m_columns
LineMap::const_iterator end() const
bool has(const std::string &colname) const
virtual ~L1GtPatternWriter()
void print(std::ostream &out) const
virtual void writePatternLine(const L1GtPatternLine &line)
L1GtPatternWriter(std::ostream &destination, const std::string &header, const std::string &footer, const std::vector< std::string > columns, const std::vector< boost::uint32_t > &lengths, const std::vector< boost::uint32_t > &defaultValues, const std::vector< int > &bx, bool debug=false)