Commit 8f957927 authored by Simon Spannagel's avatar Simon Spannagel
Browse files
parents 7e43fc52 09402f5c
Pipeline #230330 passed with stage
in 1 minute and 49 seconds
......@@ -15,6 +15,10 @@ void Timepix3Clustering::initialise() {
// Cluster plots
string name = "clusterSize_" + detector->name();
clusterSize[detector->name()] = new TH1F(name.c_str(), name.c_str(), 25, 0, 25);
name = "clusterWidthRow_" + detector->name();
clusterWidthRow[detector->name()] = new TH1F(name.c_str(), name.c_str(), 25, 0, 25);
name = "clusterWidthColumn_" + detector->name();
clusterWidthColumn[detector->name()] = new TH1F(name.c_str(), name.c_str(), 25, 0, 25);
name = "clusterTot_" + detector->name();
clusterTot[detector->name()] = new TH1F(name.c_str(), name.c_str(), 200, 0, 1000);
name = "clusterPositionGlobal_" + detector->name();
......@@ -124,6 +128,8 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) {
for(auto& cluster : (*clusters)) {
// Fill cluster histograms
clusterSize[detector->name()]->Fill(cluster->size());
clusterWidthRow[detector->name()]->Fill(cluster->rowWidth());
clusterWidthColumn[detector->name()]->Fill(cluster->columnWidth());
clusterTot[detector->name()]->Fill(cluster->tot());
clusterPositionGlobal[detector->name()]->Fill(cluster->globalX(), cluster->globalY());
}
......
......@@ -27,6 +27,8 @@ namespace corryvreckan {
// Cluster histograms
std::map<std::string, TH1F*> clusterSize;
std::map<std::string, TH1F*> clusterWidthRow;
std::map<std::string, TH1F*> clusterWidthColumn;
std::map<std::string, TH1F*> clusterTot;
std::map<std::string, TH2F*> clusterPositionGlobal;
......
Supports Markdown
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