4 #include "KVEventViewer.h" 
   13 #include "KVNucleusEvent.h" 
   28    : fproton_color(protoncolor), fneutron_color(neutroncolor),
 
   29      fProton_color(highlightprotoncolor), fNeutron_color(highlightneutroncolor),
 
   30      free_nucleon_radius(freenucleonradius),
 
   31      nucleon_radius(nucleonradius),
 
   32      nuclear_radius_parameter(nuclearradiusparameter)
 
   57    fHighlightMode = kNoHighlight;
 
   89    if (nucleus.
GetA() == 1) {
 
  103    for (
int i = 0; i < 
N; i++) {
 
  111    for (
int i = 0; i < Z; i++) {
 
  151                                    nuc.GetFrame(frame, 
kFALSE)->GetV().Mag());
 
  153       if (nuc.GetZ() > 
maxZ) 
maxZ = nuc.GetZ();
 
  167    box->SetTransparency(100);
 
  293    for (
int i = 0; i < nballs; i++) {
 
  313       Warning(
"ReadTreeEvent", 
"All events have been read");
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
 
R__EXTERN TRandom * gRandom
 
char * Form(const char *fmt,...)
 
Class for iterating over "OK" nuclei in events accessed through base pointer/reference.
 
virtual void SetNumber(UInt_t num)
 
Draw events in 3D using OpenGL.
 
virtual Bool_t SetHighlight(KVNucleus *n)
Decide whether or not to highlight this nucleus in the event display.
 
Double_t nucleon_radius
radius of nucleons in nuclei
 
void ReadEvent()
Read an event from input source.
 
void DrawNextEvent()
Draw next event read from input source.
 
Int_t fproton_color
proton colour
 
Int_t fProton_color
proton colour for highlighted nuclei
 
virtual ~KVEventViewer()
Destructor.
 
Double_t nuclear_radius_parameter
to calculate radii of nuclei
 
void DrawEvent(KVEvent *, const Char_t *frame="")
Draw all particles in event which are "ok".
 
void SetInput(TBranch *eventbranch)
Read events from branch of a TTree.
 
Int_t fNeutron_color
neutron colour for highlighted nuclei
 
Double_t maxV
largest velocity of event
 
Double_t free_nucleon_radius
radius of free nucleons
 
Int_t ivol
geovolume counter
 
void DrawNucleus(KVNucleus &, const Char_t *frame="")
Draw nucleus.
 
Bool_t fSavePicture
kTRUE to save in GIF file
 
Int_t fneutron_color
neutron colour
 
Int_t maxZ
largest Z of event
 
Bool_t fMomentumSpace
kTRUE to show event in momentum space
 
TGeoMaterial * matEmptySpace
 
Abstract base class container for multi-particle events.
 
void Clear(Option_t *opt="")
 
An event container for KVNucleus objects.
 
Description of properties and kinematics of atomic nuclei.
 
Int_t GetN() const
Return the number of neutron.
 
Int_t GetZ() const
Return the number of proton / atomic number.
 
TVector3 GetMomentum() const
 
KVParticle const  * GetFrame(const Char_t *frame, Bool_t warn_and_return_null_if_unknown=kTRUE) const
 
virtual void SetAddress(void *add)
 
void SetLight(ELight light, Bool_t on)
 
void SetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t *referencePos)
 
TGLLightSet * GetLightSet() const
 
TGLCamera & CurrentCamera() const
 
void SetCurrentCamera(ECameraType camera)
 
void SetSmoothPoints(Bool_t s)
 
void SetOrthoCamera(ECameraType camera, Double_t zoom, Double_t dolly, Double_t center[3], Double_t hRotate, Double_t vRotate)
 
void SetSmoothLines(Bool_t s)
 
void SetClearColor(Color_t col)
 
void CloseGeometry(Option_t *option="d")
 
TGeoVolume * MakeBox(const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz)
 
TGeoVolume * MakeSphere(const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360)
 
void SetTopVolume(TGeoVolume *vol)
 
void SetNsegments(Int_t nseg)
 
void SetVisContainers(Bool_t flag=kTRUE) override
 
virtual TGeoNode * AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=nullptr, Option_t *option="")
 
void Draw(Option_t *option="") override
 
void SetLineColor(Color_t lcolor) override
 
virtual void Warning(const char *method, const char *msgfmt,...) const
 
virtual void Error(const char *method, const char *msgfmt,...) const
 
virtual void SetSeed(ULong_t seed=0)
 
virtual Double_t Uniform(Double_t x1, Double_t x2)
 
virtual void Sphere(Double_t &x, Double_t &y, Double_t &z, Double_t r)
 
virtual Int_t GetEntry(Long64_t entry, Int_t getall=0)
 
virtual Long64_t GetEntries() const
 
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
RVec< PromoteTypes< T0, T1 > > pow(const T0 &x, const RVec< T1 > &v)