30 const std::vector<uint32_t>&
lengths,
const std::vector<uint32_t>&
defaults,
31 const std::vector<int>& bx,
bool debug) :
47 for(L1GtPatternMap::LineMap::const_iterator it = patterns.
begin(); it != patterns.
end() ; ++it) {
48 int event = it->first.first;
49 int bx = it->first.second;
52 std::stringstream
dump;
54 LogTrace(
"L1GtPatternGenerator") << dump.str();
59 m_dest <<
"# Event " <<
std::dec <<
event <<
", bx " << bx << std::endl;
64 LogTrace(
"L1GtPatternGenerator") <<
"Skipping event " << it->first.first <<
" bx " << it->first.second <<
" because of bx filter";
70 m_dest << std::setfill(
'0');
114 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)
const PhiMemoryImage patterns[9]
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)
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)