26 c->SetRightMargin(0.15);
27 c->SetTopMargin(0.15);
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");
86 TList* contLevel = NULL;
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();
112 c1->SetTopMargin(0.15);
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);
144 l.DrawLatex(xval0,yval0,val);
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)) {
R__EXTERN TStyle * gStyle
Array of doubles (64 bits per element).
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
virtual void SetContour(Int_t nlevels, const Double_t *levels=0)
Set the number and values of contour levels.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
2-D histogram with a double per channel (see TH1 documentation)}
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
To draw Mathematical Formula.
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
TObject * At(Int_t idx) const
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetTitleW(Float_t w=0)
void SetTitleH(Float_t h=0)