|
FairRoot/PandaRoot
|
#include <algorithm>#include "TFile.h"#include "TTree.h"#include "TLeaf.h"#include "TString.h"#include "TH1F.h"#include "TCanvas.h"#include "TROOT.h"#include "TEventList.h"#include "TDirectory.h"#include <iostream>#include "TLine.h"#include "TLatex.h"#include "TStyle.h"#include "TObjArray.h"#include "TPRegexp.h"#include "TRegexp.h"#include <map>#include <utility>Go to the source code of this file.
Macros | |
| #define | MAX 1000 |
| #define | BINS 500 |
| #define | NCAN 3 |
| #define | MAXVARS 8 |
| #define | MAXCUTS 12 |
Typedefs | |
| typedef std::vector< pair < double, int > > | ValueMap |
| typedef std::map< int, int > | CountMap |
Functions | |
| int | gettype (TTree *t, TString varname) |
| bool | mycompare (int i, int j) |
| int | init (TTree *t) |
| int | uid (int lev, int lrun, int lmode) |
| int | countEvents (TTree *t, TEventList &el) |
| void | makeMaps (TTree *t, TString varname, TEventList &els, TEventList &elb, ValueMap &sig, ValueMap &bg, int id) |
| double | bestEffEvt (TTree *t, TString varname, TEventList &els, TEventList &elb, double &bestcut, double supr, int id) |
| double | bestSuppressionEvt (TTree *t, TString varname, TEventList &els, TEventList &elb, double &bestcut, double eff, int id) |
| int | findcut (TTree *t, TEventList &els, TEventList &elb, double supr, double &bestqa) |
| int | countVars (TString s) |
| int | countCuts (TString s) |
| int | autocutx (TString fname, TString precut="", double supr=0.95, double target=0.0001, double mineff=0.1, double minreleff=0.0, int evmult=10000, double norm=1.0, int n0s=-1) |
Variables | |
| CountMap | evcnt |
| CountMap | evcntrec [10] |
| std::map< TString, TString > | mctvar |
| TString | vars [MAX] |
| TString | cuts [MAX] |
| double | cut [MAX] |
| double | qual [MAX] |
| int | idx [MAX] |
| double | N0_sig |
| double | N0_bg |
| double | Nsigev |
| double | Nbgev |
| bool | dstarmode |
| Float_t | fbranch [MAX] |
| Int_t | ibranch [MAX] |
| Bool_t | bbranch [MAX] |
| Int_t | ev |
| Int_t | run |
| Int_t | mode |
| Int_t | rec |
| Int_t | nbranch |
| #define BINS 500 |
Definition at line 23 of file autocutx.C.
Referenced by bestCombiEvt(), and cutfinderx().
| #define MAX 1000 |
Definition at line 22 of file autocutx.C.
| #define MAXCUTS 12 |
Definition at line 26 of file autocutx.C.
| #define MAXVARS 8 |
Definition at line 25 of file autocutx.C.
| #define NCAN 3 |
Definition at line 24 of file autocutx.C.
Definition at line 29 of file autocutx.C.
| typedef std::vector<pair<double, int> > ValueMap |
Definition at line 28 of file autocutx.C.
| int autocutx | ( | TString | fname, |
| TString | precut = "", |
||
| double | supr = 0.95, |
||
| double | target = 0.0001, |
||
| double | mineff = 0.1, |
||
| double | minreleff = 0.0, |
||
| int | evmult = 10000, |
||
| double | norm = 1.0, |
||
| int | n0s = -1 |
||
| ) |
Definition at line 401 of file autocutx.C.
References b, c1, cnt, countCuts(), countEvents(), cuts, dstarmode, elb, els, evcntrec, f, findcut(), i, idx, init, mycompare(), N0_bg, N0_sig, Nbgev, nbranch, nsig, Nsigev, printf(), qual, s, t, TString, and vars.
| double bestEffEvt | ( | TTree * | t, |
| TString | varname, | ||
| TEventList & | els, | ||
| TEventList & | elb, | ||
| double & | bestcut, | ||
| double | supr, | ||
| int | id | ||
| ) |
Definition at line 189 of file autocutx.C.
References cuts, fabs(), gettype(), i, makeMaps(), Nbgev, Nsigev, qual, and TString.
Referenced by cutfinder_toyev(), cutfinderx(), and findcut().
| double bestSuppressionEvt | ( | TTree * | t, |
| TString | varname, | ||
| TEventList & | els, | ||
| TEventList & | elb, | ||
| double & | bestcut, | ||
| double | eff, | ||
| int | id | ||
| ) |
Definition at line 259 of file autocutx.C.
References cuts, fabs(), gettype(), i, makeMaps(), Nbgev, Nsigev, qual, and TString.
Referenced by cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), and findcut().
| int countCuts | ( | TString | s | ) |
| int countEvents | ( | TTree * | t, |
| TEventList & | el | ||
| ) |
Definition at line 129 of file autocutx.C.
References ev, evcnt, evcntrec, i, mode, rec, run, and uid().
Referenced by autocutx(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), cutqa(), drawHistos(), showvarexample(), simubg(), and TMVAApply().
| int countVars | ( | TString | s | ) |
| int findcut | ( | TTree * | t, |
| TEventList & | els, | ||
| TEventList & | elb, | ||
| double | supr, | ||
| double & | bestqa | ||
| ) |
Definition at line 331 of file autocutx.C.
References bestEffEvt(), bestSuppressionEvt(), cut, cuts, fabs(), i, idx, nbranch, TString, and vars.
Referenced by autocutx().
| int gettype | ( | TTree * | t, |
| TString | varname | ||
| ) |
Definition at line 51 of file autocutx.C.
References TString.
Referenced by bestCombiEvt(), bestEffEvt(), bestSuppressionEvt(), init(), makeMaps(), TMVATrainer(), TMVATrainer_608(), and TMVATraining().
| int init | ( | TTree * | t | ) |
Definition at line 71 of file autocutx.C.
References bbranch, dstarmode, ev, fbranch, gettype(), i, ibranch, mode, nbranch, ok, rec, run, TString, v, and vars.
| void makeMaps | ( | TTree * | t, |
| TString | varname, | ||
| TEventList & | els, | ||
| TEventList & | elb, | ||
| ValueMap & | sig, | ||
| ValueMap & | bg, | ||
| int | id | ||
| ) |
Definition at line 153 of file autocutx.C.
References bbranch, ev, fbranch, gettype(), i, ibranch, mode, run, and uid().
Referenced by bestCombiEvt(), bestEffEvt(), and bestSuppressionEvt().
| bool mycompare | ( | int | i, |
| int | j | ||
| ) |
Definition at line 64 of file autocutx.C.
Referenced by autocutx(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), and cutfinderx().
| int uid | ( | int | lev, |
| int | lrun, | ||
| int | lmode | ||
| ) |
Definition at line 122 of file autocutx.C.
Referenced by PndDrcReco::CanvasSave(), RhoFitterBase::Chi2Contribution(), countevents(), countEvents(), PndSimpleAnalysis::FillGenericLists(), PndAnaTask::FillList(), makeMaps(), RhoCandidate::SetUid(), and TMVAApply().
Definition at line 46 of file autocutx.C.
Referenced by init(), makeMaps(), TMVAApply(), and TMVATester().
| double cut[MAX] |
Definition at line 36 of file autocutx.C.
Referenced by analyse_etac1(), analyse_etac1_slc(), analyse_J(), analyse_J_slc(), analyse_phi_base(), PndTrkCleanup::BadTrack_ParStt(), checkphsp2_2(), Config(), CreateChannelHistos(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), cutqa(), FCDrawVariable(), findcut(), findcuts(), PndFileNameCreator::GetCustomFileName(), histos_ca(), PndSimpleCombinerTask::InitParms(), QA_histos(), readConfig(), RhoPdtLoader::ReadPDGTable(), PndSoftTriggerTask::SelectPid(), PndSoftTriggerTask::SelectPidProb(), PndSoftTriggerTask::SetDstMDiffCut(), PndSoftTriggerTask::SetInitialPidCut(), PndSciTAnaIdeal::SetLHKaonCut(), PndSdsStripCorrelator::Setup(), PndMvdRiemannVertexFinderTask::SetVertexCut(), PndRiemannTrack::SetVertexCut(), simubg(), PndTrkCleanup::SttSkewCleanup(), suppression(), and TMVAApply().
Definition at line 35 of file autocutx.C.
Referenced by PndFilteredPrimaryGenerator::AddFilter(), autocutx(), bestCombiEvt(), bestEffEvt(), bestSuppressionEvt(), Config(), cutfinderx(), findcut(), full_core_ntp(), get_tuples(), init_cuts(), init_cuts_1000(), init_cuts_95(), init_cuts_old(), PndSoftTriggerTask::ReadConfiguration(), readmodes(), PndFtfDirect::Setup(), simu_tag(), simubg(), and toy_core_ntp().
| bool dstarmode |
Definition at line 42 of file autocutx.C.
Referenced by autocutx(), cutfinderx(), and init().
| Int_t ev |
Definition at line 47 of file autocutx.C.
| CountMap evcnt |
Definition at line 31 of file autocutx.C.
Referenced by cnt_events(), countevents(), countEvents(), full_core_ntp(), simu_tag(), and toy_core_ntp().
| CountMap evcntrec[10] |
Definition at line 31 of file autocutx.C.
Referenced by autocutx(), countEvents(), and cutfinderx().
| Float_t fbranch[MAX] |
Definition at line 44 of file autocutx.C.
Referenced by init(), makeMaps(), TMVAApply(), and TMVATester().
| Int_t ibranch[MAX] |
Definition at line 45 of file autocutx.C.
Referenced by init(), makeMaps(), TMVAApply(), and TMVATester().
| int idx[MAX] |
Definition at line 38 of file autocutx.C.
Referenced by PndFastSim::acceptFilters(), ana_dsdsj2(), ana_dsdsj2_EvtLoop(), ana_dsdsj_full(), autocutx(), bestEffEvt(), bestSeparation(), bestSepEvt(), bestSuppressionEvt(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), SimpleCand::Dau(), PndSmpCand::Dau(), PndSoftTriggerTask::DoCombinatorics(), PndMdtHitProducer::Exec(), PndEmcHitProducer::Exec(), PndEmcAnalysis::Exec(), findcut(), PndEmcMakeClusterOnline::FinishCluster(), PndEmcDigiCalibrator::GetIdxByEnergy(), PndEmcDigiCalibrator::GetIdxByEnergyForBump(), PndSimpleCombiner::InitDecayInfo(), PndSttMvdGemTracking::OrderGemHits(), PndFsmMdtPid::respond(), PndFsmEmcPid::respond(), Photospp::PH_HEPEVT_Interface::set(), PndPidProbability::SetIndex(), PndFastSim::SetInvMassFilter(), PndPidCandidate::SetMcIndex(), SimpleCand::SetMotherIdx(), PndPidBremCorrected4Mom::SetPidCandIdx(), PndPidCandidate::SetTrackBranch(), PndPidCandidate::SetTrackIndex(), and PndSimpleAnalysis::SetupAnalysis().
Definition at line 32 of file autocutx.C.
Referenced by fillHistos(), and init_modes().
| Int_t mode |
Definition at line 47 of file autocutx.C.
Referenced by PndSoftTriggerTask::AcceptCandidate(), compress(), countevents(), countEvents(), crosstag(), cutfinderx(), cutqa(), evaltrig(), full_core_ntp(), getpars(), init(), inspectmode(), inspectvar(), makeMaps(), PndParticleQATask::PndParticleQATask(), PndProdAnaTask::PndProdAnaTask(), prod_ana(), prod_fsim(), prod_myana(), prod_sof(), quickfsimana(), PndSoftTriggerTask::ReadTriggerLines(), run0AllSysDPMbkg(), run_sim_stt_dpm(), run_sim_sttcombi_dpm(), run_sim_tpc_dpm(), run_sim_tpccombi_dpm(), runLumi0DPMbkg(), runLumi0DPMbkgSte(), runLumiPixel0SimDPM(), runLumiPixel0SimDPMDirect(), runLumiPixel0SimDPMDirect_all(), runLumiPixel0SimFTF(), runMC_dpm(), PndPidCorrelator::SetDrcMode(), PndPidCorrelator::SetDskMode(), PndPidCorrelator::SetEmcMode(), PndPidCorrelator::SetFtofMode(), PndPidCorrelator::SetFtsMode(), PndPidCorrelator::SetMdtMode(), PndSoftTriggerLine::SetModeCode(), PndPidCorrelator::SetMvdMode(), PndOnlineFilterInfo::SetNTag(), PndKFParticleFinderPID::SetPIDMode(), PndMdtDigiProducer::SetStripMode(), PndPidCorrelator::SetSttMode(), PndSoftTriggerTask::SetTagNSigMode(), PndPidCorrelator::SetTofMode(), PndSdsStripCorrelator::Setup(), sim_LMD(), simfast_dpm(), simfast_dpm_cmp(), softtrigger_kin5(), PndSoftTriggerTask::TagMode(), TMVAApply(), toy_core(), toy_core_ntp(), tut_fastsim(), and UserDecayConfig().
| double N0_bg |
Definition at line 40 of file autocutx.C.
Referenced by autocutx(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), and cutfinderx().
| double N0_sig |
Definition at line 40 of file autocutx.C.
Referenced by autocutx(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), and cutfinderx().
| double Nbgev |
Definition at line 41 of file autocutx.C.
Referenced by autocutx(), bestCombiEvt(), bestEffEvt(), bestSeparation(), bestSepEvt(), bestSuppressionEvt(), cutfinder_fullev(), cutfinder_toyev(), and cutfinderx().
| Int_t nbranch |
Definition at line 47 of file autocutx.C.
Referenced by autocutx(), cutfinderx(), findcut(), and init().
| double Nsigev |
Definition at line 41 of file autocutx.C.
Referenced by autocutx(), bestCombiEvt(), bestEffEvt(), bestSeparation(), bestSepEvt(), bestSuppressionEvt(), cutfinder_fullev(), cutfinder_toyev(), and cutfinderx().
| double qual[MAX] |
Definition at line 37 of file autocutx.C.
Referenced by autocutx(), bestEffEvt(), bestSuppressionEvt(), and mycompare().
| Int_t rec |
Definition at line 47 of file autocutx.C.
Referenced by countevents(), countEvents(), init(), PndCANPlets::PndCANPlets(), and DecayTreeFitter::RecoPhoton::updCache().
| Int_t run |
Definition at line 47 of file autocutx.C.
Referenced by bestSeparation(), bestSuppressionEvt(), countevents(), countEvents(), init(), makeMaps(), Next(), PndGemMonitor::PndGemMonitor(), PndGeoHandling::PndGeoHandling(), prod_ana(), prod_fsim(), prod_sof(), qa_softtrig(), quickana(), quickfsimana(), PndEmcReadProto192Data::SetParContainers(), PndEmcReadProtoData::SetParContainers(), PndPidFtofAssociatorTask::SetParContainers(), PndMdtTrkFinder::SetParContainers(), PndMdtTrkProducer::SetParContainers(), PndMcListConverter::SetParContainers(), PndEmcFWEndcapTimebasedWaveforms::SetParContainers(), PndEmcMakeDigi::SetParContainers(), PndEmcMakeRecoHit::SetParContainers(), PndEmc2DLocMaxFinder::SetParContainers(), PndJPsiExample::SetParContainers(), PndTutAnaTask::SetParContainers(), PndEventBuilderManager::SetParContainers(), PndEmcHitsToWaveform::SetParContainers(), PndTutAnaTaskD0::SetParContainers(), PndEmcFWEndcapDigi::SetParContainers(), PndTutThaiTask::SetParContainers(), PndEmcMakeCluster::SetParContainers(), PndGemMatchHits::SetParContainers(), PndGeoHandling::SetParContainers(), PndGemDigiAna::SetParContainers(), PndScrutAnaTask::SetParContainers(), PndGemIdealHitProducer::SetParContainers(), PndGemEmpty::SetParContainers(), PndMdtPointsToWaveform::SetParContainers(), PndEventBuilderOnMCEvents::SetParContainers(), PndEmcExpClusterSplitter::SetParContainers(), PndGemFindHitsAna::SetParContainers(), PndEmcCorrBump::SetParContainers(), PndEmcMakeCorr::SetParContainers(), PndEmcMakeClusterOnline::SetParContainers(), PndEmcTmpWaveformToDigi::SetParContainers(), PndEmcPhiBumpSplitter::SetParContainers(), PndAnalysisTaskExample::SetParContainers(), PndEmcAnalysis::SetParContainers(), PndGemEventBuilderOnTracks::SetParContainers(), PndAnalysisTask::SetParContainers(), PndTripleAnaTask::SetParContainers(), PndGemFindClusters::SetParContainers(), PndMyAnalysisTask::SetParContainers(), PndEmcHitProducer::SetParContainers(), PndEmcWaveformToDigi::SetParContainers(), PndEmcWaveformToCalibratedDigi::SetParContainers(), PndHypFullIdealAna::SetParContainers(), PndGemDigitize::SetParContainers(), PndHypFullAna::SetParContainers(), PndHypSimpleAna::SetParContainers(), PndEmcMultiWaveformToCalibratedDigi::SetParContainers(), PndDrcRecoLookupMapS::SetParContainers(), PndGemFindHits::SetParContainers(), PndGemFindClustersTB::SetParContainers(), PndGemFindHitsQA::SetParContainers(), PndGemMagneticFieldVsTrackParameters::SetParContainers(), PndGemTrackFinderOnHits::SetParContainers(), PndMvdGemTrackFinderOnHits::SetParContainers(), PndGemTrackFinderQA::SetParContainers(), PndGemTrackFinderOnHitsTB::SetParContainers(), PndDrcRecoLookupMap::SetParContainers(), PndSimpleAnalysis::SetParContainers(), PndFastSim::SetParContainers(), PndLLbarAnaTask::SetParContainers(), PndBarrelTrackFinder::SetParContainers(), PndPidCorrelator::SetParContainers(), PndSoftTriggerTask::SetParContainers(), and TMVAApply().
Definition at line 34 of file autocutx.C.
Referenced by autocutx(), cutfinder(), cutfinder_fullev(), cutfinder_toyev(), cutfinderx(), dalitz(), findcut(), init(), makefml(), plotTMVADemoData(), pz(), TMVATester(), TMVATrainer(), and TMVATrainer_608().
1.8.5