#include <iostream>
#include <fstream>

#include "TMath.h"


Int_t PiHalbeUngleich90(void){

Double_t psi_spur=(Double_t)90.0;
Double_t phi=((Double_t)-180.0)+psi_spur;
phi=phi*TMath::DegToRad();
if(phi==(-TMath::Pi()/(Double_t)2.)){
	cout<<"case 1....."<<endl;
}
if(phi==(-TMath::PiOver2())){
	cout<<"case 2....."<<endl;
}
if(phi==(-(90.0*TMath::DegToRad()))){
	cout<<"case 3....."<<endl;
}
cout<<"Phi von Grad: "<<(Double_t)phi<<endl;
cout<<"Phi von RAD: "<<-TMath::Pi()/2.<<endl;
cout<<"-90GradToRad"<<-(90.0*TMath::DegToRad())<<endl;

if(phi==(-(TMath::Pi()/2.))){
	cout<<"case 1a....."<<endl;
}
if(phi==(-(90.0*TMath::DegToRad()))){
	cout<<"case 3a....."<<endl;
}
phi=(Double_t)phi;
if(phi==(-(TMath::Pi()/2.))){
	cout<<"case 1b....."<<endl;
}
if(phi==(-(90.0*TMath::DegToRad()))){
	cout<<"case 3b....."<<endl;
}
if(phi==(Double_t)(-(90.0*TMath::DegToRad()))){
	cout<<"case 4....."<<endl;
}

	return 0;
}

/*  Output when interpreting:

root [0] .x PiHalbeUngleich90.C
case 1.....
case 2.....
case 3.....
Phi von Grad: -1.5708
Phi von RAD: -1.5708
-90GradToRad-1.5708
case 1a.....
case 3a.....
case 1b.....
case 3b.....
case 4.....
(Int_t)0
root [1]
*/

/* Output when compiling:

root [0] .x PiHalbeUngleich90.C++
Info in <TUnixSystem::ACLiC>: creating shared library /home/pcatlas03/kstoeri/workspace/dez2006_zufallszahlen/./PiHalbeUngleich90_C.so
case 2.....
Phi von Grad: -1.5708
Phi von RAD: -1.5708
-90GradToRad-1.5708
case 1a.....
case 1b.....
(Int_t)0
root [1]
*/



