Skip to content

Commit 81277fe

Browse files
committed
Do not use FairLogger::endl
This commit is removing lots of anwanted empty lines in the output of TOF digitizer. Note that with FairLogger it is no longer necessary to put "\n" nor FairLogger::endl; Now the text output of the DPL digitizer workflow is substantially smaller.
1 parent 80eed89 commit 81277fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Detectors/TOF/reconstruction/src/Clusterer.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ void Clusterer::process(DataReader& reader, std::vector<Cluster>& clusters, MCLa
3333

3434
while (reader.getNextStripData(mStripData)) {
3535
LOG(DEBUG) << "TOFClusterer got Strip " << mStripData.stripID << " with Ndigits "
36-
<< mStripData.digits.size() << FairLogger::endl;
36+
<< mStripData.digits.size();
3737
totNumDigits += mStripData.digits.size();
3838

3939
processStrip(clusters, digitMCTruth);
4040
}
4141

42-
LOG(DEBUG) << "We had " << totNumDigits << " digits in this event \n";
42+
LOG(DEBUG) << "We had " << totNumDigits << " digits in this event";
4343
}
4444

4545
//__________________________________________________
@@ -54,15 +54,15 @@ void Clusterer::processStrip(std::vector<Cluster>& clusters, MCLabelContainer co
5454
Int_t ieta, ieta2, ieta3; // it is the number of padz-row increasing along the various strips
5555

5656
for (int idig = 0; idig < mStripData.digits.size(); idig++) {
57-
// LOG(DEBUG) << "Checking digit " << idig << "\n";
57+
// LOG(DEBUG) << "Checking digit " << idig;
5858
Digit* dig = &mStripData.digits[idig];
5959
if (dig->isUsedInCluster())
6060
continue; // the digit was already used to build a cluster
6161

6262
mNumberOfContributingDigits = 0;
6363
dig->getPhiAndEtaIndex(iphi, ieta);
6464
if (mStripData.digits.size() > 1)
65-
LOG(DEBUG) << "idig = " << idig << "\n";
65+
LOG(DEBUG) << "idig = " << idig;
6666

6767
// first we make a cluster out of the digit
6868
int noc = clusters.size();
@@ -78,14 +78,14 @@ void Clusterer::processStrip(std::vector<Cluster>& clusters, MCLabelContainer co
7878
continue; // the digit was already used to build a cluster
7979
// check if the TOF time are close enough to be merged; if not, it means that nothing else will contribute to the cluster (since digits are ordered in time)
8080
float timeDigNext = digNext->getTDC() * Geo::TDCBIN; // we assume it calibrated (for now); in ps
81-
LOG(DEBUG) << "Time difference = " << timeDigNext - timeDig << "\n";
81+
LOG(DEBUG) << "Time difference = " << timeDigNext - timeDig;
8282
if (timeDigNext - timeDig > 500 /*in ps*/)
8383
break;
8484
digNext->getPhiAndEtaIndex(iphi2, ieta2);
8585

8686
// check if the fired pad are close in space
87-
LOG(DEBUG) << "phi difference = " << iphi - iphi2 << "\n";
88-
LOG(DEBUG) << "eta difference = " << ieta - ieta2 << "\n";
87+
LOG(DEBUG) << "phi difference = " << iphi - iphi2;
88+
LOG(DEBUG) << "eta difference = " << ieta - ieta2;
8989
if ((TMath::Abs(iphi - iphi2) > 1) || (TMath::Abs(ieta - ieta2) > 1))
9090
continue;
9191

@@ -105,7 +105,7 @@ void Clusterer::addContributingDigit(Digit* dig)
105105
// adding a digit to the array that stores the contributing ones
106106

107107
if (mNumberOfContributingDigits == 6) {
108-
LOG(ERROR) << "The cluster has already 6 digits associated to it, we cannot add more; returning without doing anything" << FairLogger::endl;
108+
LOG(ERROR) << "The cluster has already 6 digits associated to it, we cannot add more; returning without doing anything";
109109
}
110110
mContributingDigit[mNumberOfContributingDigits] = dig;
111111
mNumberOfContributingDigits++;
@@ -170,10 +170,10 @@ void Clusterer::buildCluster(Cluster& c, MCLabelContainer const* digitMCTruth)
170170
} else if (deltaEta == -1) { // the digit is UP wrt the cluster
171171
mask = Cluster::kUp;
172172
} else { // impossible!!
173-
LOG(DEBUG) << " Check what is going on, the digit you are trying to merge to the cluster must be in a different channels... " << FairLogger::endl;
173+
LOG(DEBUG) << " Check what is going on, the digit you are trying to merge to the cluster must be in a different channels... ";
174174
}
175175
} else { // impossible!!! We checked above...
176-
LOG(DEBUG) << " Check what is going on, the digit you are trying to merge to the cluster is too far from the cluster, you should have not got here... " << FairLogger::endl;
176+
LOG(DEBUG) << " Check what is going on, the digit you are trying to merge to the cluster is too far from the cluster, you should have not got here... ";
177177
}
178178
c.addBitInContributingChannels(mask);
179179
}

0 commit comments

Comments
 (0)