Changeset 861 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 07/10/01 12:41:13 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/getThreshold.C
r855 r861 1 void getThreshold( char* filename = " data/oscar_protons.root")1 void getThreshold( char* filename = "/hdb1/users/jlopez/temp_loop.root") 2 2 { 3 3 // 4 // This macro fill the container M McEnerThreusing the task5 // MMc EnerThreCalc and shows the results.4 // This macro fill the container MHMcEnergies using the task 5 // MMcThresholdCalc and shows the results. 6 6 // 7 7 MParList parlist; … … 12 12 // 13 13 // Setup the parameter list 14 // - You need create the container M McEnerThre.14 // - You need create the container MHMcEnergies. 15 15 // + You need to put the number of trigger conditions when 16 16 // you declarete the MHMcEnergies … … 18 18 // taking only the trigger information from MMcTrig 19 19 // 20 const UInt_t numtriggerconditions = 1;20 const UInt_t numtriggerconditions = 5; 21 21 22 22 MHMcEnergies *hists = new MHMcEnergies(numtriggerconditions); … … 49 49 // Now you can display the results 50 50 // 51 for (UInt_t i=0; i<numtriggerconditions; i++) 51 for (UInt_t i=0; i<numtriggerconditions; i++) { 52 52 ((*hists)[i]).Draw(); 53 if (getchar()=='q') break; 54 } 53 55 }
Note:
See TracChangeset
for help on using the changeset viewer.