132 virtual TString
Print(Bool_t element=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE);
231 TString
Print(Bool_t particles=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE);
357 TString
Print(Bool_t element=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE);
One simulated system: particles, pairwise forces, inspectors and the time integration.
Inspector on the whole event.
TString Print(Bool_t element=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE)
Describe as text "[ Inspector Event: MTD, CRT, VAL, RST (, ABORT) ]".
Bool_t IsValid()
Whether the method is one of the inspectorE methods.
Double_t ref
reference energy E0 of "EDG"/"EDL"
event * GetEvent()
The watched event.
Bool_t Inspect()
Whether the condition is satisfied now (kFALSE for an invalid method, with a message on stderr).
Bool_t IsInspectorE()
Always kTRUE.
void ResetReference()
Forget E0 of "EDG"/"EDL"; the next evaluation takes the present energy as E0.
event * evt
the watched event (not owned)
void SetEvent(event *event_)
Set the event to watch (forgets the reference energy E0).
Double_t Evaluate()
The compared quantity, see the table (the first "EDG"/"EDL" call sets E0 and gives 0).
Inspector on a pair of particles.
Double_t Evaluate()
The compared quantity: cosine, angle (degree or radian), step count, relative speed (c),...
TString Print(Bool_t particles=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE)
Describe as text "[ Inspector Particle: MTD, CRT (criterion), VAL (value), RST (result) ]".
Bool_t SetInitial_D(Bool_t index=0, TString mtd="", Double_t var=0.1)
Move one particle back along its velocity so that the present condition is the one of the given angle...
Double_t CalculateRadialVelocity()
dX.dV/norm(dX) (c), positive when receding; NaN if dX = 0.
Double_t CalculateAngle(Bool_t rad=kFALSE)
Angle between dX and dV in degree (radian if rad), NaN for a zero vector.
particle * GetParticle2()
The second particle.
Bool_t IsValid()
Whether the method is one of the inspectorP methods.
void SetParticles(particle *p1_, particle *p2_)
Set both particles.
void SetParticle1(particle *p1_)
Set the first particle.
Bool_t IsInspectorP()
Always kTRUE.
void SetParticle2(particle *p2_)
Set the second particle.
particle * p2
the two particles (not owned)
particle * GetParticle1()
The first particle.
Bool_t Inspect()
Whether the condition is satisfied now.
Double_t CalculateCosine()
Cosine of the angle between dX and dV, clamped to [-1, 1] (NaN for a zero vector).
Double_t CaculateSPD()
Relative speed, norm of dV (c).
Bool_t IsDegenerate(Bool_t needV=kTRUE)
Whether dX (or, if needV, dV) is the zero vector.
Double_t CalculateDistance()
Distance, norm of dX (fm).
Long_t CountDeriving()
Smaller of the step counts of the two particles.
Inspector : one terminating condition of event::DeriveInspect().
TString GetMethod()
The method name as given.
void SetValue(Double_t val_)
Set the criterion value to compare with (in the unit of the quantity).
methodID GetMethodID()
The method identifier (kInvalid for an unknown name).
static methodID ParseMethod(TString name)
Parse a method name.
Double_t GetCriterion()
The criterion value (default -1).
virtual Bool_t IsInspectorP()
Whether this is an inspectorP.
methodID mtd
parsed method
void SetMethod(const char *methodname)
Set the method by C string (see SetMethod(TString)).
virtual Bool_t IsInspectorE()
Whether this is an inspectorE.
void SetMethod(TString methodname)
Set the method by name.
void SetMethod(methodID id_)
Set the method by identifier.
methodID
Method identifier.
@ kPEL
"PEL": net potential energy < value
@ kACG
"ACG": largest acceleration > value
@ kKEG
"KEG": net kinetic energy > value
@ kDSTL
"DSTL": distance < value
@ kASYD
"ASYD": remaining deflection of every moving particle < value (rad), all pairs receding
@ kCNT
"CNT": number of derived steps > value
@ kDNL
"DNL": smallest step count < value
@ kTML
"TML": evolved time < value
@ kRAD
"RAD": angle between dX and dV in radian < value
@ kDSTG
"DSTG": distance > value
@ kDSL
"DSL": smallest distance between two particles < value
@ kKEL
"KEL": net kinetic energy < value
@ kVRL
"VRL": radial velocity < value
@ kASYV
"ASYV": remaining relative velocity change of every moving particle < value, all pairs receding
@ kDSG
"DSG": smallest distance between two particles > value
@ kInvalid
unknown method name
@ kVOUT
"VOUT": any moving particle is outside the volume
@ kVRG
"VRG": radial velocity > value
@ kCOS
"COS": cosine of the angle between dX and dV < value
@ kDNG
"DNG": largest step count > value (Evaluate() gives the smallest, see inspectorE)
@ kTMG
"TMG": evolved time > value
@ kVOUTA
"VOUTA": all moving particles are outside the volume
@ kEDL
"EDL": relative drift of the net energy < value
@ kPKL
"PKL": abs(net PE / net KE) < value
@ kDXG
"DXG": largest step count > value
@ kPEG
"PEG": net potential energy > value
@ kSPDL
"SPDL": relative speed < value
@ kDEG
"DEG": angle between dX and dV in degree < value
@ kPKG
"PKG": abs(net PE / net KE) > value
@ kACL
"ACL": largest acceleration < value
@ kSPDG
"SPDG": relative speed > value
@ kEDG
"EDG": relative drift of the net energy > value
@ kDXL
"DXL": smallest step count < value (Evaluate() gives the largest, see inspectorE)
static TString MethodName(methodID id)
Name of a method identifier.
virtual Bool_t Inspect()
Whether the condition is satisfied now (the base class : never).
virtual Bool_t IsValid()
Whether the method name is defined for this kind of inspector (the base class : never).
Double_t val
criterion value
void SetAbort(Bool_t abort_=kTRUE)
Make this inspector an abort inspector.
inspector()
Make an inspector without method (invalid until SetMethod()).
Bool_t abort
abort inspector
TString ftn
method name as given
virtual TString Print(Bool_t element=kFALSE, Bool_t mechanics=kFALSE, Bool_t mute=kFALSE, Bool_t pprint=kFALSE)
Describe the inspector as text (the base class : empty).
virtual Double_t Evaluate()
The quantity that is compared with the criterion (the base class : 0).
Bool_t IsAbort()
Whether this is an abort inspector.
A point body with mass, position, velocity, step count, time and an optional recorded path.