Commit 6bd93cbf authored by Sergei Zharko's avatar Sergei Zharko
Browse files

code format fix

parent 7298fc76
......@@ -20,7 +20,7 @@
class L1Parameters {
public:
/**********************//**
/**********************/ /**
* COMPILE TIME CONSTANTS *
**************************/
......@@ -67,8 +67,6 @@ public:
static constexpr bool kIfCreateTipletPulls {false};
public:
/// Default constructor
L1Parameters() = default;
......
......@@ -10,10 +10,7 @@
#include <sstream>
// TODO: Improve log style (S.Zh.)
void L1Station::Print(int verbosity) const
{
LOG(info) << ToString(verbosity);
}
void L1Station::Print(int verbosity) const { LOG(info) << ToString(verbosity); }
std::string L1Station::ToString(int verbosityLevel, int indentLevel) const
{
......@@ -25,7 +22,8 @@ std::string L1Station::ToString(int verbosityLevel, int indentLevel) const
aStream << '\n' << indent << "Address: " << this << '\n';
}
if (verbosityLevel == 0) {
aStream << indent << "- <z [cm], typeID> = " << std::setw(12) << std::setfill(' ') << z[0] << ", " << std::setw(4) << std::setfill(' ') << type;
aStream << indent << "- <z [cm], typeID> = " << std::setw(12) << std::setfill(' ') << z[0] << ", " << std::setw(4)
<< std::setfill(' ') << type;
}
else {
aStream << indent << "Station type ID: " << std::setw(12) << std::setfill(' ') << type << '\n';
......
......@@ -55,12 +55,8 @@ public:
/// If two tracks have the same numbers of hits and ...
static bool compareCand(const L1Track& a, const L1Track& b)
{
if (a.NHits != b.NHits) {
return (a.NHits > b.NHits);
}
if (a.ista != b.ista) {
return (a.ista < b.ista);
}
if (a.NHits != b.NHits) { return (a.NHits > b.NHits); }
if (a.ista != b.ista) { return (a.ista < b.ista); }
else {
return (a.chi2 < b.chi2);
}
......
......@@ -364,8 +364,8 @@ void L1AlgoDraw::DrawTriplet(int il, int im, int ir)
marker.DrawMarker(lx[nHits - 1], ly[nHits - 1]);
}
void L1AlgoDraw::DrawDoublets(vector<L1HitIndex_t>* Duplets_hits, map<L1HitIndex_t, L1HitIndex_t>* Duplets_start, const int /*MaxArrSize*/,
L1HitIndex_t* StsRestHitsStartIndex, unsigned int* realIHit)
void L1AlgoDraw::DrawDoublets(vector<L1HitIndex_t>* Duplets_hits, map<L1HitIndex_t, L1HitIndex_t>* Duplets_start,
const int /*MaxArrSize*/, L1HitIndex_t* StsRestHitsStartIndex, unsigned int* realIHit)
{
for (int iSta = 0; iSta < NStations - 1; iSta++) {
const int firstHitOnSta = StsRestHitsStartIndex[iSta];
......@@ -397,8 +397,8 @@ void L1AlgoDraw::DrawDoublets(vector<L1HitIndex_t>* Duplets_hits, map<L1HitIndex
YX->Update();
};
void L1AlgoDraw::DrawDoubletsOnSta(int iSta, L1HitIndex_t* Duplets_hits, L1HitIndex_t* Duplets_start, const int MaxArrSize,
L1HitIndex_t* StsRestHitsStartIndex, unsigned int* realIHit)
void L1AlgoDraw::DrawDoubletsOnSta(int iSta, L1HitIndex_t* Duplets_hits, L1HitIndex_t* Duplets_start,
const int MaxArrSize, L1HitIndex_t* StsRestHitsStartIndex, unsigned int* realIHit)
{
const int firstHitOnSta = StsRestHitsStartIndex[iSta];
const int firstHitOnNextSta = StsRestHitsStartIndex[iSta + 1];
......@@ -659,7 +659,8 @@ void L1AlgoDraw::DrawInputHits()
} // DrawInputHits
void L1AlgoDraw::DrawRestHits(L1HitIndex_t* StsRestHitsStartIndex, L1HitIndex_t* StsRestHitsStopIndex, unsigned int* realIHit)
void L1AlgoDraw::DrawRestHits(L1HitIndex_t* StsRestHitsStartIndex, L1HitIndex_t* StsRestHitsStopIndex,
unsigned int* realIHit)
{
TLatex latex;
......
......@@ -32,8 +32,8 @@ public:
void DrawRecoTracks();
void DrawTriplets(std::vector<L1Triplet>& triplets, const L1HitIndex_t* realIHit);
void DrawDoublets(std::vector<L1HitIndex_t>* Duplets_hits, std::map<L1HitIndex_t, L1HitIndex_t>* Duplets_start, const int MaxArrSize,
L1HitIndex_t* StsHitsStartIndex, unsigned int* realIHit);
void DrawDoublets(std::vector<L1HitIndex_t>* Duplets_hits, std::map<L1HitIndex_t, L1HitIndex_t>* Duplets_start,
const int MaxArrSize, L1HitIndex_t* StsHitsStartIndex, unsigned int* realIHit);
void DrawDoubletsOnSta(int iSta, L1HitIndex_t* Duplets_hits, L1HitIndex_t* Duplets_start, const int MaxArrSize,
L1HitIndex_t* StsRestHitsStartIndex, unsigned int* realIHit);
......
Supports Markdown
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