Commit 7c381c54 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

AnalysisDUT: rename new parameter get_correlations into correlations for simplicity

parent 1423e98f
Pipeline #2615325 failed with stages
in 26 minutes and 9 seconds
......@@ -24,21 +24,21 @@ AnalysisDUT::AnalysisDUT(Configuration& config, std::shared_ptr<Detector> detect
config_.setDefault<bool>("use_closest_cluster", true);
config_.setDefault<int>("n_time_bins", 20000);
config_.setDefault<double>("time_binning", Units::get<double>(0.1, "ns"));
config_.setDefault<bool>("get_correlations", false);
config_.setDefault<bool>("correlations", false);
time_cut_frameedge_ = config_.get<double>("time_cut_frameedge");
chi2_ndof_cut_ = config_.get<double>("chi2ndof_cut");
use_closest_cluster_ = config_.get<bool>("use_closest_cluster");
n_timebins_ = config_.get<int>("n_time_bins");
time_binning_ = config_.get<double>("time_binning");
if(config_.has("get_correlations")) {
get_correlations_ = config_.get<bool>("get_correlations");
if(config_.has("correlations")) {
correlations_ = config_.get<bool>("correlations");
}
}
void AnalysisDUT::initialize() {
if(get_correlations_) {
if(correlations_) {
hTrackCorrelationX = new TH1F(
"hTrackCorrelationX", "Track residual X, all clusters;x_{track}-x_{hit} [#mum];# entries", 8000, -1000.5, 999.5);
hTrackCorrelationY = new TH1F(
......@@ -528,7 +528,7 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
auto localIntercept = m_detector->globalToLocal(globalIntercept);
// Fill correlation plots before applying any cuts:
if(get_correlations_) {
if(correlations_) {
auto clusters = clipboard->getData<Cluster>(m_detector->getName());
for(auto& cls : clusters) {
double xdistance_um = (globalIntercept.X() - cls->global().x()) * 1000.;
......
......@@ -101,7 +101,7 @@ namespace corryvreckan {
bool use_closest_cluster_;
int n_timebins_;
double time_binning_;
bool get_correlations_;
bool correlations_;
int num_tracks_;
};
} // namespace corryvreckan
......
......@@ -14,7 +14,7 @@ If a region of interest (ROI) is defined for the detector under investigation, o
* `use_closest_cluster`: If `true` the cluster with the smallest distance to the track is used if a track has more than one associated cluster. If `false`, loop over all associated clusters. Defaults to `true`.
* `n_time_bins`: Number of bins in the time residual and correlation histograms. Defaults to `20000`.
* `time_binning`: Bin width in the time residual and correlation histograms. Defaults to `0.1ns`.
* `get_correlations`: If `true`, correlation plots between all tracks and all clusters on the DUT (i.e. associated + non-associated) are created. Defaults to `false`.
* `correlations`: If `true`, correlation plots between all tracks and all clusters on the DUT (i.e. associated + non-associated) are created. Defaults to `false`.
### Plots produced
......
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