Changeset 19842
- Timestamp:
- 10/31/19 09:56:39 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/hawc/plot_cleaned.C
r19820 r19842 38 38 /////////////////////////////////////////////////////////////////////////// 39 39 40 // ========================================================================== 41 // ============ see plot_cleaned function at the end of the file ============ 42 // ========================================================================== 40 43 Bool_t HandleInput() 41 44 { 42 // This must be there to get accesss to the GUI while the macro 43 // is still running! 44 45 // This is a pure man's command line interface to wait for a key input 46 // and allow exit but at the same time allow interaction with the GUI 45 47 TTimer timer("gSystem->ProcessEvents();", 50, kFALSE); 46 48 while (1) 47 49 { 48 //49 50 // While reading the input process gui events asynchronously 50 //51 51 timer.TurnOn(); 52 52 const char *gl = Getline("Type 'q' to exit, <return> to go on: "); … … 64 64 } 65 65 66 // 67 // Setup the data-members of your 'virtual' class 68 // 66 // Create four camera histograms 69 67 MHCamera display[4]; 70 68 69 // All 'data members' that are required globally 71 70 TCanvas *c; 72 71 MParList *fParList; … … 92 91 for (int i=0; i<4; i++) 93 92 { 93 // Tell all histograms which is the geometry to use 94 94 display[i].SetGeometry(*geomcam); 95 96 // Add the camera object to the pads 95 97 c->cd(i+1); 96 98 display[i].Draw(); 99 100 // Add the MHillas object (which pains the ellipse) 97 101 gPad->cd(1); 98 102 plist->FindObject("MHillas")->Draw(); … … 155 159 delete c; 156 160 } 161 162 // ========================================================================== 163 // 164 // Run the macro with 165 // 166 // root hawc/plot_cleaned.C\(\"00000001.003_Y_MonteCarlo003_Events.root\"\) 167 // 168 // The default file name is a Y-file (either as Monte Carlo-truth from ceres 169 // or from the callisto) 170 // 171 // From within root, the escape characters can be omitted, e.g. 172 // 173 // root 174 // [0] .x hawc/plot_cleaned.C("00000001.003_Y_MonteCarlo003_Events.root") 175 // 176 // ========================================================================== 157 177 158 178 void plot_cleaned(const char *fname)
Note:
See TracChangeset
for help on using the changeset viewer.