39 std::cout <<
"Initialization started" << std::endl;
45 std::vector<Identifier>::const_iterator first = caloLVL1_ID->
tower_begin();
46 std::vector<Identifier>::const_iterator last = caloLVL1_ID->
tower_end();
49 for ( ; first!=last; ++first) {
50 if(caloLVL1_ID->
is_tile(*first)){
52 if (
id > maxid) maxid = id;
58 std::cout <<
" Number of valid tower IDs "<<
m_size << std::endl;
59 std::cout <<
" Highest tower ID "<< maxid << std::endl;
Helper class for offline TT identifiers.
IdentifierHash tower_hash(Identifier towerId) const
create hash id from tower id
id_iterator tower_begin() const
begin iterator over towers
bool is_tile(const Identifier id) const
Test wether given tower or layer is part of the Tile Calorimeter.
id_iterator tower_end() const
end iterator over towers
int operator()(const ID &id) const
Convert ID to int.
static const int m_table_size
lookup table
int m_lookup[m_table_size]
void initialize(const CaloLVL1_ID *caloLVL1_ID)
int m_size
total number of IDs
ID identifier(int i) const
reverse conversion
std::vector< ID > m_int2id