27 : fproton_color(protoncolor), fneutron_color(neutroncolor),
28 fProton_color(highlightprotoncolor), fNeutron_color(highlightneutroncolor),
29 free_nucleon_radius(freenucleonradius),
30 nucleon_radius(nucleonradius),
31 nuclear_radius_parameter(nuclearradiusparameter)
56 fHighlightMode = kNoHighlight;
88 if (nucleus->
GetA() == 1) {
102 for (
int i = 0; i <
N; i++) {
110 for (
int i = 0; i < Z; i++) {
149 while ((nuc =
event->GetNextParticle(
"ok"))) {
168 box->SetTransparency(100);
241 Error(
"SetInput",
"Problem opening %s", filename);
295 for (
int i = 0; i < nballs; i++) {
314 Warning(
"ReadTreeEvent",
"All events have been read");
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
double pow(double, double)
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
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.
void DrawNucleus(KVNucleus *, const Char_t *frame="")
Draw nucleus.
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
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
Base class container for multi-particle events.
virtual void Clear(Option_t *opt="")
KVNucleus * AddParticle()
Description of properties and kinematics of atomic nuclei.
void SetZ(Int_t z, Char_t mt=-1)
Int_t GetN() const
Return the number of neutron.
Int_t GetZ() const
Return the number of proton / atomic number.
TVector3 GetMomentum() const
void SetVelocity(const TVector3 &)
Set velocity of particle (in cm/ns units)
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)
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)
TGLCamera & CurrentCamera() const
TGLLightSet * GetLightSet() const
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)
virtual void Draw(Option_t *option="")
virtual void SetVisContainers(Bool_t flag=kTRUE)
virtual void SetLineColor(Color_t lcolor)
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
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)