/// (w,h) is the size in pixel (if 0,0 it will be computed as 70%,90% of display size)
/// (ox,oy) is the offset from the top-left of the display
- if (!w | !h)
+ if (!w || !h)
{
w = (UInt_t)(gClient->GetDisplayWidth()*0.7);
h = (UInt_t)(gClient->GetDisplayHeight()*0.9);
TObjArray filesToOpen;
Bool_t isGeometryFixed(kFALSE);
- Int_t gix, giy;
- Int_t gox,goy;
+ Int_t gix(0),giy(0);
+ Int_t gox(0),goy(0);
Bool_t ASCIImapping(kFALSE);
TString defaultOCDB("local://$ALICE_ROOT/OCDB");
gStyle->SetPalette(n+2,colors);
delete[] colors;
- UInt_t w(0);
- UInt_t h(0);
- UInt_t ox(0);
- UInt_t oy(0);
+ AliMUONMchViewApplication* theApp(0x0);
if ( isGeometryFixed )
{
- w = gix;
- h = giy;
- ox = gox;
- oy = goy;
+ theApp = new AliMUONMchViewApplication("mchview", &argc, argv,gix,giy,gox,goy);
+ }
+ else
+ {
+ theApp = new AliMUONMchViewApplication("mchview",&argc,argv);
}
-
- AliMUONMchViewApplication* theApp = new AliMUONMchViewApplication("mchview", &argc, argv, w,h,gox,goy);
TIter next(&filesToOpen);
TObjString* s;