Skip to content

Commit 10e0fe8

Browse files
committed
stuff
1 parent 553b2d9 commit 10e0fe8

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

Detectors/TRD/base/include/TRDBase/PadPlane.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// Forwards to standard header with protection for GPU compilation
1616
#include "GPUCommonRtypes.h" // for ClassDef
1717
#include "GPUCommonDef.h"
18-
1918
////////////////////////////////////////////////////////////////////////////
2019
// //
2120
// TRD pad plane class //

Detectors/TRD/qc/include/TRDQC/CoordinateTransformer.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class ChamberSpacePoint
8282
// int getROB() const { return o2::trd::HelperMethods::getROBfromPad(mPadrow, mPadcol); }
8383

8484
protected:
85-
float mX, mY, mZ;
86-
bool mInDrift;
87-
int mID;
88-
int mDetector;
89-
float mPadrow, mPadcol, mTimebin;
90-
int mCollisionId{0};
85+
float mX{-999.0}, mY{-999.0}, mZ{-999.0};
86+
bool mInDrift{false};
87+
int mID{-1};
88+
int mDetector{-99};
89+
float mPadrow{-1.0}, mPadcol{-1.0}, mTimebin{-1.0};
90+
int mCollisionId{-1};
9191

9292
// static constexpr float xscale = 1.0 / (o2::trd::Geometry::cheight() + o2::trd::Geometry::cspace());
9393
// static constexpr float xoffset = o2::trd::Geometry::getTime0(0);

Detectors/TRD/qc/src/CoordinateTransformer.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CoordinateTransformer::CoordinateTransformer()
4949

5050
std::array<float, 3> CoordinateTransformer::Local2RCT(int det, float x, float y, float z)
5151
{
52-
// LOGP(info," {} {} det:{} x:{} y:{} z:{}",__func__,__LINE__,det,x,y,z);
52+
//LOGP(info," {} {} det:{} x:{} y:{} z:{}",__func__,__LINE__,det,x,y,z);
5353
std::array<float, 3> rct;
5454

5555
auto padPlane = mGeo->getPadPlane((det) % 6, (det / 6) % 5);
@@ -58,11 +58,14 @@ std::array<float, 3> CoordinateTransformer::Local2RCT(int det, float x, float y,
5858
int row = padPlane->getPadRow(z);
5959
if (row == 0 || row == padPlane->getNrows() - 1) {
6060
rct[0] = float(row) + padPlane->getPadRowOffsetROC(row, z) / padPlane->getLengthOPad();
61+
// LOGP(info," {} {} rct[0] row {} + padrowoffsetroc {} / padlengthO : {} for row {} and z {}",__func__,__LINE__, float(row), padPlane->getPadRowOffsetROC(row, z) , padPlane->getLengthOPad(),row,z);
6162
} else {
6263
rct[0] = float(row) + padPlane->getPadRowOffsetROC(row, z) / padPlane->getLengthIPad();
64+
// LOGP(info," {} {} rct[0] row {} + padrowoffsetroc {} / padlengthI : {} for row {} and z {}",__func__,__LINE__, float(row), padPlane->getPadRowOffsetROC(row, z) , padPlane->getLengthIPad(),row,z);
6365
}
6466

6567
// the y-coordinate is calculated directly by the padPlane object
68+
//LOGP(info," {} {} getpad({},{})",__func__,__LINE__, y,z);
6669
rct[1] = padPlane->getPad(y, z);
6770

6871
// we calculate the time coordinate by hand
@@ -71,15 +74,18 @@ std::array<float, 3> CoordinateTransformer::Local2RCT(int det, float x, float y,
7174
// account for offset between anode and cathode wires: add 0.35
7275
// convert drift velocity to from cm/us to cm/timebin
7376
rct[2] = mT0 - (x + 0.35) / (mVdrift / 10.0);
77+
//LOGP(info," {} {} rct[2] mT0:{} - ({}+0.35)/({}/10.0) = {}",__func__,__LINE__, mT0,x,mVdrift,rct[2]);
7478
} else {
7579
// anode region: very rough guess
7680
rct[2] = mT0 - 1.0 + fabs(x);
81+
//LOGP(info," {} {} rct[2] mT0:{} - 1.0+fabs({})",__func__,__LINE__, mT0,x);
7782
}
7883

7984
// Correct for Lorentz angle, but only in the drift region. ExB in the anode region causes a small offset (ca. 0.1
8085
// pads) that is constant for all clusters in the drift region.
8186
rct[1] += (x + 0.35) * mExB;
82-
// LOGP(info," {} {} det:{} rct:{:.2f}:{:.2f}:{:.2f}",__func__,__LINE__,det,rct[0],rct[1],rct[2]);
87+
//LOGP(info," {} {} rct[1] mT0:{} - 1.0+fabs({})",__func__,__LINE__, mT0,x);
88+
//LOGP(info," {} {} det:{} rct:{:.2f}:{:.2f}:{:.2f}",__func__,__LINE__,det,rct[0],rct[1],rct[2]);
8389
return rct;
8490
}
8591

0 commit comments

Comments
 (0)