Event Selection and Event Dumping A Lleres A

  • Slides: 34
Download presentation
Event Selection… …and Event Dumping A. Lleres, A. Lucotte IN 2 P 3 -LPSC

Event Selection… …and Event Dumping A. Lleres, A. Lucotte IN 2 P 3 -LPSC Grenoble I. Context II. Event Selection 1) Selection algorithm 2) Truth selection algorithm 3) Reconstruction tools 4) Event bookkeeping A. Lucotte / LPSC, CNRS/IN 2 P 3 III. Event Dumping 1) d. AOD making 2) Ntuple dumping Tutorial Top. Reco 26 -FEB-2010

Event Selection in the full chain Step 1: AOD d. AOD : Object selection

Event Selection in the full chain Step 1: AOD d. AOD : Object selection - Minimum event/object filtering - d. AOD contains one or several Top. Inputs containers with all selected objects - It is the starting input to all top analyses (top pair, single-top, properties. . ) Step 2: Event Selection - Start from (default or new) Top. Inputs container objects - Apply Overlap removal, re-compute m. ET - Filter events and produce selected Top. Events containers - Produce Book keeping information - Reconstruct Composite objects - Compute final-states-dependent global variables, derived variables Step 3: Event Dump and Analysis - Dump selected Top. Events containers into POOL files (D 2 PD) - Dump selected Top. Events containers into ROOT files (Ntuples) - Transmit Book. Keeping information into dumped files Tutorial Top. Reco 26 -FEB-2010 2

Event Selection in the full chain Central production by the top group Step 1:

Event Selection in the full chain Central production by the top group Step 1: AOD d. AOD : Object selection - Minimum event/object filtering - d. AOD contains one or several Top. Inputs containers with all selected objects - It is the starting input to all top analyses (top pair, single-top, properties. . ) Step 2: Event Selection centrally organized - Start from (default or new) Top. Inputs container object by the subgroup - Apply Overlap removal, re-compute m. ET - Filter events and produce selected Top. Events containers - Produce Book keeping information - Reconstruct Composite objects - Compute final states dependent global variables, derived variables Step 3: Event Dump and Analysis - Dump selected Top. Events containers into POOL files (D 2 PD) Central production - Dump selected Top. Events containers into ROOT files (Ntuples) organized by the - Transmit Book. Keeping information into dumped files subgroup / group Tutorial Top. Reco 26 -FEB-2010 3

Event Selection with Top. Input. Algs… Tutorial Top. Reco 26 -FEB-2010 4

Event Selection with Top. Input. Algs… Tutorial Top. Reco 26 -FEB-2010 4

Event Selection Event selection can be performed with two independent packages that provides the

Event Selection Event selection can be performed with two independent packages that provides the user with generic tools to select event and reconstruct composite objects (W, Z, top quark…) : Top. Commissioning : Reconstruction/Top. Commissioning Top. Inputs. Algs : Reconstruction/Top. Inputs. Algs see JR & Dustin I will focus on this one Top. Input. Algs Top. Event. Selector Tutorial Top. Reco 26 -FEB-2010 Top. Event. Book. Keeping. Tool 5

Event Selection Event selection can be performed with two independent packages that provides the

Event Selection Event selection can be performed with two independent packages that provides the user with generic tools to select event and reconstruct composite objects (W, Z, top quark…) : Top. Commissioning : Reconstruction/Top. Commissioning Top. Inputs. Algs : Reconstruction/Top. Inputs. Algs see JR & Dustin I will focus on this one Event Selection with Top. Input. Algs Event selection is done with Top. Event. Selectors and Top. Event. Book. Keeping. Tool Input : Top. Inputs container Output: Top. Events containers Book. Keeping containers Top. Inputs. Algs makes use of 3 main types of algorithms: 1) Selection algorithms : Top. Event. Selection. Tools 2) Truth Selection algorithms : Top. Truth. Event. Selection. Tools 3) Reconstruction/selection tools of composite : Top. Event. Selection. Tools Tutorial Top. Reco 26 -FEB-2010 6

Selection algorithms Event Selection a) Event selection is done with Top. Inputs. Algs Input

Selection algorithms Event Selection a) Event selection is done with Top. Inputs. Algs Input : Top. Inputs container (centrally produced) Output : Top. Output container AND Book. Keeping b) Event selection applies an overlap removal scheme Overlap Flagging is defined on Top. Inputs objects Overlap Removal is actually applied by the Event selector e-jets overlap removal, -jet overlap removal (on request) re-computation of global variables, m. ET (. . ) c) Event selection can be organized in orthogonal selections Lepton streams : electron vs muon selections, di-electron vs di- vs e- Jet streams : 2 -3 jets events vs ≥ 4 jets events etc… d) Selection available for following final states Top. Event. Selection. Tools Type #1 : Top. Pair. Semi. Leptonic. Selector Type #2 : Top. Pair. Di. Leptonic. Selector Type #3 : Top. Pair. Lepton. Track. Selector Type #4 : Single. Top. Leptonic. Selector Tutorial Top. Reco 26 -FEB-2010 7

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector /

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector / topology selection select input object Container Single. Top. Leptonic. Selection. Top. Inputs. Name = "Top. Inputs" Single. Top. Leptonic. Selection. Electron. Jets. Container. Name = "Sg. Top. Electron. Jets. Candidates" Single. Top. Leptonic. Selection. Muon. Jets. Container. Name = "Sg. Top. Muon. Jets. Candidates" Single. Top. Leptonic. Selection. Electron. Tagged. Jets. Container. Name = "Sg. Top. Electron. BJets. Candidates" define Single. Top. Leptonic. Selection. Muon. Tagged. Jets. Container. Name = "Sg. Top. Muon. BJets. Candidates" Single. Top. Leptonic. Selection. Apply. Lepton. Veto = False Single. Top. Leptonic. Selection. Apply. Tagged. Jet. Veto = False Single. Top. Leptonic. Selection. Remove. Muon. Jet. Overlaps = True output containers apply 2 nd lepton veto apply jet -veto Single. Top. Leptonic. Selection. Tool. Missing. Et. Min = 20. 0*Ge. V Single. Top. Leptonic. Selection. Tool. Missing. Et. Max = 1000000. 0*Ge. VApply -jet overlap Single. Top. Leptonic. Selection. Tool. Jet. Number. Min =2 Single. Top. Leptonic. Selection. Tool. Jet. Number. Max =4 Apply event selection Single. Top. Leptonic. Selection. Tool. Tagged. Jet. Number. Min = 0 Single. Top. Leptonic. Selection. Tool. Tagged. Jet. Number. Max = 1000 Single. Top. Leptonic. Selection. Tool. Apply. Trigger. Decision = True …including trigger Single. Top. Leptonic. Selection. Tool. Electron. Chain. Name = "EF_e 15_medium" Single. Top. Leptonic. Selection. Tool. Muon. Chain. Name = "EF_mu 15" Selection chains Tutorial Top. Reco 26 -FEB-2010 8

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector /

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector / Lepton selection # Electron selection and veto Single. Top. Leptonic. Selection. Top. Electron. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Electron. Selection. Tool. Pt. Min = 20. 0*Ge. V Single. Top. Leptonic. Selection. Top. Electron. Selection. Tool. Em. Mask = "Tight“ define electron selection define electron-veto parameters Single. Top. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Pt. Min = 10. 0*Ge. V Single. Top. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Pt. Max = 20. 0*Ge. V Single. Top. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Em. Mask = "Medium" # Muon selection and veto Single. Top. Leptonic. Selection. Top. Muon. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Muon. Selection. Tool. Pt. Min = 20. 0*Ge. V Single. Top. Leptonic. Selection. Top. Veto. Muon. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Veto. Muon. Selection. Tool. Pt. Min = 10. 0*Ge. V Single. Top. Leptonic. Selection. Top. Veto. Muon. Selection. Tool. Pt. Max = 20. 0*Ge. V Tutorial Top. Reco 26 -FEB-2010 define muon selection define muon-veto parameters 9

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector /

Selection algorithms : Single. Top. Leptonic Type #4 : Single. Top. Leptonic. Selector / Jet selection # jet selection Single. Top. Leptonic. Selection. Top. Jet. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Jet. Selection. Tool. Apply. Eta. Cut = True Single. Top. Leptonic. Selection. Top. Jet. Selection. Tool. Pt. Min = 30. 0*Ge. V Single. Top. Leptonic. Selection. Top. Jet. Selection. Tool. Eta. Max = 5. 0 # Tagged Jet selection Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Apply. Eta. Cut = True Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Pt. Min = 30. 0*Ge. V Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Eta. Max = 2. 5 Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Tagging. Algorithm = [“SV 0"] Single. Top. Leptonic. Selection. Top. Tagged. Jet. Selection. Tool. Tagging. Weight. Cut = [5. 68] # Tagged jet veto Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Apply. Pt. Cut = True Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Apply. Eta. Cut = True Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Pt. Min = 30. 0*Ge. V Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Eta. Max = 2. 5 Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Tagging. Algorithm = [“SV 0"] Single. Top. Leptonic. Selection. Top. Veto. Tagged. Jet. Selection. Tool. Tagging. Weight. Cut = [4. 20] Tutorial Top. Reco 26 -FEB-2010 define (all) jet selection define tagged-jet selection: - choice for tagger - setup b-tag weight cut define tagged-jet veto - choice for tagger - setup specific weight cut (looser usually) 10

Selection algorithms : Top. Pair. Dileptonic Type #2 : Top. Pair. Di. Leptonic. Selector

Selection algorithms : Top. Pair. Dileptonic Type #2 : Top. Pair. Di. Leptonic. Selector / Topology selection Top. Pair. Di. Leptonic. Selection. Top. Inputs. Name = "Top. Inputs" select input Top. Pair. Di. Leptonic. Selection. Di. Electrons. Jets. Container. Name = "TTbar. Di. Electrons. Jets. Candidates" Top. Pair. Di. Leptonic. Selection. Di. Muons. Jets. Container. Name = "TTbar. Di. Muons. Jets. Candidates" Top. Pair. Di. Leptonic. Selection. Electron. Muon. Jets. Container. Name = "TTbar. Electron. Muon. Jets. Candidates" Container define output containers Top. Pair. Di. Leptonic. Selection. Apply. Lepton. Veto = False Top. Pair. Di. Leptonic. Selection. Remove. Muon. Jet. Overlaps = True Top. Pair. Di. Leptonic. Selection. Check. Tagged. Jets = False no 2 nd lepton veto Top. Pair. Di. Leptonic. Selection. Tool. EEMu. Missing. Et. Min = 35. 0*Ge. V Apply -jet overlap Top. Pair. Di. Leptonic. Selection. Tool. EMu. Missing. Et. Min = 20. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Tool. Jet. Number. Min =2 Top. Pair. Di. Leptonic. Selection. Tool. Tagged. Jet. Number. Min = 0 Top. Pair. Di. Leptonic. Selection. Tool. Check. Neutral. Charge = True Apply event selection Top. Pair. Di. Leptonic. Selection. Tool. Apply. ZMass. Veto = False Top. Pair. Di. Leptonic. Selection. Tool. Apply. ZMass. Cut = False Top. Pair. Di. Leptonic. Selection. Tool. ZMass. Min = 86. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Tool. ZMass. Max = 96. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Tool. Apply. Trigger. Decision = True …including trigger Top. Pair. Di. Leptonic. Selection. Tool. Electron. Chain. Name = "EF_e 15_medium" Selection chains Top. Pair. Di. Leptonic. Selection. Tool. Muon. Chain. Name = "EF_mu 15" Tutorial Top. Reco 26 -FEB-2010 11

Selection algorithms : Top. Pair. Dileptonic Type #2 : Top. Pair. Di. Leptonic. Selector

Selection algorithms : Top. Pair. Dileptonic Type #2 : Top. Pair. Di. Leptonic. Selector / Lepton selection Top. Pair. Di. Leptonic. Selection. Top. Leading. Electron. Selection. Tool. Apply. Pt. Cut = True define Top. Pair. Di. Leptonic. Selection. Top. Leading. Electron. Selection. Tool. Pt. Min = 20. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Top. Leading. Electron. Selection. Tool. Em. Mask = "Medium" leading electron selection define Top. Pair. Di. Leptonic. Selection. Top. Second. Electron. Selection. Tool. Apply. Pt. Cut = True Top. Pair. Di. Leptonic. Selection. Top. Second. Electron. Selection. Tool. Pt. Min = 20. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Top. Second. Electron. Selection. Tool. Em. Mask = "Medium" 2 nd electron selection Top. Pair. Di. Leptonic. Selection. Top. Leading. Muon. Selection. Tool. Apply. Pt. Cut = True Top. Pair. Di. Leptonic. Selection. Top. Leading. Muon. Selection. Tool. Pt. Min = 20. 0*Ge. V define leading muon selection Top. Pair. Di. Leptonic. Selection. Top. Second. Muon. Selection. Tool. Apply. Pt. Cut = True Top. Pair. Di. Leptonic. Selection. Top. Second. Muon. Selection. Tool. Pt. Min = 20. 0*Ge. V define 2 nd muon selection Top. Pair. Di. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Apply. Pt. Cut = True Top. Pair. Di. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Pt. Min = 20. 0*Ge. V Top. Pair. Di. Leptonic. Selection. Top. Veto. Electron. Selection. Tool. Em. Mask = "Medium" Top. Pair. Di. Leptonic. Selection. Top. Veto. Muon. Selection. Tool. Apply. Pt. Cut = True Top. Pair. Di. Leptonic. Selection. Top. Veto. Muon. Selection. Tool. Pt. Min Tutorial Top. Reco 26 -FEB-2010 = 20. 0*Ge. V define electron-veto parameter define muon-veto parameter 12

Reconstruction of top, W, Z with Top. Input. Algs… Tutorial Top. Reco 26 -FEB-2010

Reconstruction of top, W, Z with Top. Input. Algs… Tutorial Top. Reco 26 -FEB-2010 13

Reconstruction tools & Algorithms Central tools to reconstruct composite particles in Top. Input. Algs

Reconstruction tools & Algorithms Central tools to reconstruct composite particles in Top. Input. Algs Goal : provide the users in the top group with validated/benchmarked recon objects Input : both Top. Inputs and/or Top. Events containers Output : Composite. Particle container, User. Data container, new Top. Event container Reconstruction tools of composites and their selection are available in the following cases: -- resonances from leptons (Z ll, W lv) or jets (W jj) -- top quarks decaying leptonically (t blv) or hadronically (t bjj), …in different analysis contexts : l+jets, dilepton, top pair, single-top analyses. . Reconstruction is based upon the use of : -- Tools to reconstruct objects -- Selection algorithms that calls & combine the tools Tutorial Top. Reco 26 -FEB-2010 14

Reconstruction of W/Z, top : the tools Hadronic. WSelection. Tool return all jj combinations

Reconstruction of W/Z, top : the tools Hadronic. WSelection. Tool return all jj combinations or one jj combination according to R, p. T(jj) Leptonic. WSelection. Tool Use Mass constraint; return combination according to neutrino Min(Pz), Min( ) Option if no solution is found: -- “None” : no approximation made. Event is rejected -- “Null. Delta” : returns the neutrino by imposing a null discriminator -- “Scaling. Missing. Et” : rescale m. ET until a solution is found -- “Same. Eta” : returns the neutrino candidate with the same eta than lepton -- “Colinear” : returns the neutrino with the same Pz than the lepton Hadronic. Top. Selection. Tool -- returns a jjj combination according to R(jjj), highest p. T(jjj) or Mass(jjj) Hadronic. Wb. Selection. Tool -- returns W(jj)j combination vs R(Wj), M(Wj), highest Pt(Wj) Leptonic. Top. Selection. Tool -- returns the best combination vs Highest. Pt. Jet, Highest p. T(Wb), R(Wb), M(Wb) Tutorial Top. Reco 26 -FEB-2010 15

Reconstruction of W/Z, top : the algorithms Composite objects available in Top. Input. Algs

Reconstruction of W/Z, top : the algorithms Composite objects available in Top. Input. Algs The algorithms already available in Top. Inputs. Algs are: -- Top. Pair. Semi. Leptonic. Top. Selector reconstruct only the hadronic top in the “lepton + jets” channel -- Top. Pair. Semi. Leptonic. Di. Tops. Selector reconstruct both the hadronic top quark and the leptonic top quark in the “lepton+jet” -- Single. Top. Leptonic. Calculator reconstruct both the leptonic top quark in the “l+jets” single-top (preselected) channel -- Pair. Composite. Selector reconstruct Z ll, W jj, Z jj … Tutorial Top. Reco 26 -FEB-2010 16

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt (bjj) lvb # instantiation Semi. Leptonic. Top. Selection = Top. Pair. Semi. Leptonic. Top. Selector("Semi. Leptonic. Top. Selection") Semi. Leptonic. Top. Selection. Output. Level = INFO Sequence += Semi. Leptonic. Top. Selection instantiate the tool and add it to the sequence # input/output define input/output Semi. Leptonic. Top. Selection. Electron. Jets. Container. Name = "TTbar. Electron. Jets. Candidates" containers Semi. Leptonic. Top. Selection. Muon. Jets. Container. Name = "TTbar. Muon. Jets. Candidates" Semi. Leptonic. Top. Selection. Electron. Jets. Top. Container. Name = "TTbar. Electron. Jets. Top. Candidates" Semi. Leptonic. Top. Selection. Muon. Jets. Top. Container. Name = "TTbar. Muon. Jets. Top. Candidates" # set option for hadronic top reconstruction Semi. Leptonic. Top. Selection. Reconstruction. Option = "Top. First“ or “WFirst” Tutorial Top. Reco 26 -FEB-2010 Options: - “Top. First”: reco all 3 j combinations - “Wfirst” reco W jj first and then form t Wb 17

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt (bjj) lvb # set option for hadronic top reconstruction Semi. Leptonic. Top. Selection. Reconstruction. Option = "Top. First" Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Algorithm = "Highest. Pt" Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Top. Mass = 175. 0*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Apply. WMass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. WMass. Min = 70. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. WMass. Max = 90. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Apply. Top. Mass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Top. Mass. Min = 160. 0*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Top. Selection. Tool. Top. Mass. Max = 190. 0*Ge. V Tutorial Top. Reco 26 -FEB-2010 Options: “Top. First” Choice for the t jjj selection : - “Highest. Pt” (comb w/ highest - “Closest. Mass” (mt) - “Closest. Delta. R” 18

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt (bjj) lvb # set option for hadronic top reconstruction Semi. Leptonic. Top. Selection. Reconstruction. Option = "WFirst" Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Algorithm = "Closest. Mass" Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass = 80. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Apply. Mass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass. Min = 70. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass. Max = 90. 4*Ge. V Options: “WFirst” Choice for the Wjj selection: - “Closest. Mass” - “Closest. Delta. R” Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Algorithm = "Highest. Pt. Jet" Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Apply. Top. Mass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Top. Mass. Min = 149. 0*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Top. Mass. Max = 189. 0*Ge. V Tutorial Top. Reco 26 -FEB-2010 19

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt

Reconstruction of W/Z, top : examples Top. Pair. Semi. Leptonic. Top. Selector : tt (bjj) lvb # set option for hadronic top reconstruction Semi. Leptonic. Top. Selection. Reconstruction. Option = "WFirst" Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Algorithm = "Closest. Mass" Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass = 80. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Apply. Mass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass. Min = 70. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. WSelection. Tool. Mass. Max = 90. 4*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Algorithm = "Highest. Pt. Jet" Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Apply. Top. Mass. Cut = False Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Top. Mass. Min = 149. 0*Ge. V Semi. Leptonic. Top. Selection. Hadronic. Wb. Selection. Tool. Top. Mass. Max = 189. 0*Ge. V Tutorial Top. Reco 26 -FEB-2010 Options: “Top. First” or “Wfirst” Choice for the Wb selection: - “Closest. Mass. Wb” - “Closest. Delta. RWb” - “Closest. Delta. Phi. Wb” - “Highest. Pt. Jet” - “Highest. Pt. Wb” 20

Event Book. Keeping : how it works… 1) Generation of Bookkeeping information Any event

Event Book. Keeping : how it works… 1) Generation of Bookkeeping information Any event selection algorithm: -- generates a decision flag (boolean) associated to the Selection algorithm class (=Filter. Passed parameter) this flag is also recorded into a Skim. Decision container -- generates an event-mask reflecting the cut-flow selection every individual cut is assigned to a bit of an unsigned int word this word can be recorded in a dedicated User. Data container 2) Management of the recorded selection flags & event-masks Makes use of 3 generic algorithms: -- Algorithm. Decision. Writer record decision flag (Filter. Passed) Filter. Passed in the Skim. Decision container -- Algorithm. Decision. Combined. Filter can generate new decision flags from a combination of several flags -- Skim. Decision. Combined. Filter can generate a new decision flag from the combination of several Skim. Decision flags, and can be added to the Skim. Decision container Tutorial Top. Reco 26 -FEB-2010 21

Event Book. Keeping : how it works… 3) Combination/Counting & dump of Bookkeeping information

Event Book. Keeping : how it works… 3) Combination/Counting & dump of Bookkeeping information Any event selection decision-flag and event-mask must be counted and then stored in an Event. Bookkeeper container (for d. AOD dump) or in histograms (for D 3 PD dump) Several algorithms are used for this: -- Algorithm. Book. Keeping. Writer ( d. AOD) uses the (Filter. Passed) flag associated to the selection algoritm -- Skim. Decision. Bookkeeping. Writer ( d. AOD) uses the flags stored in the Skim. Decision container -- Event. Mask. Bookkeeping. Writer ( d. AOD) uses the event masks stored in a User. Data container -- Event. Book. Keeping. Maker ( Ntuple) reads Skim. Decsion and produces Histograms (1 per flag) -- Event. Mask. Book. Keeping. Maker ( Ntuple) reads the event mask and produces Histograms (bins = selection criteria) see example in d. AOD and Ntuple Dumping Tutorial Top. Reco 26 -FEB-2010 22

Event Dumping… Tutorial Top. Reco 26 -FEB-2010 23

Event Dumping… Tutorial Top. Reco 26 -FEB-2010 23

Event Dumping into a POOL format (1) 1) instantiate Top. Output. Stream and set

Event Dumping into a POOL format (1) 1) instantiate Top. Output. Stream and set the name of pool file 2) define Recorded. Containers=[] enter the list of containers (per event) to be recorded in the D 2 PD for all selected events (see next slide) Tutorial Top. Reco 26 -FEB-2010 from Output. Stream. Athena. Pool. Multiple. Stream. Manager import MSMgr Top. Outputs. Stream = MSMgr. New. Pool. Stream("Top. Outputs. Stream", "Top. Outputs. pool Recorded. Containers = ["Missing. ET#MET_Ref. Final", "Electron. Container#Electron. AODCollection", "Analysis: : Muon. Container#Staco. Muon. Collection", "Jet. Collection#Cone 4 H 1 Tower. Jets", "Rec: : Track. Particle. Container#Track. Particle. Candidate", "eg. Detail. Container#eg. Detail. AOD", "Top. Rec: : TTbar. EJContainer#*“, "Top. Rec: : TTbar. Mu. JContainer#*", "Top. Rec: : TTbar. EJMet. Container#*“ , "Top. Rec: : TTbar. Mu. JMet. Container# "Top. Rec: : TTbar. EJTop. Container#*", "Top. Rec: : TTbar. Mu. JTop. Container# "Top. Rec: : TTbar. EJDi. Tops. Container#*“, "Top. Rec: : TTbar. Mu. JDi. Tops. Cont "Top. Rec: : TTbar. EEJets. Container#*“ , "Top. Rec: : TTbar. Mu. Jets. Conta "Top. Rec: : TTbar. EMu. Jets. Container#*", "Composite. Particle. Container#*", "Skim. Decision. Collection#*"] note) electron and muon containers being orthogonal, there will always be empty containers ! 24

Event Dumping into a POOL format (2) 3) In order to define the filter

Event Dumping into a POOL format (2) 3) In order to define the filter we want to apply to all events (for which we want to generate the list of containers) we have to specify the list of algorithms i. e. event selections in: Top. Outputs. Stream. Accept. Algs(Accepted. Algorithms) 3) a. First way: enter the list of event selection algorithms # Define the Accept for event selection Accepted. Algorithms = ["Top. Pair. Semi. Leptonic. Selection", " Top. Pair. Di. Leptonic. Selection", " Single. Top. Leptonic. Selection"] Top. Outputs. Stream. Accept. Algs(Accepted. Algorithms) 4) define the Accept algorithms via Top. Out. Stream. Accept. Algs Top. Outputs. Stream. Add. Item(Recorded. Containers) 5) Add this selection to the Top. Out. Stream Tutorial Top. Reco 26 -FEB-2010 25

Event Dumping into a POOL format (3) 3) In order to define the filter

Event Dumping into a POOL format (3) 3) In order to define the filter we want to apply to all events (for which we want to generate the list of containers) we have to specify the list of algorithms i. e. event selections in: Top. Outputs. Stream. Accept. Algs(Accepted. Algorithms) 3) b. Second way: use the Skim. Decision container (which stores all selection flags) & define the decision flags associated to each selection and include them in the list 4) define the Accept algorithms via Top. Out. Stream. Accept. Algs 5) Add this selection to the Top. Out. Stream Tutorial Top. Reco 26 -FEB-2010 Top. Combined. Selection = Skim. Decision. Combined. Filter("Top. Combined. Selection. Output. Level = INFO Sequence += Top. Combined. Selection. Skim. Decision. Container. Name = "Top. Decisions" Top. Combined. Selection. Output. Skim. Decision. Label = "Top. Lepton. Jets" Top. Combined. Selection. Accepted. Skim. Decision. Label = ["TTbar. Electron. Jets", "TTbar. Muon. Jets", " TTbar. Di. Electrons. Jets", "TTbar. Di. Muons. Jets", " TTbar. Electron. Muon. Jets", " Sg. Top. Electron. Jets", "Sg. Top. Muon. Jets"] Accepted. Algorithms = ["Top. Combined. Selection"] used Top. Outputs. Stream. Accept. Algs(Accepted. Algorithms) for the Ntuple Filtering !! Top. Outputs. Stream. Add. Item(Recorded. Containers) 26

Event Dumping into Ntuples This Event Dumping is provided by Single. Top. DPDDumper (name

Event Dumping into Ntuples This Event Dumping is provided by Single. Top. DPDDumper (name is for historical reason -- tested first for single-top) It requires: 1) Setup of Athena/Root THist. Svc 2) Define the list of the Top. Events containers to be dumped into Tree 3) Filter and transfer of the book keeping information into the Ntuples (efficiency calculation etc…) Tutorial Top. Reco 26 -FEB-2010 27

Event Dumping into Ntuples 1) Initialization & declaration of THist. Svc instantiate, provide names,

Event Dumping into Ntuples 1) Initialization & declaration of THist. Svc instantiate, provide names, save as many output file as you want : - all Trees in one file - some specific Trees in a separate files – QCD-enriched for e. g. This latter option allows you to choose to run an analysis on specific samples (background, signal enriched, control sample…) 1) Initialization from Gaudi. Svc. Conf import THist. Svc Service. Mgr += THist. Svc() Service. Mgr. THist. Svc. Output = ["Top. Outputs. Stream DATAFILE='Top. Outputs. root' OPT='recreate'"] Service. Mgr. THist. Svc. Output. Level = FATAL Service. Mgr. THist. Svc. Output += ["Single. Top. Outputs. Stream DATAFILE='Single. Top. Outputs. root' OP Tutorial Top. Reco 26 -FEB-2010 28

Event Dumping into Ntuples 2) define the list of containers to be dumped into

Event Dumping into Ntuples 2) define the list of containers to be dumped into the Ntuple 2) a. set the output stream and Tree names 2) b. set the name of the containers Top. Lepton. Jets. Tree = Top. Lepton. Jets. Dumper("Top. Lepton. Jets. Tree") Top. Lepton. Jets. Tree. Output. Level = INFO Sequence += Top. Lepton. Jets. Tree. Root. Name = "Top. Outputs. Stream" Top. Lepton. Jets. Tree. Name = "Top. Lepton. Jets. Tree" Top. Lepton. Jets. Tree. Electron. Jets. Container. Name = ["TTbar. Electron. Jets. Candidates"] Top. Lepton. Jets. Tree. Electron. Jets. Container. Label = ["TTbar. EJets"] Top. Lepton. Jets. Tree. Muon. Jets. Container. Name Top. Lepton. Jets. Tree. Muon. Jets. Container. Label = ["TTbar. Muon. Jets. Candidates"] = ["TTbar. Mu. Jets"] Top. Lepton. Jets. Tree. Muon. Jets. Met. Container. Name Top. Lepton. Jets. Tree. Muon. Jets. Met. Container. Label 2) c. set the name of variable blocks to be written Tutorial Top. Reco 26 -FEB-2010 Top. Lepton. Jets. Tree. Jets. Container. Name Top. Lepton. Jets. Tree. Jets. Container. Label = ["Sg. Top. Muon. Jets. Candidates"] = ["Sg. Top. Mu. Jets"] = ["Sg. Top. Electron. BJets. Candidates", "Sg. Top. Muon = ["Sg. Top. EJets_BJets", "Sg. Top. Mu. Jets_BJets"] Top. Lepton. Jets. Tree. Electron. Dump. Tool. Options = ["Four. Mom", "Charge. Id", "Et. Cone", "Author", "PID Top. Lepton. Jets. Tree. Muon. Dump. Tool. Options = ["Four. Mom", "Charge. Id", "Author", "Chi 2", "Et. Con Top. Lepton. Jets. Tree. Jet. Dump. Tool. Options = ["Four. Mom", "Charge. Id", "Tag. Weight", "Truth. Info"] 29

Event Dumping into Ntuples 3) Filtering and bookkeeping information 3) a. create a Decision

Event Dumping into Ntuples 3) Filtering and bookkeeping information 3) a. create a Decision Tree which will contains all decisions flags stored in Skim. Decision container 3) b. set the name of the output stream and root tree 3) c. The “magic command” to fill up and filter the trees Tutorial Top. Reco 26 -FEB-2010 Skim. Decision. Tree = Skim. Decision. Dumper("Skim. Decision. Tree") Skim. Decision. Tree. Output. Level = INFO Sequence += Skim. Decision. Tree. Root. Name = "Top. Outputs. Stream" Skim. Decision. Tree. Name = "Decision. Tree" Skim. Decision. Tree. Skim. Decision. Container. Name = ["Top. Decisions"] Tree. Filling = Tree. Filler("Tree. Filling") Tree. Filling. Output. Level = INFO Sequence += Tree. Filling. Skim. Decision. Container. Name = ["Top. Decisions"] Tree. Filling. Skim. Decision. Label = ["Top. Leptonic. Event"] Tree. Filling. Root. Name = ["Top. Outputs. Stream"] 30

Event Dumping into Ntuples 3) Filtering and bookkeeping information 3) a. create a Decision

Event Dumping into Ntuples 3) Filtering and bookkeeping information 3) a. create a Decision Tree which will contains all decisions flags stored in Skim. Decision container 3) b. set the name of the output stream and root tree Skim. Decision. Tree = Skim. Decision. Dumper("Skim. Decision. Tree") Skim. Decision. Tree. Output. Level = INFO Sequence += Skim. Decision. Tree. Root. Name = "Top. Outputs. Stream" Skim. Decision. Tree. Name = "Decision. Tree" Skim. Decision. Tree. Skim. Decision. Container. Name = ["Top. Decisions"] important note: only selected events are stored in ntuple, i. e. the ORing of all selections used Tree. Filling = Tree. Filler("Tree. Filling") 3) c. The “magic command” to fill up and filter the trees Tutorial Top. Reco 26 -FEB-2010 Tree. Filling. Output. Level = INFO Sequence += Tree. Filling. Skim. Decision. Container. Name = ["Top. Decisions"] Tree. Filling. Skim. Decision. Label = ["Top. Leptonic. Event"] Tree. Filling. Root. Name = ["Top. Outputs. Stream"] 31

Example: Single. Top Ntuple architecture Single-Top “default” : from the selection…to the Tree Electron

Example: Single. Top Ntuple architecture Single-Top “default” : from the selection…to the Tree Electron Selection: Sg. Top. Electron. Jets. Tag. Tree Sg. Top. Electron. Jets. Pre. Tag. Tree Sg. Top. Electron. Jets. Medium. Fake. Tree Sg. Top. Electron. Jets. TTbar. Bkg. Tree ZDi. Electrons. Tree TTbar. Electron. Jets. Tree TTbar. Di. Electrons. Jets. Tree Muon Selection: Selection Sg. Top. Muon. Jets. Pre. Tags. Tree Sg. Top. Muon. Jets. Tag. Tree Sg. Top. Muon. Jets. Medium. Fake. Tree Sg. Top. Electron. Jets. TTbar. Bkg. Tree ZDi. Muons. Tree TTbar. Muon. Jets. Tree TTbar. Di. Muons. Jets. Tree Tutorial Top. Reco 26 -FEB-2010 Electron. Pre. Tag and Muon. Pre. Tag selections (no btag preselected samples): -- at least one tight lepton (e, muon) above 20 Ge. V -- no other lepton above 20 Ge. V -- at least 2 jets above 30 Ge. V with -- at most 3 jets above 30 Ge. V with -- transverse missing energy m. ET > 20 Ge. V dielectron and dimuon selections (control samples): -- at least one 'tight' lepton and one 'medium' lepton of opposite signs above 20 Ge. V -- no other lepton 'medium' above 20 Ge. V -- Mass window cut or no 32

Single. Top Ntuple Architecture Single-Top “default” trees for selected events Decision. Tree : tree

Single. Top Ntuple Architecture Single-Top “default” trees for selected events Decision. Tree : tree for all events, contains a flag per selection Decision. Tree : Book. Keeping : Top. Inputs. Tree Trigger. Tree Truth. Decision. Tree Truth. Book. Keeping : histograms displaying the number of events selected for each selection Top. Input : needed at the begining / to be used for optimization of the selection. Filtered by the OR of all selections Trigger Tree: contains all trigger flags Tutorial Top. Reco 26 -FEB-2010 33

Conclusion Now to the practical part : see Annick and Dustin… Tutorial Top. Reco

Conclusion Now to the practical part : see Annick and Dustin… Tutorial Top. Reco 26 -FEB-2010 34