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,
36 : m_dest(destination),
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;
58 LogTrace(
"L1GtPatternGenerator") << dump.str();
63 m_dest <<
"# Event " <<
std::dec <<
event <<
", bx " << bx << std::endl;
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 ~((~0U) << length);
void writePatterns(const L1GtPatternMap &patterns)
LineMap::const_iterator begin() const
uint32_t get(const std::string &name) const
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()
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)
tuple dump
OutputFilePath = cms.string('/tmp/zhokin/'), OutputFileExt = cms.string(''),.