32 Int_t nPhiSamples = 80;
44 for ( i = 0; i < nZsamples; i++) {
45 z[i] = (i)*dZ - HofZwavelength/2.0;
46 HofZ[i] = SawTooth(
z[i], HofZwavelength);
49 for(
Int_t i=0; i < nPhiSamples; i++){
51 FofPhi[i] =
sin(phi[i]);
55 TH2D *HistStreamFn =
new TH2D(
"HstreamFn",
56 "#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}",
57 nZsamples,
z[0],
z[nZsamples-1], nPhiSamples, phi[0], phi[nPhiSamples-1]);
60 for (
Int_t i = 0; i < nZsamples; i++) {
61 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) zval0 = contours[2-i];
126 else zval0 = contours[i];
127 printf(
"Z-Level Passed in as: Z = %f\n", zval0);
131 for(j = 0; j < contLevel->
GetSize(); j++){
136 printf(
"\tGraph: %d -- %d Elements\n", nGraphs,curv->
GetN());
143 sprintf(val,
"%g",zval0);
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.
TObject * At(Int_t idx) const
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
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 void SetLineColor(Color_t lcolor)
Set the line color.
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
tomato 2-D histogram with a float per channel (see TH1 documentation)}
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
void SetTitleH(Float_t h=0)
THist< 2, double, THistStatContent, THistStatUncertainty > TH2D
Array of doubles (64 bits per element).
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
you should not use this method at all Int_t Int_t z
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)
Set the text size.
virtual void Update()
Update canvas pad buffers.
virtual Int_t GetSize() const
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
tomato 2-D histogram with a double per channel (see TH1 documentation)}