Muon Software Tutorial Rick Wilkinson Caltech. The Basics Q: Is there a Muon class? A : No. A muon is just a RecTrack, the same class as the Tracker uses.

Slides:



Advertisements
Similar presentations
Giuseppe Roselli (CMS-RPC) Università degli Studi di Bari – INFN RPC Efficiency with Track Reconstruction Giuseppe Roselli.
Advertisements


The ATLAS B physics trigger
Upgrading the CMS simulation and reconstruction David J Lange LLNL April CHEP 2015D. Lange.
Types of Data SimTracks: generated particles SimHits: energy depositions in a detector volume Digis: Single-channel pieces of the detector’s raw binary.
Rick Wilkinson New CSC Geometry u GEANT Simulation uses DDD Geometry è Uses active gas volumes u Digitization/Reconstruction adds a C++ geometry è Adds.
IJAZ AHMEDNational Centre for Physics1. IJAZ AHMEDNational Centre for Physics2 OUTLINES oLHC parametres oRPCs oOverview of muon trigger system oIdea of.
Muon Seeding Endcap: Cathode Strip Chambers up to 6 hits/station Barrel: Drift Tubes up to 12 hits/station.
CommonDet For Calorimetry New Features Grouping DAQ readouts done for HCAL DetLayers for track navigation not done, should be easy.needed? ECAL implementation.
CSC Digitization Rick Wilkinson 1. CSC design and readout Large chambers Wires groups:5 cm wide Cathode strips: 8-16 mm wide 3.3 m wire-group hits every.
Slow Neutron Background Simulation " Long-lived neutrons created, diffuse around collision hall " They get captured by nuclei, emitting a photon " Compton.
Neutron Background Simulation Long-lived neutrons created, diffuse around collision hall They get captured by nuclei, emitting a photon Compton scattering.
Neutron Background Simulation R. Wilkinson. 2 Neutron Background Simulation Long-lived neutrons created, diffuse around collision hall They get captured.
Tracking Photon Conversions. Existing Track Seeding From pixels –Widely used, but not useful here From stereo silicon layers –Uses layers 5 and 8 (barrel),
CMS Software 101 Yuri Gershtein Organization & People Simulation Reconstruction Data Handling & Analysis Tools.
A data-driven performance evaluation method for CMS RPC trigger system & Study of Muon trigger efficiencies with official Tag & Probe package for ICHEP.
FULL CHAIN SIMULATION of CMS DETECTOR Ijaz Ahmed National centre for Physics, Islamabad.
The digitization procedure occurs separately for each Muon technology, MDT, CSC, RPC and TGC. Here the main steps of each MuonHits to Muon Digits conversion.
Framework for track reconstruction and it’s implementation for the CMS tracker A.Khanov,T.Todorov,P.Vanlaer.
Introduzione al Software di CMS N. Amapane. Nicola AmapaneTorino, Aprile Outline CMS Software projects The framework: overview Finding more.
The BESIII Offline Software Weidong Li Institute of High Energy Physics, Beijing Workshop on the cooperation of PRC-US in HEP 16 June 2006.
Non-prompt Track Reconstruction with Calorimeter Assisted Tracking Dmitry Onoprienko, Eckhard von Toerne Kansas State University, Bonn University Linear.
LAV Software Status Emanuele Leonardi – Tommaso Spadaro Photon Veto WG meeting – 2015/03/24.
Analysis with DSTs N. Amapane – INFN Torino CMS Software Tutorial November 4, 2004.
CHEP06, Mumbai-India, Feb 2006V. Daniel Elvira 1 The CMS Simulation Validation Suite V. Daniel Elvira (Fermilab) for the CMS Collaboration.
Barrel RPC Chamber consists of 2 double-gaps, each equipped with a common plane of 96 strips read-out by 6 front-end boards. The two double- gaps have.
CHEP07 conference 5 September 2007, T. Cornelissen 1 Thijs Cornelissen (CERN) On behalf of the ATLAS collaboration The Global-  2 Track Fitter in ATLAS.
HLT DT Calibration (on Data Challenge Dedicated Stream) G. Cerminara N. Amapane M. Giunta CMS Muon Meeting.
Louis Nicolas – LPHE-EPFL T-Alignment: Track Selection December 11, 2006 Track Selection for T-Alignment studies Louis Nicolas EPFL Monday Seminar December.
Jessica Leonard, U. Wisconsin, December 19, 2006 Preliminary Exam - 1 H->  Jessica Leonard University of Wisconsin - Madison Preliminary Examination.
Digitization and hit reconstruction for Silicon Tracker in MarlinReco Sergey Shulga, Tatiana Ilicheva JINR, Dubna, Russia GSU, Gomel, Belarus LCWS07 30.
Claudio Grandi INFN-Bologna CHEP 2000Abstract B 029 Object Oriented simulation of the Level 1 Trigger system of a CMS muon chamber Claudio Grandi INFN-Bologna.
Luca Lista Object Oriented Reconstruction Software for the IFR Detector of B A B AR Experiment Luca Lista INFN, Sezione di Napoli for the BaBar Computing.
General Muon Meeting, 03-March-2014 Jay Hauser “Update on Phase 2 muon Technical Proposal”  Recent developments:  ME0 inserted into HGCAL as for other.
USCMS Physics, May 2001Darin Acosta1 Status Report of PRS/  D.Acosta University of Florida Current U.S. activities PRS/  Activities New PRS organization.
CGEM-IT project and beam test program G. Felici for the FE-LNF-TO team Partially supported by the Italian Ministry of Foreign Affairs under the Program.
TeV muons: from data handling to new physics phenomena Vladimir Palichik JINR, Dubna NEC’2009 Varna, September 07-14, 2009.
Object Oriented reconstruction of the CMS muon chambers CHEP February, Padova Annalina Vitelli - INFN Torino.
Software Week - 8/12/98G. Poulard - CERN EP/ATC1 Status of Software for Physics TDR Atlas Software Week 8 December 1998 G. Poulard.
RPC Simulation software Raffaello Trentadue. RPC Digi producer RPC Digitizer RPC Synchronizer RPC Simulation model Average model Parametrized model Parametrized.
Muon Persistency Persistent Analysis Objects Muon Persistency Norbert Neumeister µ-PRS meeting February 10, 2004.
TeV Muon Reconstruction Vladimir Palichik JINR, Dubna NEC’2007 Varna, September 10-17, 2007.
SiD Tracking in the LOI and Future Plans Richard Partridge SLAC ALCPG 2009.
ATLAS ATLAS muon CSC clustering David Adams Brookhaven National Laboratory June 15, 2006 Muon Software Updated 11:00 EDT June 15, 2006.
Overview of EMU Software Rick Wilkinson. Slice Test DAQ We succeeded in using Slice Test DAQ code to take test beam data, combining chamber and trigger.
Endcap Muon CSC Software Update Tim Cox (UC Davis) US CMS EMU Meeting, CERN Jun-2002.
CMS Cathode Strip Chambers Performance with LHC Data Vladimir Palichik JINR, Dubna NEC’2013 Varna, September 10,
BESIII offline software group Status of BESIII Event Reconstruction System.
The CMS Muon System BAN Yong, Peking University 2006/12/12 IHEP, Beijing, China Outline: CMS-Muon system: introduction China’s contribution to CMS Muon.
CscClusterization and Micromegas Woochun Park Group Meeting.
A. Parenti 1 RT 2007, Batavia IL The CMS Muon System and its Performance in the Cosmic Challenge RT2007 conference, Batavia IL, USA May 03, 2007 Andrea.
EPS HEP 2007 Manchester -- Thilo Pauly July The ATLAS Level-1 Trigger Overview and Status Report including Cosmic-Ray Commissioning Thilo.
Measuring the B+→J/ψ (μμ) K+ Channel with the first LHC data in Atlas
(University of Sofia “St. Kliment Ohridski”)
CMS muon detectors and muon system performance
Approved Plots from CMS Cosmic Runs (mostly CRUZET, some earlier)
Status of Full Simulation for Muon Trigger at SLHC
The Compact Muon Solenoid Detector
Vincenzo Innocente CERN/EP/CMC
CSC Digi & RecHit Validation
Silicon Tracking with GENFIT
Optimizing Endcap Navigation
CSC Simulation Status Trigger very sensitive to wire timing!
CMS Pixel Data Quality Monitoring
Project Presentations August 5th, 2004
Jupiter and Satellites
MUC simulation and reconstruction
The CMS muon system performance
Contents First section: pion and proton misidentification probabilities as Loose or Tight Muons. Measurements using Jet-triggered data (from run).
Presentation transcript:

Muon Software Tutorial Rick Wilkinson Caltech

The Basics Q: Is there a Muon class? A : No. A muon is just a RecTrack, the same class as the Tracker uses. Q: What information can I get from a RecTrack? A: All this… GlobalPoint vertexPosition() const; GlobalVector momentumAtVertex() const; TrackCharge charge() const; Measurement1D transverseImpactParameter() const; vector recHits() const; float normalisedChiSquared() const; TrajectoryStateOnSurface outermostState() const; … and more.

Creating Standalone Muon Tracks Q: How do I get muon tracks from the muon detectors? A: AutoRecCollection muons("MuonReconstructor"); Q: Wait! What’s this about TTracks? I thought they were RecTracks? A: TTrack inherits from RecTrack, and interfaces it to the reconstruction framework COBRA. It’s nothing you have to worry about. Q: Is there anything special I need to do? A: You need to set up GEANE to propagate the tracks through the iron! setenv GEANEUSED TRUE Q: What about the segments, clusters, digis, etc.? A: They’ll be reconstructed on-demand.

Looping Over Muons Use the AutoRecCollection, just like Stephan showed you: AutoRecCollection muons("MuonReconstructor"); AutoRecCollection ::iterator muonItr; for(muonItr = muons.begin(); muonItr != muons.end(); ++muonItr) { cout charge() << endl; float pt = (*muonItr)->momentumAtVertex().perp(); cout << "the pT of this muon is " << pt << endl; } Q: What RecHits are used in the track? A: In the muon barrel, the tracks fit to track segments. In the endcaps, the tracks fit to the individual 2D points, which are selected using track segments. More on all that later.

Other Options Q: What muon Reconstructors are there? A: MuonReconstructor: -- standalone, find its own seeds L2MuonReconstructor: -- standalone, starts from L1 seed L3MuonReconstructor: -- with inner tracker hits, starts from L2 track Q: Are these tracks vertex constrained? A: No. To add a vertex constraint to the track, you must do a Kalman Filter update of the track by hand, adding the vertex point. // define beam spot with error // sigma(x) = sigma(z) = 0.1 mm // sigma(z) = 5.3 cm GlobalPoint p(0.0,0.0,0.0); GlobalError e(0.0001, 0., , 0., 0., 28.09); TrajectoryStateOnSurface traj = muonItr->innermostState(); MuonUpdatorAtVertex updator(p,e); MuonVertexMeasurement vm = updator.update(traj); TrajectoryStateOnSurface traj_trak = vm.stateAtTracker();

First Exercise The first exercise in the hands-on session will be to create a job which loops over muons and prints them out. Check out the MuonAnalysis package, go to MuonTutorial/test, and modify, build, and run MuonTracks If you get brave, feel free to play around by: extracting information from the RecTrack extracting the RecHits and looking at them looking at the TrajectoryStateOnSurface at various points If you want to try the L2MuonReconstructor or the L3MuonReconstructor, you’ll need to uncomment-out some packages in the BuildFile I provided. Try it! A solution is provided in MuonTracksSolution.cpp

Muon Subdetectors For precise position measurements: Drift Tubes (DT) –barrel Cathode Strip Chambers (CSC) –endcaps For precise time measurement: Resistive Plate Chambers (RPC) –barrel and endcap –Primarily for triggering

Drift Tubes (DT) - Barrel

Cathode Strip Chamber (CSC) - Endcaps

Resistive Plate Chambers (RPC)

Signal SimHits from CMSIM Pileup SimHits from CMSIM Digitization Ionization Drift, Avalanche Electronics L1 Trigger Clustering (CSC, RPC) Segment Building (CSC, DT) L2 Trigger standalone muon L3 Trigger with tracker

CSC Geometry CmsMuonEndcap Groups chambers into tracking DetLayers MuEndcapSystem MuEndcap (2) MuEndStation (4) MuEndRing (4 in ME1, 2 in other stations) MuEndChamber (18 or 36) Stores MuEndSegments MuEndLayer (6 per chamber) Stores SimHits Stores MuEndWireDigis Stores MuEndStripDigis Stores RecHits (clusters) MuEndChamberSpecs: Information common to a type of chamber (gas gains, shape, wire grouping...) MuEndLayerGeometry: Handles the math of tilted gangs of wires crossing trapezoidal strips

DT and RPC Geometry (note the different design philosophies) CMSMuonBarrel MuBarChamber –Stores SimHits, –Stores Digis –Stores RecHits (segments) MuBarSL –2 superlayers measure  –one measures r MuBarLayer –4 layers in a superlayer –RecHits to be added here MuBarWire CMSMuonRPC –Groups into tracking layers MRpcDetector –MRpcGlobalReader stores all digis MRpcChamber MRpcDetUnit –1, or sometimes 3 per chamber –Stores SimHits, –Can fetch Digis –Stores RecHits (clusters)

DetUnits DetUnit is the detector class where the data is stored MRpcDetUnitMuBarChamberMuEndLayerMuEndChamber DetUnit Det LocalPoint toLocal(const GlobalPoint &); GlobalPoint toGlobal(const LocalPoint &); SimDet * simDet(); // can be used to get SimHits DetUnit::RecHitContainer recHits();

Accessing Data: CSC MuEndcapSetUp * setup = Singleton ::instance(); MuEndcapSystem * endcapSystem = setup->MEndcap(); MuEndLayerIterator layerItr(endcapSystem); MuEndLayer * layer; while(layer = layerItr.next()) { vector recHits = layer->recHits(); vector wireDigis = layer->getWireDigis(); }

Accessing Data: DT MuBarrelSetup * setup = Singleton ::instance(); CMSMuonBarrel * mb = setup->MBarrel(); for( int ilayer = 0; ilayer < 4; ++ilayer) { DetLayer * layer = mb->barrelLayers()[ilayer]; for(int ichamber = 0; ichamber detUnits().size(); ++ichamber) { DetUnit * chamber = layer->detUnits()[ichamber]; SimDet * simDet = chamber->simDet(); if(simDet != 0) { SimDet::SimHitContainer simHits = simDet->simHits(); } DetUnit::RecHitContainer recHits = station->recHits(); }

Accessing Data: RPC MRpcDetector * mrpc = Singleton ::instance()->getDetector(); vector mrdigis = mrpc->giveDigis(); vector dets = Singleton ::instance()->getDetUnits(); vector ::iterator it; for (it = dets.begin(); it != dets.end(); it++) { SimDet * simDet = (*it)->simDet(); if(simDet != 0) { SimDet::SimHitContainer simHits = (*it)->simDet()->simHits(); }

Second Exercise The goal of the second exercise will be to write routines which print out: The positions of all DT segments, in global coordinates The first CSC strip digi in each layer The positions of all RPC SimHits, in global coordinates Modify and build the HitsDigisRecHits program in MuonAnalysis/MuonTutorial/test.

Technical Overview of the L1 Muon Trigger Software MuEndWireDigiMuEndStripDigi L1MuCSCTrigger L1MuCSCTrackStub L1CSCTrackFinder L1CSCTrack L1GlobalMuonTrigger L1MuGMTCand L1GlobalTrigger MuBarDigi L1MuDTTrig L1MuDTTrackSegPhi L1MuDTTrackFinder MRpcDigi L1MuRpcTrigger L1MuDTTrack L1MuDTTrackSegEta

Hand-waving Overview of the L1 Muon Trigger Software CSC Digis (Strip + Wire) L1 Global Muon Trigger DT DigisRPC Digis Local Trigger (LCT) CSC Regional Trigger RPC Trigger DT Regional Trigger Local Trigger (BTI, TRACO)

MuonReco MuonReconstruction MuonIsolation Muon MuonB, MuonE MuonRpc MuonTrackFinder CommonDet CommonReco Tracker TkDigiReader TrackerReco TkTracks TrackAnalysis Trigger L1GlobalMuon Calorimetry MuonAnalyis

Muon Isolation Has algorithms for Calo, Pixel, and Tracker Has cuts hardcoded for given “nominal” efficiencies. MuonIsolation * isolation = new MuonIsolation(); MuIsoCaloExtractor * ce = new MuIsoCaloExtractor(); MuIsoCaloIsolator * ci = new MuIsoCaloIsolator(); ci->setNominalEfficiency(0.97); isolation->setStrategy(“CALO”, ce, ci); // …. Later, in event loop over muons if(isolation->isIsolated(muon, “CALO”)) {

Analysis For the old-fashioned standard ntuple-maker, look in MuonReco/MuonReconstruction/test/MuonReconstructionNtuple.cc –Great source of example code! TAGs can be created in the database, using COBRA TAGs can be used for: –Fast event selection –Plotting directly in Lizard –Making PAW ntuples –Making ROOT trees

Future Software Plans Speed things up –Most of the time spent propagating through iron Refactor code –Separate clustering & segment-building from detector & digitization Code review? –Unify interfaces between the three subdetectors Thermal neutron background –biggest problem is in the endcaps GEANT 4, DDD Continue to develop and refine geometry, digitization, and reconstruction.