Commit 2674731a authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Apply clang-format-8 formatting changes

parent d53c7104
......@@ -158,10 +158,11 @@ namespace corryvreckan {
* All the required directories are deleted recursively from the top-directory (use this with caution).
*/
inline void remove_path(const std::string& path) {
int status = nftw(path.c_str(),
[](const char* remove_path, const struct stat*, int, struct FTW*) { return remove(remove_path); },
64,
FTW_DEPTH);
int status = nftw(
path.c_str(),
[](const char* remove_path, const struct stat*, int, struct FTW*) { return remove(remove_path); },
64,
FTW_DEPTH);
if(status != 0) {
throw std::invalid_argument("path cannot be completely deleted");
......
......@@ -59,7 +59,6 @@ void GblTrack::fit() {
scatterWidth(0) = 1 / (scatteringTheta(material, total_material) * scatteringTheta(material, total_material));
scatterWidth(1) = scatterWidth(0);
point.addScatterer(Eigen::Vector2d::Zero(), scatterWidth);
};
auto JacToNext = [](double val) {
Matrix5d Jac;
......@@ -81,7 +80,7 @@ void GblTrack::fit() {
};
// lambda to add plane (not the first one) and air scatterers //FIXME: Where to put them?
auto addPlane = [&JacToNext, &prevPos, &addMeasurementtoGblPoint, &addScattertoGblPoint, &points, this](
std::vector<Plane>::iterator& plane) {
std::vector<Plane>::iterator& plane) {
double dist = plane->postion() - prevPos;
double frac1 = 0.21, frac2 = 0.58;
// Current layout
......
......@@ -8,9 +8,10 @@
#pragma link off all functions;
// Missing ROOT objects
#pragma link C++ class ROOT::Math::Cartesian2D < unsigned int > +;
#pragma link C++ class ROOT::Math::DisplacementVector2D < ROOT::Math::Cartesian2D < unsigned int >, \
ROOT::Math::DefaultCoordinateSystemTag > +;
#pragma link C++ class ROOT::Math::Cartesian2D < unsigned int> + ;
#pragma link C++ class ROOT::Math::DisplacementVector2D < ROOT::Math::Cartesian2D < unsigned int>, \
ROOT::Math::DefaultCoordinateSystemTag> + \
;
// Corryvreckan objects
#pragma link C++ class corryvreckan::Object + ;
......@@ -26,4 +27,4 @@
#pragma link C++ class corryvreckan::Event + ;
// Vector of Object for internal storage
#pragma link C++ class std::vector < corryvreckan::Object* > +;
#pragma link C++ class std::vector < corryvreckan::Object*> + ;
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