Skip to content

Commit 668ed2b

Browse files
Merge pull request #56 from sindhu-ku/develop
Minor fixes
2 parents 0344164 + d24c741 commit 668ed2b

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
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

larcv/core/DataFormat/Particle.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace larcv {
3737
, _current_type (-1)
3838
, _interaction_type (-1)
3939
, _trackid (kINVALID_UINT)
40-
, _genid (kINVALID_UINT)
4140
, _pdg (0)
4241
, _px (0.)
4342
, _py (0.)
@@ -74,7 +73,6 @@ namespace larcv {
7473
inline short nu_interaction_type () const { return _interaction_type; }
7574
// particle's info getter
7675
inline unsigned int track_id () const { return _trackid; }
77-
inline unsigned int gen_id () const { return _genid; }
7876
inline int pdg_code () const { return _pdg; }
7977
inline double px () const { return _px; }
8078
inline double py () const { return _py; }
@@ -139,7 +137,6 @@ namespace larcv {
139137
inline void nu_interaction_type (short itype) {_interaction_type = itype; }
140138
// particle's info setter
141139
inline void track_id (unsigned int id ) { _trackid = id; }
142-
inline void gen_id (unsigned int id ) { _genid = id; }
143140
inline void pdg_code (int code) { _pdg = code; }
144141
inline void momentum (double px, double py, double pz) { _px = px; _py = py; _pz = pz; }
145142
inline void end_momentum (double end_px, double end_py, double end_pz) { _end_px = end_px; _end_py = end_py; _end_pz = end_pz; }
@@ -192,7 +189,6 @@ namespace larcv {
192189
short _interaction_type; ///< if neutrino, shows interaction GENIE code. else kINVALID_USHORT
193190

194191
unsigned int _trackid; ///< Geant4 track id
195-
unsigned int _genid; ///< Original generator ID, if different from Geant4 one (e.g.: GENIE particle ID)
196192
int _pdg; ///< PDG code
197193
double _px,_py,_pz; ///< (x,y,z) component of particle's initial momentum
198194
double _end_px,_end_py,_end_pz; ///< (x,y,z) component of particle's final momentum

0 commit comments

Comments
 (0)