Public Member Functions | Public Attributes | List of all members
EventID Struct Reference

Public Member Functions

 EventID ()
 
 EventID (long r, long sr, long ev, long sl, long c)
 
bool operator< (EventID const &other) const
 
 EventID ()
 
 EventID (long r, long sr, long ev, long sl, long c, double en, double id, double weight, std::string sel)
 
bool operator< (EventID const &other) const
 
 EventID ()
 
 EventID (long r, long sr, long ev, long sl, long c, double en)
 
bool operator< (EventID const &other) const
 

Public Attributes

long run
 
long subrun
 
long event
 
long slice
 
long cycle
 
double energy
 
double cvn
 
double wgt
 
std::string select
 

Detailed Description

Definition at line 97 of file compareTextLists.C.

Constructor & Destructor Documentation

EventID::EventID ( )
inline

Definition at line 99 of file compareTextLists.C.

100  : run(0)
101  , subrun(0)
102  , event(0)
103  , slice(0)
104  , cycle(0)
105 
106  {}
EventID::EventID ( long  r,
long  sr,
long  ev,
long  sl,
long  c 
)
inline

Definition at line 108 of file compareTextLists.C.

113  : run(r)
114  , subrun(sr)
115  , event(ev)
116  , slice(sl)
117  , cycle(c)
118  {}
caf::StandardRecord * sr
TRandom3 r(0)
EventID::EventID ( )
inline

Definition at line 17 of file compareEvents.C.

18  : run(0)
19  , subrun(0)
20  , event(0)
21  , slice(0)
22  , cycle(0)
23  , energy(0.)
24  , cvn(0.)
25  , wgt(0.)
26  , select("")
27  {}
double cvn
Definition: compareEvents.C:55
double energy
Definition: compareEvents.C:54
double wgt
Definition: compareEvents.C:56
std::string select
Definition: compareEvents.C:57
EventID::EventID ( long  r,
long  sr,
long  ev,
long  sl,
long  c,
double  en,
double  id,
double  weight,
std::string  sel 
)
inline

Definition at line 29 of file compareEvents.C.

References cycle, event, run, slice, and subrun.

38  : run(r)
39  , subrun(sr)
40  , event(ev)
41  , slice(sl)
42  , cycle(c)
43  , energy(en)
44  , cvn(id)
45  , wgt(weight)
46  , select(sel)
47  {}
const Var weight
double cvn
Definition: compareEvents.C:55
double energy
Definition: compareEvents.C:54
caf::StandardRecord * sr
TRandom3 r(0)
double wgt
Definition: compareEvents.C:56
std::string select
Definition: compareEvents.C:57
EventID::EventID ( )
inline

Definition at line 14 of file compareSelectedSets.C.

15  : run(0)
16  , subrun(0)
17  , event(0)
18  , slice(0)
19  , cycle(0)
20  , energy(0.)
21  {}
double energy
Definition: compareEvents.C:54
EventID::EventID ( long  r,
long  sr,
long  ev,
long  sl,
long  c,
double  en 
)
inline

Definition at line 23 of file compareSelectedSets.C.

References cycle, energy, event, run, slice, and subrun.

29  : run(r)
30  , subrun(sr)
31  , event(ev)
32  , slice(sl)
33  , cycle(c)
34  , energy(en)
35  {}
double energy
Definition: compareEvents.C:54
caf::StandardRecord * sr
TRandom3 r(0)

Member Function Documentation

bool EventID::operator< ( EventID const &  other) const
inline

Definition at line 44 of file compareSelectedSets.C.

References cycle, event, run, slice, and subrun.

44  {
45  if(run < other.run ) return true;
46  else{
47  if(run == other.run &&
48  subrun < other.subrun) return true;
49  else{
50  if(run == other.run &&
51  subrun == other.subrun &&
52  event < other.event ) return true;
53  else {
54  if(run == other.run &&
55  subrun == other.subrun &&
56  event == other.event &&
57  slice < other.slice ) return true;
58  else{
59  if(run == other.run &&
60  subrun == other.subrun &&
61  event == other.event &&
62  slice == other.slice &&
63  cycle < other.cycle ) return true;
64  }
65  }
66  }
67  }
68  return false;
69  }
Definition: run.py:1
bool EventID::operator< ( EventID const &  other) const
inline

Definition at line 59 of file compareEvents.C.

References cycle, event, run, slice, and subrun.

59  {
60  if(run < other.run ) return true;
61  else{
62  if(run == other.run &&
63  subrun < other.subrun) return true;
64  else{
65  if(run == other.run &&
66  subrun == other.subrun &&
67  event < other.event ) return true;
68  else {
69  if(run == other.run &&
70  subrun == other.subrun &&
71  event == other.event &&
72  slice < other.slice ) return true;
73  else{
74  if(run == other.run &&
75  subrun == other.subrun &&
76  event == other.event &&
77  slice == other.slice &&
78  cycle < other.cycle ) return true;
79  }
80  }
81  }
82  }
83  return false;
84  }
Definition: run.py:1
bool EventID::operator< ( EventID const &  other) const
inline

Definition at line 126 of file compareTextLists.C.

References cycle, event, run, slice, and subrun.

126  {
127  if(run < other.run ) return true;
128  else{
129  if(run == other.run &&
130  subrun < other.subrun) return true;
131  else{
132  if(run == other.run &&
133  subrun == other.subrun &&
134  event < other.event ) return true;
135  else {
136  if(run == other.run &&
137  subrun == other.subrun &&
138  event == other.event &&
139  slice < other.slice ) return true;
140  else{
141  if(run == other.run &&
142  subrun == other.subrun &&
143  event == other.event &&
144  slice == other.slice &&
145  cycle < other.cycle ) return true;
146  }
147  }
148  }
149  }
150  return false;
151  }
Definition: run.py:1

Member Data Documentation

double EventID::cvn

Definition at line 55 of file compareEvents.C.

Referenced by fillEventIDsFromFile().

long EventID::cycle
double EventID::energy

Definition at line 54 of file compareEvents.C.

Referenced by EventID(), fillEventIDsFromFile(), and fillEventSetFromFile().

long EventID::event
long EventID::run
std::string EventID::select

Definition at line 57 of file compareEvents.C.

Referenced by fillEventIDsFromFile(), and fillEventSetFromFile().

long EventID::slice
long EventID::subrun
double EventID::wgt

Definition at line 56 of file compareEvents.C.

Referenced by fillEventIDsFromFile().


The documentation for this struct was generated from the following files: