Skip to content

Commit d24c741

Browse files
committed
change tpc to volume_id
1 parent 14d8bdf commit d24c741

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

larcv/core/DataFormat/Flash.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace larcv {
99

1010
Flash::Flash(double time, double timeWidth, double absTime, unsigned int frame,
11-
std::vector<double> PEPerOpDet, unsigned int tpc,
11+
std::vector<double> PEPerOpDet, unsigned int volume_id,
1212
bool inBeamFrame, int onBeamTime, double fastToTotal,
1313
double xCenter, double xWidth,
1414
double yCenter, double yWidth,
@@ -18,7 +18,7 @@ namespace larcv {
1818
InstanceID_t id)
1919
: _id(id)
2020
, _time(time)
21-
, _tpc(tpc)
21+
, _volume_id(volume_id)
2222
, _timeWidth(timeWidth)
2323
, _absTime (absTime)
2424
, _frame (frame)

larcv/core/DataFormat/Flash.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace larcv {
2828

2929
/// Default constructor
3030
Flash(double time=0, double timeWidth=0, double absTime=0, unsigned int frame=0,
31-
std::vector<double> PEPerOpDet=std::vector<double>(0), unsigned int tpc=100,
31+
std::vector<double> PEPerOpDet=std::vector<double>(0), unsigned int volume_id=100,
3232
bool inBeamFrame=0, int onBeamTime=0, double fastToTotal=1,
3333
double xCenter=0, double xWidth=0,
3434
double yCenter=0, double yWidth=0,
@@ -45,7 +45,7 @@ namespace larcv {
4545
/// Getters
4646
inline InstanceID_t id () const { return _id; }
4747
inline double time () const { return _time; }
48-
inline unsigned int tpc () const { return _tpc; }
48+
inline unsigned int volume_id () const { return _volume_id; }
4949
inline double timeWidth () const { return _timeWidth; }
5050
inline double absTime () const { return _absTime; }
5151
inline unsigned int frame () const { return _frame; }
@@ -65,7 +65,7 @@ namespace larcv {
6565
/// Setters
6666
inline void id (InstanceID_t id ) { _id = id; }
6767
inline void time (double time) { _time = time; }
68-
inline void tpc (unsigned int tpc) { _tpc = tpc; }
68+
inline void volume_id (unsigned int volume_id) { _volume_id = volume_id; }
6969
inline void timeWidth (double timeWidth) { _timeWidth = timeWidth; }
7070
inline void absTime (double absTime) { _absTime = absTime; }
7171
inline void frame (unsigned int frame) { _frame = frame; }
@@ -88,7 +88,7 @@ namespace larcv {
8888

8989
InstanceID_t _id; ///< "ID" of this flash in FlashSet collection
9090
double _time; ///< Time on @ref DetectorClocksHardwareTrigger "trigger time scale" [us]
91-
unsigned int _tpc; ///< ID of the hit TPC (0-7)
91+
unsigned int _volume_id; ///< ID of the hit TPC (0-7)
9292
double _timeWidth; ///< Width of the flash in time [us]
9393
double _absTime; ///< Time by PMT readout clock
9494
unsigned int _frame; ///< Frame number

0 commit comments

Comments
 (0)