31 const std::vector<std::string>&
columns,
32 const std::vector<uint32_t>&
lengths,
33 const std::vector<uint32_t>&
defaults,
34 const std::vector<int>&
bx,
51 for (L1GtPatternMap::LineMap::const_iterator
it = patterns.
begin();
it != patterns.
end(); ++
it) {
52 int event =
it->first.first;
53 int bx =
it->first.second;
56 std::stringstream
dump;
68 LogTrace(
"L1GtPatternGenerator") <<
"Skipping event " <<
it->first.first <<
" bx " <<
it->first.second
69 <<
" because of bx filter";
75 m_dest << std::setfill(
'0');
117 return ~((~0
U) << length);
void writePatterns(const L1GtPatternMap &patterns)
LineMap::const_iterator begin() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
LineMap::const_iterator end() const
std::vector< std::string > m_columns
virtual ~L1GtPatternWriter()
std::vector< uint32_t > m_lengths
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< uint32_t > &lengths, const std::vector< uint32_t > &defaultValues, const std::vector< int > &bx, bool debug=false)
std::vector< uint32_t > m_defaults
static uint32_t mask(uint32_t length)