Skip to content

Commit b7f726c

Browse files
committed
adding header and remove default arguments so that ACLic can compile
1 parent d90525b commit b7f726c

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

myDialog.h

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <vector>
77
#include <TH1.h>
88
#include <TH2.h>
9+
#include <TF1.h>
910
#include <TFile.h>
1011
#include <TObjArray.h>
1112
#include <TString.h>

myDialog_2D.h

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <vector>
77
#include <TH1.h>
88
#include <TH2.h>
9+
#include <TF1.h>
10+
#include <TF2.h>
911
#include <TFile.h>
1012
#include <TObjArray.h>
1113
#include <TString.h>

myROOTSCOPE.C

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include <TGTextEntry.h>
3737
#include <TGNumberEntry.h>
3838
#include <TGTextViewStream.h>
39+
#include <TGMenu.h>
3940

4041
#include <fstream>
4142

@@ -244,7 +245,7 @@ private:
244245

245246
void To_full_xy_projection();
246247

247-
void Projection_2d( bool flagXY, bool toShow = true );
248+
void Projection_2d( bool flagXY, bool toShow );
248249

249250
void SetMarker_2d( Event_t* );
250251

@@ -557,9 +558,9 @@ void ROOTSCOPE::To_response(Event_t* e) {
557558

558559
if( key_symbol == kKey_q ) { To_Back_to_disply_histos(); }
559560

560-
else if( key_symbol == kKey_p ) { Projection_2d( 1 ); }
561+
else if( key_symbol == kKey_p ) { Projection_2d( 1, true ); }
561562

562-
else if( key_symbol == kKey_P ) { Projection_2d( 0 ); }
563+
else if( key_symbol == kKey_P ) { Projection_2d( 0, true ); }
563564

564565
else if( key_symbol == kKey_n ) { Clear_Marker2d( ); }
565566

@@ -1100,12 +1101,11 @@ void ROOTSCOPE::Initialization() {
11001101
fH2_pickX[i] = 0;
11011102
fH2_pickY[i] = 0;
11021103
}
1104+
11031105
fWhich_active_2d = 1;
11041106
fCmp_2d_X = 1;
11051107
fCmp_2d_Y = 1;
11061108

1107-
1108-
11091109
fBG_const = 0.0;
11101110
fBG_linear = 0.0;
11111111

@@ -4693,8 +4693,8 @@ void ROOTSCOPE::To_response_menu( Int_t menu_id ){
46934693
if( fIsTH2_inPad ) {
46944694
switch( menu_id ) {
46954695
case 200: To_show_histo2d_operation_dlg(); break;
4696-
case 202: Projection_2d( 1 ); break;
4697-
case 203: Projection_2d( 0 ); break;
4696+
case 202: Projection_2d( 1, true ); break;
4697+
case 203: Projection_2d( 0, true ); break;
46984698

46994699
case 204: Expand_2d(); break;
47004700
case 205: Unexpand_2d(); break;

0 commit comments

Comments
 (0)