Commit 6b265c14 authored by Lennart Huth's avatar Lennart Huth
Browse files

added axis labels, removed commented code and updated copyright

parent e1d9732b
......@@ -11,7 +11,7 @@ The Millepede algorthm allows a simultaneous fit of both the tracks and the alig
The modules stops if the convergence, i.e. the absolute sum of all corrections over the total number of parameters, is smaller than the configured value.
### Parameters
* `exlude_dut` : Exclude the DUT from the alignment procedure. Default value
* `exclude_dut` : Exclude the DUT from the alignment procedure. Default value
is `false`.
* `number_of_tracks`: Number of tracks used in the alignment method chosen. Default value is `20000`.
* `iterations`: Number of times the chosen alignment method is to be iterated. Default value is `3`.
......@@ -27,4 +27,5 @@ is `false`.
[Millepede]
iterations = 10
dofs = true, true, false, true, true, true
exclude_dut = false
```
......@@ -189,8 +189,14 @@ void AnalysisDUT::initialise() {
m_detector->nPixels().Y(),
0,
m_detector->nPixels().Y());
hUnassociatedTracksGlobalPosition =
new TH2F("hUnassociatedTracksGlobalPosition", "hUnassociatedTracksGlobalPosition", 200, -10, 10, 200, -10, 10);
hUnassociatedTracksGlobalPosition = new TH2F("hUnassociatedTracksGlobalPosition",
"hUnassociatedTracksGlobalPosition; x / mm; y / mm",
200,
-10,
10,
200,
-10,
10);
}
StatusCode AnalysisDUT::run(std::shared_ptr<Clipboard> clipboard) {
......
/**
* @file
* @brief Implementation of [EventLoaderMuPixTelescope] module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* Copyright (c) 2019 CERN and the Corryvreckan authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
......@@ -20,8 +20,8 @@ EventLoaderMuPixTelescope::EventLoaderMuPixTelescope(Configuration config, std::
: Module(std::move(config), std::move(detectors)), m_blockFile(nullptr) {
m_inputDirectory = m_config.getPath("input_directory");
m_runNumber = m_config.get<int>("Run", -1); // meaningless default runnumber
m_isSorted = m_config.get<bool>("isSorted", false);
m_ts2IsGray = m_config.get<bool>("ts2IsGray", false);
m_isSorted = m_config.get<bool>("is_sorted", false);
m_ts2IsGray = m_config.get<bool>("ts2_is_gray", false);
// We need to check for the config files in case of scans... TBI
}
......@@ -59,30 +59,22 @@ void EventLoaderMuPixTelescope::initialise() {
return;
} else
LOG(STATUS) << "Loaded Reader";
hHitMap = new TH2F("hitMap", "hitMap", 50, -.5, 49.5, 202, -.5, 201.5);
hPixelToT = new TH1F("pixelToT", "pixelToT", 64, 0, 64);
hTimeStamp = new TH1F("pixelTS", "pixelTS", 1024, -.5, 1023.5);
hPixelToT->GetXaxis()->SetTitle("ToT in TS2 clock cycles.");
// hPixelToA = new TH1F("pixelToA", "pixelToA", 100, 0, 100);
// hPixelsPerFrame = new TH1F("pixelsPerFrame", "pixelsPerFrame", 200, 0, 200);
// hPixelsOverTime = new TH1F("pixelsOverTime", "pixelsOverTime", 2e6, 0, 2e6);
hHitMap = new TH2F("hitMap", "hitMap; column; row", 50, -.5, 49.5, 202, -.5, 201.5);
hPixelToT = new TH1F("pixelToT", "pixelToT; ToT in TS2 clock cycles.; ", 64, 0, 64);
hTimeStamp = new TH1F("pixelTS", "pixelTS; TS in clock cycles; ", 1024, -.5, 1023.5);
}
StatusCode EventLoaderMuPixTelescope::run(std::shared_ptr<Clipboard> clipboard) {
// Loop over all detectors
vector<string> detectors;
for(auto& detector : get_detectors()) {
// Get the detector name
std::string detectorName = detector->name();
detectors.push_back(detectorName);
LOG(DEBUG) << "Detector with name " << detectorName;
}
map<string, Objects*> dataContainers;
vector<string> detectors;
detectors.push_back("detector0");
detectors.push_back("detector1");
detectors.push_back("detector2");
detectors.push_back("detector3");
TelescopeFrame tf;
if(!m_blockFile->read_next(tf))
return StatusCode::EndRun;
......
/**
* @file
* @brief Definition of [EventLoaderMuPixTelescope] module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* Copyright (c) 2019 CERN and the Corryvreckan authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
......@@ -63,9 +63,6 @@ namespace corryvreckan {
// Histograms
TH2F* hHitMap;
TH1F* hPixelToT;
// TH1F* hPixelToA;
// TH1F* hPixelsPerFrame;
// TH1F* hPixelsOverTime;
TH1F* hTimeStamp;
};
......
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