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");
88 printf(
"*** No Contours Were Extracted!\n");
92 TList* contLevel =
nullptr;
99 printf(
"TotalConts = %d\n", TotalConts);
101 for(i = 0; i < TotalConts; i++){
102 contLevel = (
TList*)conts->
At(i);
103 printf(
"Contour %d has %d Graphs\n", i, contLevel->
GetSize());
104 nGraphs += contLevel->
GetSize();
110 c1->SetTopMargin(0.15);
112 "#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.}",
113 2, -2, 2, 2, 0, 6.5);
121 for(i = 0; i < TotalConts; i++){
122 contLevel = (
TList*)conts->
At(i);
123 if (i<3) zval0 = contours[2-i];
124 else zval0 = contours[i];
125 printf(
"Z-Level Passed in as: Z = %f\n", zval0);
129 for(j = 0; j < contLevel->
GetSize(); j++){
134 printf(
"\tGraph: %d -- %d Elements\n", nGraphs,curv->
GetN());
141 sprintf(val,
"%g",zval0);
142 l.DrawLatex(xval0,yval0,val);
147 printf(
"\n\n\tExtracted %d Contours and %d Graphs \n", TotalConts, nGraphs );
173 if ( (
x < -WaveLen/2) || (
x > WaveLen/2))
y = -99999999;
174 if (
x <= -WaveLen/4) {
176 }
else if ((
x > -WaveLen/4) && (
x <= WaveLen/4)) {
178 }
else if ((
x > WaveLen/4) && (
x <= WaveLen/2)) {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
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 Int_t GetPoint(Int_t i, Double_t &x, Double_t &y) const
Get x and y values for point number i.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetContour(Int_t nlevels, const Double_t *levels=nullptr)
Set the number and values of contour levels.
2-D histogram with a double per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
void SetBinContent(Int_t bin, Double_t content) override
Set bin content.
To draw Mathematical Formula.
TObject * After(const TObject *obj) const override
Returns the object after object obj.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
TObject * At(Int_t idx) const override
TObject * FindObject(const char *name) const override
Find an object in this collection using its name.
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)
RVec< PromoteType< T > > sin(const RVec< T > &v)