25 std::vector<HDigiFP420> temporary;
29 std::cout <<
" !!!!!!!!!!!!!!!! DigiCollectionFP420:: !!!! put !!!! start detID=" << detID << std::endl;
31 for (; sort_begin != sort_end; ++sort_begin) {
32 temporary.push_back(*sort_begin);
34 std::cout <<
"digi put: temporary.push_back " << std::endl;
37 std::sort(temporary.begin(), temporary.end());
48 std::cout <<
"digi put:first inputRange.first = " << inputRange.first << std::endl;
63 std::cout <<
"digi put: inputRange.first = " << inputRange.first << std::endl;
64 std::cout <<
"digi put: inputRange.second = " << inputRange.second << std::endl;
75 std::vector<HDigiFP420> temporary;
78 for (; sort_begin != sort_end; ++sort_begin) {
79 temporary.push_back(*sort_begin);
81 std::sort(temporary.begin(), temporary.end());
95 std::cout <<
"digi putclear: inputRange.first = " << inputRange.first << std::endl;
96 std::cout <<
"digi putclear: inputRange.second = " << inputRange.second << std::endl;
106 std::cout <<
"DigiCollectionFP420::get1:detID= " << detID << std::endl;
116 returnRange.first =
container_.begin() + returnIndexRange.first;
117 if (returnIndexRange.second != 0) {
118 returnRange.second =
container_.begin() + returnIndexRange.second + 1;
120 returnRange.second =
container_.begin() + returnIndexRange.second;
125 std::cout <<
"digi get1: returnIndexRange.first= " << returnIndexRange.first << std::endl;
126 std::cout <<
"digi get1: returnIndexRange.second= " << returnIndexRange.second << std::endl;
135 std::cout <<
"DigiCollectionFP420::get :detID= " << detID << std::endl;
140 std::cout <<
"DigiCollectionFP420::get : returnIndexRange.first= " << returnIndexRange.first << std::endl;
141 std::cout <<
"DigiCollectionFP420::get : returnIndexRange.second= " << returnIndexRange.second << std::endl;
145 returnRange.first =
container_.begin() + returnIndexRange.first;
146 if (returnIndexRange.second != 0) {
147 returnRange.second =
container_.begin() + returnIndexRange.second + 1;
149 returnRange.second =
container_.begin() + returnIndexRange.second;
152 std::cout <<
"DigiCollectionFP420::get : container_.size() = " <<
container_.size() << std::endl;
153 std::cout <<
"DigiCollectionFP420::get : returnIndexRange.first= " << returnIndexRange.first << std::endl;
154 std::cout <<
"DigiCollectionFP420::get : returnIndexRange.second= " << returnIndexRange.second << std::endl;
166 std::cout <<
"DigiCollectionFP420::detIDs:start " << std::endl;
168 std::vector<unsigned int>
output;
171 output.push_back(begin->first);
181 std::cout <<
"DigiCollectionFP420::add: det_id= " << det_id << std::endl;
187 copy(digis.begin(), digis.end(), back_inserter(
digiMap_[det_id]));
195 std::cout <<
"DigiCollectionFP420::digis:det_id= " << det_id << std::endl;
199 digis =
found->second;
201 digis = std::vector<HDigiFP420>();
209 det_ids.reserve(static_cast<unsigned int>(
digiMap_.size()));
211 std::cout <<
"DigiCollectionFP420:: detIDs: digiMap size= " <<
digiMap_.size() << std::endl;
213 HDigiFP420Container::const_iterator iter;
215 det_ids.push_back(iter->first);
std::vector< HDigiFP420 >::const_iterator ContainerIterator
const Range get1(unsigned int detID) const
std::pair< unsigned int, unsigned int > IndexRange
void digis(unsigned int &det_id, std::vector< HDigiFP420 > &digis) const
static std::string const input
std::map< unsigned int, IndexRange >::const_iterator RegistryIterator
void put(Range input, unsigned int detID)
void add(unsigned int &det_id, std::vector< HDigiFP420 > &digis)
void putclear(Range input, unsigned int detID)
HDigiFP420Container digiMap_
std::pair< ContainerIterator, ContainerIterator > Range
const std::vector< unsigned int > detIDs() const
std::vector< HDigiFP420 > container_
inputRange
Get input source.
const Range get(unsigned int detID) const