Commit a803b500 authored by Chao Peng's avatar Chao Peng
Browse files

change a name...

parent 9a0dd1eb
......@@ -52,9 +52,9 @@ namespace Jug {
auto rawhits = m_outputHitCollection.createAndPut();
eic::RawCalorimeterHitCollection* rawHitCollection = new eic::RawCalorimeterHitCollection();
for (const auto& ahit : *simhits) {
eic::RawCalorimeterHit rawhit(
eic::RawCalorimeterHit rawhit(
(long long) ahit.cellID(),
(long long) (ahit.energyDeposit() + m_gaussDist*sqrt(ahit.energyDeposit()))/Gaudi::Units::MeV * 100.0,
(long long) (ahit.energyDeposit() + m_gaussDist*sqrt(ahit.energyDeposit()))/Gaudi::Units::MeV * 100.0,
(double) ahit.truth().time/Gaudi::Units::ns);
rawhits->push_back(rawhit);
}
......
......@@ -68,7 +68,7 @@ public:
const auto &hits = *m_inputHitCollection.get();
// Create output collections
auto &clusters = *m_outputClusterCollection.createAndPut();
auto &shits = *m_splitHitCollection.createAndPut();
auto &split_hits = *m_splitHitCollection.createAndPut();
// group neighboring hits
std::vector<bool> visits(hits.size(), false);
......@@ -87,7 +87,7 @@ public:
for (auto &group : groups) {
auto maxima = find_local_maxima(group);
split_group(group, maxima, clusters, shits);
split_group(group, maxima, clusters, split_hits);
// info() << "hits in a group: " << group.hits_size() << ", "
// << "local maxima: " << maxima.hits_size() << endmsg;
}
......
......@@ -61,7 +61,7 @@ public:
StatusCode execute() override
{
// input collections
auto &clusters = *m_clusterCollection.get();
auto &clusters = *m_clusterCollection.get();
// reconstruct hit position for the cluster
for (auto &cl : clusters) {
reconstruct(cl);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment