Skip to content
Snippets Groups Projects
Commit 75f7af5d authored by Iain Bertram's avatar Iain Bertram Committed by Graeme Stewart
Browse files

Modified how TRTDigitizationTool so that it does not create a standard vector...

Modified how TRTDigitizationTool so that it does  not create a standard vector for every straw but once per event.  [ATLASSIM-2655] Tagged as TRT_Digitization-01-02-02 (TRT_Digitization-01-02-02)

	* Modified how TRTDigitizationTool so that it does
	  not create a standard vector for every straw but once per event.
	* [ATLASSIM-2655]
	* Tagged as TRT_Digitization-01-02-02
parent c8d58004
No related branches found
No related tags found
No related merge requests found
......@@ -440,6 +440,9 @@ StatusCode TRTDigitizationTool::processStraws(std::set<int>& sim_hitids, std::se
//std::cout << "AJB " << m_cosmicEventPhase << std::endl;
};
// Create a vector of deposits
std::vector<InDetSimData::Deposit> depositVector(100);
// loop over all straws
TimedHitCollection<TRTUncompressedHit>::const_iterator i, e;
while (m_thpctrt->nextDetectorElement(i, e)) {
......@@ -473,8 +476,8 @@ StatusCode TRTDigitizationTool::processStraws(std::set<int>& sim_hitids, std::se
simhitsIdentifiers.insert(idStraw);
///// START OF SDO CREATION
// Create and fill a vector of deposits
std::vector<InDetSimData::Deposit> depositVector;
// Fill a vector of deposits
depositVector.clear();
depositVector.reserve(std::distance(i,e));
for (TimedHitCollection<TRTUncompressedHit>::const_iterator hit_iter(i); hit_iter != e; ++hit_iter ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment