|
Pluto v6.3.0
|
Go to the source code of this file.
Functions | |
| for (int i=0;i< nev;i++) | |
| eff_elec | Divide (gen) |
| p | AddCommand ("echo ********************************************************************************") |
| p | AddCommand ("echo Usage: This filter works in 2 modi:") |
| p | AddCommand ("echo Usage: 1.) inclusive:") |
| p | AddCommand ("echo Usage: default") |
| p | AddCommand ("echo Usage: Add in your macro after filter attachment:") |
| p | AddCommand ("echo Usage: makeDistributionManager()->Startup(\"_filter_exclusive=1\");") |
| p | AddCommand ("echo Usage: Momentum smearing is applied, you can change:") |
| p | AddCommand ("echo Usage: makeDistributionManager()->Startup(\"_filter_smear_factor=....\");") |
| p | AddCommand ("echo Debug mode: makeDistributionManager()->Startup(\"_filter_debug=1\");") |
| p | AddCommand ("_filter_debug=0") |
| p | Write () |
| s | AddCommand ("echo This event loop uses the demo filter ") |
| l | AddCommand ("if (_filter_debug); echo **** New event called") |
| l | AddCommand (eff_elec,"eff_ep = Eval(); rnd = sampleFlat(); if (rnd>eff_ep); [e+]->SetInActive(); removed=1") |
| l | AddCommand ("if (_filter_debug && removed); echo e+: $_x, $_y, $_z eff: $eff_ep <removed>") |
| l | AddCommand ("if (_filter_debug && !removed); echo e+: $_x, $_y, $_z eff: $eff_ep") |
| l | AddCommand ("formore e+; goto _start") |
| l | AddCommand ("if (_filter_debug && removed); echo e-: $_x, $_y, $_z eff: $eff_em <removed>") |
| l | AddCommand ("if (_filter_debug && !removed); echo e-: $_x, $_y, $_z eff: $eff_em") |
| l | AddCommand ("formore e-; goto _start2") |
| l | AddCommand ("if (!_filter_exclusive); goto _end;") |
| l | AddCommand (eff_protons,"eff_p = Eval(); rnd = sampleFlat(); if (rnd>eff_p); [p]->SetInActive(); removed=1") |
| l | AddCommand ("if (_filter_debug && removed); echo p: $_x, $_y, $_z eff: $eff_p <removed>") |
| l | AddCommand ("if (_filter_debug && !removed); echo p: $_x, $_y, $_z eff: $eff_p") |
| l | AddCommand ("formore p; goto _start_proton_loop") |
| l | AddCommand ("_end:") |
Variables | |
| TH3F * | eff_elec |
| TH3F * | eff_protons |
| int | nev = 1000000 |
| TFile * | f = new TFile("pluto_demo_filter.root", "RECREATE") |
| PCommandList * | p = new PCommandList("_main", "echo **** This is our demo filter, v1") |
| PCommandList * | s |
| PCommandList * | l = new PCommandList("_loop") |
| l AddCommand | ( | "_end:" | ) |
| p AddCommand | ( | ) |
| s AddCommand | ( | "echo ********************************************************************************" | ) |
| p AddCommand | ( | "echo Debug mode: makeDistributionManager()->Startup(\"_filter_debug=1\");" | ) |
| p AddCommand | ( | "echo Usage: default" | ) |
| p AddCommand | ( | "echo Usage: makeDistributionManager()->Startup(\"_filter_exclusive=1\");" | ) |
| p AddCommand | ( | "echo Usage: makeDistributionManager()->Startup(\"_filter_smear_factor=....\");" | ) |
| p AddCommand | ( | "echo Usage: | 1. | ) |
| p AddCommand | ( | "echo Usage: This filter works in 2 modi:" | ) |
| l AddCommand | ( | "formore e+; goto _start" | ) |
| l AddCommand | ( | "formore e-; goto _start2" | ) |
| l AddCommand | ( | "if (!_filter_exclusive); goto _end;" | ) |
| l AddCommand | ( | "if (_filter_debug && !removed); echo e+: | $_x, |
| $_y, | |||
| $_z eff:$eff_ep" ) |
| l AddCommand | ( | "if (_filter_debug && !removed); echo e-: | $_x, |
| $_y, | |||
| $_z eff:$eff_em" ) |
| l AddCommand | ( | "if (_filter_debug && !removed); echo p: | $_x, |
| $_y, | |||
| $_z eff:$eff_p" ) |
| l AddCommand | ( | "if (_filter_debug && removed); echo e+: | $_x, |
| $_y, | |||
| $_z eff:$eff_ep< removed >" ) |
| l AddCommand | ( | "if (_filter_debug && removed); echo e-: | $_x, |
| $_y, | |||
| $_z eff:$eff_em< removed >" ) |
| l AddCommand | ( | "if (_filter_debug && removed); echo p: | $_x, |
| $_y, | |||
| $_z eff:$eff_p< removed >" ) |
| l AddCommand | ( | "if (_filter_debug); echo **** New event called" | ) |
| l AddCommand | ( | eff_protons | ) |
| eff_protons Divide | ( | gen | ) |
| for | ( | ) |
Definition at line 55 of file make_demo_pfilter.C.
| p Write | ( | ) |
| TH3F* eff_elec |
Definition at line 48 of file make_demo_pfilter.C.
| TH3F* eff_protons |
Definition at line 50 of file make_demo_pfilter.C.
| TFile* f = new TFile("pluto_demo_filter.root", "RECREATE") |
Definition at line 89 of file make_demo_pfilter.C.
| PCommandList* l = new PCommandList("_loop") |
Definition at line 127 of file make_demo_pfilter.C.
| int nev = 1000000 |
Definition at line 54 of file make_demo_pfilter.C.
| PCommandList* p = new PCommandList("_main", "echo **** This is our demo filter, v1") |
Definition at line 92 of file make_demo_pfilter.C.
| PCommandList* s |
Definition at line 117 of file make_demo_pfilter.C.