Commit 59d49d34 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

made correlation plots configurable, to be turned off for fast processing


Former-commit-id: 0c7e2ccfe61ee8df88354cf2f095c1425e957cd2
parent 247e55a7
......@@ -5,6 +5,7 @@
TestAlgorithm::TestAlgorithm(bool debugging)
: Algorithm("TestAlgorithm"){
debug = debugging;
makeCorrelations = false;
}
......@@ -104,6 +105,7 @@ int TestAlgorithm::run(Clipboard* clipboard){
clusterPositionGlobal[detectorID]->Fill(cluster->globalX(),cluster->globalY());
// Loop over reference plane pixels to make correlation plots
if(!makeCorrelations) continue;
for(int iRefCluster=0;iRefCluster<referenceClusters->size();iRefCluster++){
Timepix3Cluster* refCluster = (*referenceClusters)[iRefCluster];
......@@ -116,7 +118,7 @@ int TestAlgorithm::run(Clipboard* clipboard){
if( abs(timeDifference) < 0.000001 ) correlationY[detectorID]->Fill(refCluster->globalY() - cluster->globalY());
correlationTime[detectorID]->Fill( timeDifference );
correlationTimeInt[detectorID]->Fill( timeDifferenceInt );
}
}//*/
}
......
......@@ -34,6 +34,8 @@ public:
map<string, TH1F*> correlationTime;
map<string, TH1F*> correlationTimeInt;
// Parameters which can be set by user
bool makeCorrelations;
};
#endif // TESTALGORITHM_H
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