Skip to content

Commit dae0563

Browse files
Merge pull request #52 from sindhu-ku/develop
Change genid to interaction id
2 parents e983083 + 042bb1d commit dae0563

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

larcv/core/DataFormat/Neutrino.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace larcv {
3131
/// Default constructor
3232
Neutrino()
3333
: _id (kINVALID_INDEX)
34-
, _genid (kINVALID_INDEX)
34+
, _interaction_id (kINVALID_INDEX)
3535
, _mcst_index (kINVALID_INDEX)
3636
, _mct_index (kINVALID_INDEX)
3737
, _trackid (kINVALID_UINT)
@@ -67,7 +67,7 @@ namespace larcv {
6767
~Neutrino(){}
6868
/// particle's ID getter
6969
inline InstanceID_t id () const { return _id; }
70-
inline InstanceID_t gen_id () const { return _genid; }
70+
inline InstanceID_t interaction_id () const { return _interaction_id; }
7171

7272
// origin/generator info getter
7373
inline MCSTIndex_t mcst_index () const { return _mcst_index; }
@@ -122,7 +122,7 @@ namespace larcv {
122122
//
123123
// generator/origin info setter
124124
inline void id (InstanceID_t id ) { _id = id; }
125-
inline void gen_id (InstanceID_t genid ) { _genid = genid; }
125+
inline void interaction_id (InstanceID_t interaction_id ) { _interaction_id = interaction_id; }
126126
inline void mcst_index (MCSTIndex_t id ) { _mcst_index = id; }
127127
inline void mct_index (MCTIndex_t id ) { _mct_index = id; }
128128
inline void current_type (short curr) {_current_type = curr; }
@@ -167,7 +167,7 @@ namespace larcv {
167167

168168
private:
169169
InstanceID_t _id; ///< "ID" of interaction, unique inside the file
170-
InstanceID_t _genid; ///Original generator ID, if different from Geant4 one (e.g.: GENIE particle ID)
170+
InstanceID_t _interaction_id; ///Original generator ID
171171
/// index number in the origin MCShower/MCTrack container array (kINVALID_USHORT if neither)
172172
MCSTIndex_t _mcst_index;
173173
///< index number in the origin MCTruth container array (kINVALID_USHORT if MCShower/MCTrack)

0 commit comments

Comments
 (0)