31 Int_t nPhiSamples = 80;
43 for ( i = 0; i < nZsamples; i++) {
44 z[i] = (i)*dZ - HofZwavelength/2.0;
45 HofZ[i] = SawTooth(
z[i], HofZwavelength);
48 for(
Int_t i=0; i < nPhiSamples; i++){
54 TH2D *HistStreamFn =
new TH2D(
"HstreamFn",
55 "#splitline{Histogram with negative and positive contents. Six contours are defined.}{It is plotted with options CONT LIST to retrieve the contours points in TGraphs}",
56 nZsamples,
z[0],
z[nZsamples-1], nPhiSamples,
phi[0],
phi[nPhiSamples-1]);
59 for (
Int_t i = 0; i < nZsamples; i++) {
60 for(
Int_t j = 0; j < nPhiSamples; j++){
81 HistStreamFn->
Draw(
"CONT Z LIST");
94 printf(
"*** No Contours Were Extracted!\n");
101 printf(
"TotalConts = %d\n", TotalConts);
103 for(i = 0; i < TotalConts; i++){
104 contLevel = (
TList*)conts->
At(i);
105 printf(
"Contour %d has %d Graphs\n", i, contLevel->
GetSize());
106 nGraphs += contLevel->
GetSize();
114 "#splitline{Negative contours are returned first (highest to lowest). Positive contours are returned from}{lowest to highest. On this plot Negative contours are drawn in red and positive contours in blue.}",
115 2, -2, 2, 2, 0, 6.5);
123 for(i = 0; i < TotalConts; i++){
124 contLevel = (
TList*)conts->
At(i);
125 if (i<3) z0 = contours[2-i];
126 else z0 = contours[i];
127 printf(
"Z-Level Passed in as: Z = %f\n", z0);
131 for(j = 0; j < contLevel->
GetSize(); j++){
136 printf(
"\tGraph: %d -- %d Elements\n", nGraphs,curv->
GetN());
143 sprintf(val,
"%g",z0);
149 printf(
"\n\n\tExtracted %d Contours and %d Graphs \n", TotalConts, nGraphs );
175 if ( (x < -WaveLen/2) || (x > WaveLen/2)) y = -99999999;
176 if (x <= -WaveLen/4) {
178 }
else if ((x > -WaveLen/4) && (x <= WaveLen/4)) {
180 }
else if (( x > WaveLen/4) && (x <= WaveLen/2)) {
void SetTitleW(Float_t w=0)
virtual void SetContour(Int_t nlevels, const Double_t *levels=0)
Set the number and values of contour levels.
R__EXTERN TStyle * gStyle
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
To draw Mathematical Formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void SetLineColor(Color_t lcolor)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)}
void SetTitleH(Float_t h=0)
virtual Int_t GetSize() const
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
Array of doubles (64 bits per element).
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
A Graph is a graphics object made of two arrays X and Y with npoints each.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual void SetTextSize(Float_t tsize=1)
TObject * At(Int_t idx) const
virtual void Update()
Update canvas pad buffers.
void SetPalette(Int_t ncolors=kBird, Int_t *colors=0, Float_t alpha=1.)
See TColor::SetPalette.
2-D histogram with a double per channel (see TH1 documentation)}