Commit 050e761e authored by Lennart Huth's avatar Lennart Huth
Browse files

removed manual eventcounter

parent 1db7f219
......@@ -37,9 +37,6 @@ void AnalysisTracks::initialize() {
clusters_vs_tracks_[detector->getName().c_str()] =
new TH2F("clusters_vs_tracks", title.c_str(), 25, 0, 25, 200, 0, 200);
}
// Initialise member variables
eventNumber_ = 0;
}
StatusCode AnalysisTracks::run(const std::shared_ptr<Clipboard>& clipboard) {
......@@ -51,9 +48,6 @@ StatusCode AnalysisTracks::run(const std::shared_ptr<Clipboard>& clipboard) {
LOG(DEBUG) << "Detector with name " << detectorName;
}
// Increment event counter
eventNumber_++;
auto tracks = clipboard->getData<Track>();
if(!tracks.size())
return StatusCode::Success;
......@@ -98,8 +92,3 @@ StatusCode AnalysisTracks::run(const std::shared_ptr<Clipboard>& clipboard) {
// Return value telling analysis to keep running
return StatusCode::Success;
}
void AnalysisTracks::finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) {
LOG(DEBUG) << "Analysed " << eventNumber_ << " events";
}
......@@ -44,17 +44,9 @@ namespace corryvreckan {
*/
StatusCode run(const std::shared_ptr<Clipboard>& clipboard) override;
/**
* @brief [Finalise module]
*/
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
int eventNumber_;
std::map<std::string, TH1F*> _distance_between_tracks_{};
std::map<std::string, TH1F*> _tracks_per_hit_{};
std::map<std::string, TH2F*> clusters_vs_tracks_{};
};
......
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