Commit d1588bd7 authored by Jin Zhang's avatar Jin Zhang
Browse files

disentangle rename function

parent 2ff73139
......@@ -86,26 +86,26 @@ double Detector::getTimeResolution() const {
}
}
std::string Detector::Name() const {
std::string Detector::name() const {
return m_detectorName;
}
std::string Detector::Type() const {
std::string Detector::type() const {
return m_detectorType;
}
std::string Detector::Coordinate() const {
std::string Detector::coordinate() const {
return m_detectorCoordinate;
}
bool Detector::IsReference() const {
bool Detector::isReference() const {
return static_cast<bool>(m_role & DetectorRole::REFERENCE);
}
bool Detector::IsDUT() const {
bool Detector::isDUT() const {
return static_cast<bool>(m_role & DetectorRole::DUT);
}
bool Detector::IsAuxiliary() const {
bool Detector::isAuxiliary() const {
return static_cast<bool>(m_role & DetectorRole::AUXILIARY);
}
......@@ -121,18 +121,18 @@ void Detector::update() {
Configuration Detector::GetConfiguration() const {
Configuration config(Name());
Configuration config(name());
config.set("type", m_detectorType);
// Store the role of the detector
std::vector<std::string> roles;
if(this->IsDUT()) {
if(this->isDUT()) {
roles.push_back("dut");
}
if(this->IsReference()) {
if(this->isReference()) {
roles.push_back("reference");
}
if(this->IsAuxiliary()) {
if(this->isAuxiliary()) {
roles.push_back("auxiliary");
}
......@@ -155,7 +155,7 @@ Configuration Detector::GetConfiguration() const {
}
// only if detector is not auxiliary:
if(!this->IsAuxiliary()) {
if(!this->isAuxiliary()) {
this->configureDetector(config);
}
......
......@@ -84,37 +84,37 @@ namespace corryvreckan {
* @brief Get type of the detector
* @return Type of the detector model
*/
std::string Type() const;
std::string type() const;
/**
* @brief Get name of the detector
* @return Detector name
*/
std::string Name() const;
std::string name() const;
/**
* @brief Get coordinate of the detector
* @return Detector coordinate
*/
std::string Coordinate() const;
std::string coordinate() const;
/**
* @brief Check whether detector is registered as reference
* @return Reference status
*/
bool IsReference() const;
bool isReference() const;
/**
* @brief Check whether detector is registered as DUT
* @return DUT status
*/
bool IsDUT() const;
bool isDUT() const;
/**
* @brief Check whether detector is registered as auxiliary device and should not parttake in the reconstruction
* @return Auxiliary status
*/
bool IsAuxiliary() const;
bool isAuxiliary() const;
/**
* @brief Retrieve configuration object from detector, containing all (potentially updated) parameters
......
......@@ -31,7 +31,7 @@ PlanarDetector::PlanarDetector(const Configuration& config) : Detector(config) {
this->initialise();
// Auxiliary devices don't have: number_of_pixels, pixel_pitch, spatial_resolution, mask_file, region-of-interest
if(!IsAuxiliary()) {
if(!isAuxiliary()) {
buildAxes(config);
}
}
......@@ -198,7 +198,7 @@ PositionVector3D<Cartesian3D<double>> PlanarDetector::getIntercept(const Track*
// FIXME: this is else statement can only be temporary
if(track->getType() == "gbl") {
return track->state(Name());
return track->state(name());
} else {
// Get the distance from the plane to the track initial state
double distance = (m_origin.X() - track->state(m_detectorName).X()) * m_normal.X();
......
......@@ -14,7 +14,7 @@
using namespace corryvreckan;
InvalidSettingError::InvalidSettingError(const Detector* detector, const std::string& key, const std::string& reason) {
error_message_ = "Setting '" + key + "' of detector '" + detector->Name() + "' is not valid";
error_message_ = "Setting '" + key + "' of detector '" + detector->name() + "' is not valid";
if(!reason.empty()) {
error_message_ += ": " + reason;
}
......
......@@ -117,7 +117,7 @@ void Module::set_ROOT_directory(TDirectory* directory) {
std::shared_ptr<Detector> Module::get_detector(std::string name) {
auto it = find_if(
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->Name() == name; });
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->name() == name; });
if(it == m_detectors.end()) {
throw ModuleError("Device with detector ID " + name + " is not registered.");
}
......@@ -131,7 +131,7 @@ std::shared_ptr<Detector> Module::get_reference() {
bool Module::has_detector(std::string name) {
auto it = find_if(
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->Name() == name; });
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->name() == name; });
if(it == m_detectors.end()) {
return false;
}
......
......@@ -55,7 +55,7 @@ void ModuleManager::load_detectors() {
// Check if we have a duplicate:
if(std::find_if(m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) {
return obj->Name() == name;
return obj->name() == name;
}) != m_detectors.end()) {
throw InvalidValueError(
global_config, "detectors_file", "Detector " + detector_section.getName() + " defined twice");
......@@ -68,12 +68,12 @@ void ModuleManager::load_detectors() {
detector = std::make_shared<PlanarDetector>(detector_section);
// Check if we already found a reference plane:
if(m_reference != nullptr && detector->IsReference()) {
if(m_reference != nullptr && detector->isReference()) {
throw InvalidValueError(global_config, "detectors_file", "Found more than one reference detector");
}
// Switch flag if we found the reference plane:
if(detector->IsReference()) {
if(detector->isReference()) {
m_reference = detector;
}
......@@ -309,7 +309,7 @@ std::vector<std::string> ModuleManager::get_type_vector(char* type_tokens) {
std::shared_ptr<Detector> ModuleManager::get_detector(std::string name) {
auto it = find_if(
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->Name() == name; });
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->name() == name; });
return (it != m_detectors.end() ? (*it) : nullptr);
}
......@@ -403,8 +403,8 @@ ModuleManager::create_detector_modules(void* library, Configuration config, bool
continue;
}
LOG(TRACE) << "Preparing \"name\" instance for " << det->Name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->Name(), 0));
LOG(TRACE) << "Preparing \"name\" instance for " << det->name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->name(), 0));
// Save the name (to not instantiate it again later)
module_names.insert(name);
}
......@@ -427,11 +427,11 @@ ModuleManager::create_detector_modules(void* library, Configuration config, bool
}
for(auto& det : m_detectors) {
auto detectortype = det->Type();
auto detectortype = det->type();
std::transform(detectortype.begin(), detectortype.end(), detectortype.begin(), ::tolower);
// Skip all that were already added by name
if(module_names.find(det->Name()) != module_names.end()) {
if(module_names.find(det->name()) != module_names.end()) {
continue;
}
for(auto& type : ctypes) {
......@@ -440,8 +440,8 @@ ModuleManager::create_detector_modules(void* library, Configuration config, bool
continue;
}
LOG(TRACE) << "Preparing \"type\" instance for " << det->Name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->Name(), 1));
LOG(TRACE) << "Preparing \"type\" instance for " << det->name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->name(), 1));
}
}
instances_created = !ctypes.empty();
......@@ -450,8 +450,8 @@ ModuleManager::create_detector_modules(void* library, Configuration config, bool
// Create for all detectors if no name / type provided
if(!instances_created) {
for(auto& det : m_detectors) {
LOG(TRACE) << "Preparing \"other\" instance for " << det->Name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->Name(), 2));
LOG(TRACE) << "Preparing \"other\" instance for " << det->name();
instantiations.emplace_back(det, ModuleIdentifier(module_base_name, det->name(), 2));
}
}
......@@ -461,13 +461,13 @@ ModuleManager::create_detector_modules(void* library, Configuration config, bool
auto identifier = instance.second;
// If this should only be instantiated for DUTs, skip otherwise:
if(dut_only && !detector->IsDUT()) {
if(dut_only && !detector->isDUT()) {
LOG(TRACE) << "Skipping instantiation \"" << identifier.getUniqueName() << "\", detector is no DUT";
continue;
}
// Do not instantiate module if detector type is not mentioned as supported:
auto detectortype = detector->Type();
auto detectortype = detector->type();
std::transform(detectortype.begin(), detectortype.end(), detectortype.begin(), ::tolower);
if(!types.empty() && std::find(types.begin(), types.end(), detectortype) == types.end()) {
LOG(TRACE) << "Skipping instantiation \"" << identifier.getUniqueName() << "\", detector type mismatch";
......
......@@ -36,12 +36,12 @@ AlignmentDUTResidual::AlignmentDUTResidual(Configuration config, std::shared_ptr
m_maxAssocClusters = m_config.get<size_t>("max_associated_clusters", 1);
m_maxTrackChi2 = m_config.get<double>("max_track_chi2ndof", 10.);
LOG(INFO) << "Aligning detector \"" << m_detector->Name() << "\"";
LOG(INFO) << "Aligning detector \"" << m_detector->name() << "\"";
}
void AlignmentDUTResidual::initialise() {
auto detname = m_detector->Name();
auto detname = m_detector->name();
std::string title = detname + " Residuals X;x_{track}-x [#mum];events";
residualsXPlot = new TH1F("residualsX", title.c_str(), 1000, -500, 500);
title = detname + " Residuals Y;y_{track}-y [#mum];events";
......@@ -89,7 +89,7 @@ StatusCode AlignmentDUTResidual::run(std::shared_ptr<Clipboard> clipboard) {
// Find the cluster that needs to have its position recalculated
for(auto& associatedCluster : track->associatedClusters()) {
if(associatedCluster->detectorID() != m_detector->Name()) {
if(associatedCluster->detectorID() != m_detector->name()) {
continue;
}
// Local position of the cluster
......@@ -137,7 +137,7 @@ void AlignmentDUTResidual::MinimiseResiduals(Int_t&, Double_t*, Double_t& result
// Apply new alignment conditions
globalDetector->update();
LOG(DEBUG) << "Updated parameters for " << globalDetector->Name();
LOG(DEBUG) << "Updated parameters for " << globalDetector->name();
// The chi2 value to be returned
result = 0.;
......@@ -152,7 +152,7 @@ void AlignmentDUTResidual::MinimiseResiduals(Int_t&, Double_t*, Double_t& result
// Find the cluster that needs to have its position recalculated
for(auto& associatedCluster : track->associatedClusters()) {
if(associatedCluster->detectorID() != globalDetector->Name()) {
if(associatedCluster->detectorID() != globalDetector->name()) {
continue;
}
......@@ -210,7 +210,7 @@ void AlignmentDUTResidual::finalise() {
arglist[1] = 0.001; // tolerance
globalDetector = m_detector;
auto name = m_detector->Name();
auto name = m_detector->name();
size_t n_associatedClusters = 0;
// count associated clusters:
......@@ -273,12 +273,12 @@ void AlignmentDUTResidual::finalise() {
m_detector->rotation(
XYZVector(residualFitter->GetParameter(3), residualFitter->GetParameter(4), residualFitter->GetParameter(5)));
LOG(INFO) << m_detector->Name() << "/" << iteration << " dT"
LOG(INFO) << m_detector->name() << "/" << iteration << " dT"
<< Units::display(m_detector->displacement() - old_position, {"mm", "um"}) << " dR"
<< Units::display(m_detector->rotation() - old_orientation, {"deg"});
}
LOG(STATUS) << m_detector->Name() << " new alignment: " << std::endl
LOG(STATUS) << m_detector->name() << " new alignment: " << std::endl
<< "T" << Units::display(m_detector->displacement(), {"mm", "um"}) << " R"
<< Units::display(m_detector->rotation(), {"deg"});
}
......@@ -52,10 +52,10 @@ void AlignmentMillepede::initialise() {
// Renumber the planes in Millepede, ignoring masked planes.
unsigned int index = 0;
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
continue;
}
m_millePlanes[det->Name()] = index;
m_millePlanes[det->name()] = index;
++index;
}
......@@ -101,11 +101,11 @@ void AlignmentMillepede::finalise() {
size_t nPlanes = num_detectors();
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
nPlanes--;
}
if(det->IsAuxiliary()) {
LOG(INFO) << "Excluding auxiliary detector " << det->Name();
if(det->isAuxiliary()) {
LOG(INFO) << "Excluding auxiliary detector " << det->name();
nPlanes--;
}
}
......@@ -176,7 +176,7 @@ void AlignmentMillepede::setConstraints(const size_t nPlanes) {
// Calculate the mean z-position.
double avgz = 0.;
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
continue;
}
avgz += det->displacement().Z();
......@@ -185,7 +185,7 @@ void AlignmentMillepede::setConstraints(const size_t nPlanes) {
// Calculate the variance.
double varz = 0.0;
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
continue;
}
const double dz = det->displacement().Z() - avgz;
......@@ -207,10 +207,10 @@ void AlignmentMillepede::setConstraints(const size_t nPlanes) {
m_constraints.clear();
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
continue;
}
const unsigned int i = m_millePlanes[det->Name()];
const unsigned int i = m_millePlanes[det->name()];
const double sz = (det->displacement().Z() - avgz) / varz;
ftx[i] = 1.0;
fty[i + nPlanes] = 1.0;
......@@ -307,7 +307,7 @@ bool AlignmentMillepede::putTrack(Track* track, const size_t nPlanes) {
const double errx = cluster->errorX();
const double erry = cluster->errorY();
// Get the internal plane index in Millepede.
const unsigned int plane = m_millePlanes[detector->Name()];
const unsigned int plane = m_millePlanes[detector->name()];
// Set the local derivatives for the X equation.
std::vector<double> derlc = {1., zg, 0., 0.};
// Set the global derivatives (see LHCb-2005-101) for the X equation.
......@@ -584,16 +584,16 @@ bool AlignmentMillepede::fitTrack(const std::vector<Equation>& equations,
void AlignmentMillepede::updateGeometry() {
auto nPlanes = num_detectors();
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
nPlanes--;
}
}
for(const auto& det : get_detectors()) {
if(det->IsDUT() && m_excludeDUT) {
if(det->isDUT() && m_excludeDUT) {
continue;
}
auto plane = m_millePlanes[det->Name()];
auto plane = m_millePlanes[det->name()];
det->displacement(XYZPoint(det->displacement().X() + m_dparm[plane + 0 * nPlanes],
det->displacement().Y() + m_dparm[plane + 1 * nPlanes],
......
......@@ -106,7 +106,7 @@ void AlignmentTrackChi2::MinimiseTrackChi2(Int_t&, Double_t*, Double_t& result,
// Find the cluster that needs to have its position recalculated
for(size_t iTrackCluster = 0; iTrackCluster < trackClusters.size(); iTrackCluster++) {
Cluster* trackCluster = trackClusters[iTrackCluster];
if(globalDetector->Name() != trackCluster->detectorID()) {
if(globalDetector->name() != trackCluster->detectorID()) {
continue;
}
......@@ -165,10 +165,10 @@ void AlignmentTrackChi2::finalise() {
int det = 0;
for(auto& detector : get_detectors()) {
string detectorID = detector->Name();
string detectorID = detector->name();
// Do not align the reference plane
if(detector->IsReference() || detector->IsDUT() || detector->IsAuxiliary()) {
if(detector->isReference() || detector->isDUT() || detector->isAuxiliary()) {
continue;
}
......@@ -233,7 +233,7 @@ void AlignmentTrackChi2::finalise() {
rotZ[detectorID].push_back(
static_cast<double>(Units::convert(detector->rotation().Z() - old_orientation.Z(), "deg")));
LOG(INFO) << detector->Name() << "/" << iteration << " dT"
LOG(INFO) << detector->name() << "/" << iteration << " dT"
<< Units::display(detector->displacement() - old_position, {"mm", "um"}) << " dR"
<< Units::display(detector->rotation() - old_orientation, {"deg"});
......@@ -260,11 +260,11 @@ void AlignmentTrackChi2::finalise() {
// Now list the new alignment parameters
for(auto& detector : get_detectors()) {
// Do not align the reference plane
if(detector->IsReference() || detector->IsDUT() || detector->IsAuxiliary()) {
if(detector->isReference() || detector->isDUT() || detector->isAuxiliary()) {
continue;
}
LOG(STATUS) << detector->Name() << " new alignment: " << std::endl
LOG(STATUS) << detector->name() << " new alignment: " << std::endl
<< "T" << Units::display(detector->displacement(), {"mm", "um"}) << " R"
<< Units::display(detector->rotation(), {"deg"});
......@@ -272,39 +272,39 @@ void AlignmentTrackChi2::finalise() {
std::vector<double> iterations(nIterations);
std::iota(std::begin(iterations), std::end(iterations), 0);
std::string name = "alignment_correction_displacementX_" + detector->Name();
align_correction_shiftX[detector->Name()] =
new TGraph(static_cast<int>(shiftsX[detector->Name()].size()), &iterations[0], &shiftsX[detector->Name()][0]);
align_correction_shiftX[detector->Name()]->GetXaxis()->SetTitle("# iteration");
align_correction_shiftX[detector->Name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftX[detector->Name()]->Write(name.c_str());
name = "alignment_correction_displacementY_" + detector->Name();
align_correction_shiftY[detector->Name()] =
new TGraph(static_cast<int>(shiftsY[detector->Name()].size()), &iterations[0], &shiftsY[detector->Name()][0]);
align_correction_shiftY[detector->Name()]->GetXaxis()->SetTitle("# iteration");
align_correction_shiftY[detector->Name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftY[detector->Name()]->Write(name.c_str());
name = "alignment_correction_rotationX_" + detector->Name();
align_correction_rotX[detector->Name()] =
new TGraph(static_cast<int>(rotX[detector->Name()].size()), &iterations[0], &rotX[detector->Name()][0]);
align_correction_rotX[detector->Name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotX[detector->Name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotX[detector->Name()]->Write(name.c_str());
name = "alignment_correction_rotationY_" + detector->Name();
align_correction_rotY[detector->Name()] =
new TGraph(static_cast<int>(rotY[detector->Name()].size()), &iterations[0], &rotY[detector->Name()][0]);
align_correction_rotY[detector->Name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotY[detector->Name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotY[detector->Name()]->Write(name.c_str());
name = "alignment_correction_rotationZ_" + detector->Name();
align_correction_rotZ[detector->Name()] =
new TGraph(static_cast<int>(rotZ[detector->Name()].size()), &iterations[0], &rotZ[detector->Name()][0]);
align_correction_rotZ[detector->Name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotZ[detector->Name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotZ[detector->Name()]->Write(name.c_str());
std::string name = "alignment_correction_displacementX_" + detector->name();
align_correction_shiftX[detector->name()] =
new TGraph(static_cast<int>(shiftsX[detector->name()].size()), &iterations[0], &shiftsX[detector->name()][0]);
align_correction_shiftX[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_shiftX[detector->name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftX[detector->name()]->Write(name.c_str());
name = "alignment_correction_displacementY_" + detector->name();
align_correction_shiftY[detector->name()] =
new TGraph(static_cast<int>(shiftsY[detector->name()].size()), &iterations[0], &shiftsY[detector->name()][0]);
align_correction_shiftY[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_shiftY[detector->name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftY[detector->name()]->Write(name.c_str());
name = "alignment_correction_rotationX_" + detector->name();
align_correction_rotX[detector->name()] =
new TGraph(static_cast<int>(rotX[detector->name()].size()), &iterations[0], &rotX[detector->name()][0]);
align_correction_rotX[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotX[detector->name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotX[detector->name()]->Write(name.c_str());
name = "alignment_correction_rotationY_" + detector->name();
align_correction_rotY[detector->name()] =
new TGraph(static_cast<int>(rotY[detector->name()].size()), &iterations[0], &rotY[detector->name()][0]);
align_correction_rotY[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotY[detector->name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotY[detector->name()]->Write(name.c_str());
name = "alignment_correction_rotationZ_" + detector->name();
align_correction_rotZ[detector->name()] =
new TGraph(static_cast<int>(rotZ[detector->name()].size()), &iterations[0], &rotZ[detector->name()][0]);
align_correction_rotZ[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_rotZ[detector->name()]->GetYaxis()->SetTitle("correction [deg]");
align_correction_rotZ[detector->name()]->Write(name.c_str());
}
}
......@@ -120,7 +120,7 @@ void AnalysisDUT::initialise() {
std::string mod_axes = "in-pixel x_{track} [#mum];in-pixel y_{track} [#mum];";
// cut flow histogram
std::string title = m_detector->Name() + ": number of tracks discarded by different cuts;cut type;tracks";
std::string title = m_detector->name() + ": number of tracks discarded by different cuts;cut type;tracks";
hCutHisto = new TH1F("hCutHisto", title.c_str(), 4, 1, 5);
hCutHisto->GetXaxis()->SetBinLabel(1, "High Chi2");
hCutHisto->GetXaxis()->SetBinLabel(2, "Outside DUT area");
......
......@@ -39,7 +39,7 @@ void AnalysisEfficiency::initialise() {
throw InvalidValueError(m_config, "inpixel_bin_size", "Too many bins for in-pixel histograms.");
}
std::string title =
m_detector->Name() + " Pixel efficiency map;in-pixel x_{track} [#mum];in-pixel y_{track} #mum;efficiency";
m_detector->name() + " Pixel efficiency map;in-pixel x_{track} [#mum];in-pixel y_{track} #mum;efficiency";
hPixelEfficiencyMap_trackPos = new TProfile2D("pixelEfficiencyMap_trackPos",
title.c_str(),
nbins_x,
......@@ -50,7 +50,7 @@ void AnalysisEfficiency::initialise() {
pitch_y / 2.,
0,
1);
title = m_detector->Name() + " Chip efficiency map;x [px];y [px];efficiency";
title = m_detector->name() + " Chip efficiency map;x [px];y [px];efficiency";
hChipEfficiencyMap_trackPos = new TProfile2D("chipEfficiencyMap_trackPos",
title.c_str(),
m_detector->nPixels().X(),
......@@ -61,7 +61,7 @@ void AnalysisEfficiency::initialise() {
m_detector->nPixels().Y() - 0.5,
0,
1);
title = m_detector->Name() + " Global efficiency map;x [mm];y [mm];efficiency";
title = m_detector->name() + " Global efficiency map;x [mm];y [mm];efficiency";
hGlobalEfficiencyMap_trackPos = new TProfile2D("globalEfficiencyMap_trackPos",
title.c_str(),
300,
......@@ -72,7 +72,7 @@ void AnalysisEfficiency::initialise() {
1.5 * m_detector->size().Y(),
0,
1);
title = m_detector->Name() + " Chip efficiency map;x [px];y [px];efficiency";
title = m_detector->name() + " Chip efficiency map;x [px];y [px];efficiency";
hChipEfficiencyMap_clustPos = new TProfile2D("chipEfficiencyMap_clustPos",
title.c_str(),
m_detector->nPixels().X(),
......@@ -83,7 +83,7 @@ void AnalysisEfficiency::initialise() {
m_detector->nPixels().Y() - 0.5,
0,
1);
title = m_detector->Name() + " Global efficiency map;x [mm];y [mm];efficiency";
title = m_detector->name() + " Global efficiency map;x [mm];y [mm];efficiency";
hGlobalEfficiencyMap_clustPos = new TProfile2D("globalEfficiencyMap_clustPos",
title.c_str(),
300,
......@@ -111,11 +111,11 @@ void AnalysisEfficiency::initialise() {
hTrackTimeToPrevHit_notmatched = new TH1D(
"trackTimeToPrevHit_notmatched", "trackTimeToPrevHit_notmatched;time to prev hit [us];# events", 1e6, 0, 1e6);
title = m_detector->Name() + "time difference to previous track (if this has assoc cluster)";