Commit a85c0a27 authored by Morag Williams's avatar Morag Williams
Browse files

Making chi^2ndof cut configurable in DUTAnalysis

parent 43ab95d6
......@@ -13,6 +13,7 @@ DUTAnalysis::DUTAnalysis(Configuration config, std::vector<Detector*> detectors)
m_DUT = m_config.get<std::string>("DUT");
m_useMCtruth = m_config.get<bool>("useMCtruth", false);
timingCut = m_config.get<double>("timingCut", Units::convert(200, "ns"));
chi2ndofCut = m_config.get<double>("chi2ndofCut", 3.);
}
void DUTAnalysis::initialise() {
......@@ -71,8 +72,6 @@ StatusCode DUTAnalysis::run(Clipboard* clipboard) {
double spatialCut = 0.2; // 200 um
// Track chi2/ndof cut
double chi2ndofCut = 3.;
// Power pulsing variable initialisation - get signals from SPIDR for this
// device
double timeSincePowerOn = 0.;
......
......@@ -56,6 +56,7 @@ namespace corryvreckan {
long long int m_shutterCloseTime;
bool m_digitalPowerPulsing;
double timingCut;
double chi2ndofCut;
};
} // namespace corryvreckan
#endif // DUTAnalysis_H
......@@ -11,8 +11,9 @@ Using the appropriate parameter settings in the configuration file, plots using
* `DUT`: Name of the DUT plane.
* `useMCtruth`: Boolean to set if Monte-Carlo truth information is available and should be used. Default value is `false`.
* `digitalPowerPusling`: Boolean to set if power pulsing was used and that this information should be used. Default value is `false`.
* `timingCut`: maximum time difference between clusters to be taken into account. Defaults to `200ns`.
*
* `timingCut`: maximum time difference between clusters to be taken into account. Default value is `200ns`.
* `chi2ndofCut`: maximum chi^2 ndof value allowed for tracks to be used; tracks with values above this will be excluded. Default value is `3.0`.
#### Plots produced
* Tracks vs time
* Associated tracks vs time
......
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