Difference: MuonDaqAnalysis (1 vs. 6)

Revision 62008-06-25 - GiacomoGraziani

Line: 1 to 1
 
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

Line: 119 to 119
 
Muon/Cosmics
provides a tool for standalone cosmic track reconstruction, using a neural network;
Muon/CosmicMonitor
algorithm for muon monitoring using cosmics;
Muon/MuonOnlineMonitor
provides scripts, configuration files and utilities for running the online monitoring. The options directory includes the "runGaudi" script for running the previous algorithms offline. Here is a sample session on lxplus:
Changed:
<
<
    • setenvOnline (default recommended)
>
>
    • setenvOnline (default recommended)
 
    • getpack Muon/MuonMonKernel head
    • getpack Muon/MuonMonitor head
    • getpack Muon/Cosmics head
Line: 128 to 128
 
    • cd Muon/MuonOnlineMonitor/v*/cmt
    • cmt config
    • source setup.csh
Added:
>
>
    • cmt br make (takes some time...)
 
    • cd ../options
    • ./runsOnCastor.pl 22688
    • ./runGaudi

Revision 52008-06-23 - GiacomoGraziani

Line: 1 to 1
 
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

Changed:
<
<
These page contain an introduction for the DAQ data analysis.
>
>
This page contains an introduction for reading and analyzing Muon real data acquired during the commissioning phase.
 

LHCb Online Page

Line: 12 to 13
 

Talks

Deleted:
<
<
 
Deleted:
<
<

Links

 
Changed:
<
<
>
>

Links

 
Added:
>
>
 

Data location

Changed:
<
<
Data files taken with DAQ from Control Room are written in the directories:
  • LHCb acquisition: /daqarea/lhcb/data/2008/RAW/LHCb/PHYSICS/#runnumber
  • MUON acquisition (e.g. side C): /daqarea/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber
20774 - 20778 * Some test data can be found on the online cluster in /group/muon/testdata or on castor /castor/cern.ch/user/g/ggiacomo/testdata
>
>
Data files acquired by the LHCB DAQ are written locally (in the online network) to the following directory:

/daqarea/lhcb/data/2008/RAW/ partition / recipe / #runnumber

where

  • partition is LHCb for global data taking; MUON, MUONC or MUONA for standalone muon daq;
  • recipe is usually PHYSICS

data are automatically migrated to castor (within about one hour) as

/castor/cern.ch/grid/lhcb/data/2008/RAW/ partition / recipe / #runnumber

Beware that files smaller than a few Mbytes could not be copied to Castor.

Early data from the first semi--manual detector DAQ of December 2007 are available for posterity under the local folder /group/muon/testdata and on castor under /castor/cern.ch/user/g/ggiacomo/testdata

 

Runs

Changed:
<
<
Run type Run number Run description Activity
Cosmics 22788 Taken with aligned Calo LHCb
Noise 22902 Just testing the acquisition on side C MUONC
>
>
Details on the DAQ conditions during Commissioning are available on the MUON and L0 Trigger electronic logbooks. Here is a short summary of the most important runs
 
Changed:
<
<

Procedure for data analysis

>
>
Run type Run number Partition
Tell1 high-rate tests 24602, 24611 MUON
PDM 24278 LHCb
Cosmics (trigger : MUON M3 or CALO) 24080, 24109, 24113 LHCb
Cosmics (trigger : muon M3) 23872 MUON
Cosmics (trigger : MUON M4-M5 or CALO) 23837 LHCb
Cosmics (trigger : MUON M4-M5) 23606 LHCb
Cosmics (trigger : CALO) 23604 LHCb
Noise 22902 MUONC
Cosmics (trigger : CALO) 22788 LHCb
Cosmics (trigger : MUON M4-M5 or CALO) 22688 LHCb
Cosmics (trigger : CALO) 22670, 22678, 22684 LHCb
Cosmics (trigger : MUON M4-M5 or CALO) 22617 LHCb
PDM 22553 MUONC
PDM 21422 MUONC
Cosmics (trigger : MUON M4-M5) 21396 LHCb
Cosmics (trigger : MUON M4-M5 or CALO) 21394, 21395 LHCb
First Cosmic run (trigger : CALO) 20989 LHCb

Tips and Tricks for data analysis

Environment

you can use lxplus, where the LHCb environment is set up by default, to analyze data from castor. This is the recommended way for offline data analysis.

For quick and more online-related jobs, you can also use the machines on the online network:

  • ssh lbgw (only from cern network)
  • import your code using "cvs co"
  • ssh plus
  • setup LHCb environment:
    • tcsh shell: source /group/muon/scripts/lhcbsetup.csh
    • bash shell: . /group/muon/scripts/lhcbsetup.sh
  • choose your preferred environment (setenvBrunel, setenvOnline, ...)
  • access the data from the /daqarea
 

Data Access

Changed:
<
<
Lots of useful informations are kept in the data online page. To directly access data on the online cluster you need
  • First of all you should log onto the online cluster (e.g. linux: ssh -X lbgw.cern.ch).
  • Then you should log into the plus01 machine: ssh plus01
Otherwise you can access data on castor
  • Data is copied to castor every hour. E.g. data under /daqarea/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber can be found in castor: /castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber
    • To check if your favourite run is there try for example: rfdir /castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/
  • You can run either on raw or MDF files......
    • EventSelector.Input += {"DATAFILE='PFN:rfio:///castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/22902/022902_0000022654.raw' TYP='POOL_ROOT' OPT='READ'"};
    • EventSelector.Input += {"DATA='rfio:///castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/xxx/xxx.mdf' SVC='LHCb::MDFSelector'"};

Data Analysis

To run your favourite monitor you can start, on lxplus, using
  • setenvBrunel (default recommended)
  • getpack Muon/MuonMonitor (default again)
  • getpack Rec/Brunel (def)
  • compile Brunel after having added MuonMonitor to the requirements
  • You can now change the User_realdata.opts file to point to your raw data information.....
  • To run analysis you can just: $BRUNELROOT/slc_.../Brunel.exe $MUONMONITORROOT/options/gaudi_realdata.opts
This chain has been tested with Brunel_v32r5 + MuonMonitor v2r3 A monitor.root files is created!

LHCb Online Presenter

Instructions on how to run the LHCb Online Presenter and see Muon monitoring histograms

  • Read the documentation about running the presenter
  • login on some node on the LHCb online network (look here for instructions)
    • for Linux (pit account):
      • ssh -X lbgw.cern.ch
      • ssh plus
      • set the DIM node: DIM_DNS_NODE=$HOST; export DIM_DNS_NODE; [BASH]
      • start the presenter: /group/muon/scripts/runpresenter [BASH]
    • On lxplus
      • setenvOnline [head or your fav version]
      • getpack Online/Presenter [head or your fav version]
      • cd Online/Presenter/vXrX/cmt/
      • cmt config; source setup.csh; make
      • Examples on how to run :: $PRESENTERROOT/test/*
  • browse through the page tree on the left, look in "Muon Commissioning"
  • single click on your favourite page
If you see no histograms the presenter is not running and you can use it to monitor previous histos (runs)
  • From the Presenter, you can use Tools!History Mode, then click on the “file” menu
  • Then select MuonDAQMon-runXXXXX.root
>
>
Your job.options file should include the following:
EventPersistencySvc.CnvServices      = {"LHCb::RawDataCnvSvc/RawDataCnvSvc" };
ApplicationMgr.SvcOptMapping    += { "Gaudi::IODataManager/IODataManager" };
#include "$STDOPTS/DstDicts.opts"
EventSelector.Input = {
 "DATA='PFN:rfio:/castor/cern.ch/grid/lhcb/data/2008/RAW/LHCb/PHYSICS/22688/022688_0000011673.raw'SVC='LHCb::MDFSelector'"
}
The Muon/MuonOnlineMonitor package provides, in the options directory, two scripts for getting quickly the list of files related to a given run or a run range:
  • runoptions.pl for data on the online network
  • runsOnCastor.pl for data on Castor
usage is (default partition is LHCb ; default recipe is PHYSICS):
   ./runsOnCastor.pl [-p partition] [-r recipe] Run
to get the file list from the given Run
   ./runsOnCastor.pl [-p partition] [-r recipe] Runmin Runmax
to get the file list from the given Run interval.

The output is a file called "dynamicRun.opts" that you can include in your options files

Running the Muon Monitoring offline

The code that is used for Muon Online data monitoring is available in the cvs repository and can be run offline from your favorite environment (Online, Brunel, Moore, ...), providing an example of analysis. Packages are:
Muon/MuonMonKernel
common tools used by the other packages. This includes an "ad-hoc" fast decoding/reconstruction tool for online monitoring. Note that offline analysis should use the official tools under Muon/MuonDAQ rather than this one;
Muon/MuonMonitor
algorithm for general muon monitoring histograms. The options folder provides some scripts and option files for running the algorithm. Output can be found in the monitor.root file;
Muon/Cosmics
provides a tool for standalone cosmic track reconstruction, using a neural network;
Muon/CosmicMonitor
algorithm for muon monitoring using cosmics;
Muon/MuonOnlineMonitor
provides scripts, configuration files and utilities for running the online monitoring. The options directory includes the "runGaudi" script for running the previous algorithms offline. Here is a sample session on lxplus:
  • setenvOnline (default recommended)
  • getpack Muon/MuonMonKernel head
  • getpack Muon/MuonMonitor head
  • getpack Muon/Cosmics head
  • getpack Muon/MuonCosmicMonitor head
  • getpack Muon/MuonOnlineMonitor head
  • cd Muon/MuonOnlineMonitor/v*/cmt
  • cmt config
  • source setup.csh
  • cd ../options
  • ./runsOnCastor.pl 22688
  • ./runGaudi
you will find the monitoring histograms in the monitor.root file
 
Deleted:
<
<
-- AlessioSarti - 16 Jun 2008
 \ No newline at end of file
Added:
>
>
-- AlessioSarti , GiacomoGraziani - 23 Jun 2008

Revision 42008-06-18 - AlessioSarti

Line: 1 to 1
 
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

Line: 74 to 74
 
      • getpack Online/Presenter [head or your fav version]
      • cd Online/Presenter/vXrX/cmt/
      • cmt config; source setup.csh; make
Added:
>
>
      • Examples on how to run :: $PRESENTERROOT/test/*
 
  • browse through the page tree on the left, look in "Muon Commissioning"
  • single click on your favourite page
If you see no histograms the presenter is not running and you can use it to monitor previous histos (runs)

Revision 32008-06-16 - AlessioSarti

Line: 1 to 1
 
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

Line: 61 to 61
 

LHCb Online Presenter

Changed:
<
<
Instructions on how to run the LHCb Online Presenter and see Muon monitoring histograms
>
>
Instructions on how to run the LHCb Online Presenter and see Muon monitoring histograms
 
  • login on some node on the LHCb online network (look here for instructions)
Changed:
<
<
    • for Linux:
      • setup LHCb environment:
        • tcsh shell: source /group/muon/scripts/lhcbsetup.csh
        • bash shell: . /group/muon/scripts/lhcbsetup.sh
      • start the presenter: /group/muon/scripts/runpresenter
    • for M$ windoz (discouraged)
      • set DIM_DNS_NODE=hlte1101
      • g:\online\presenter\presenter.bat
>
>
    • for Linux (pit account):
      • ssh -X lbgw.cern.ch
      • ssh plus
      • set the DIM node: DIM_DNS_NODE=$HOST; export DIM_DNS_NODE; [BASH]
      • start the presenter: /group/muon/scripts/runpresenter [BASH]
    • On lxplus
      • setenvOnline [head or your fav version]
      • getpack Online/Presenter [head or your fav version]
      • cd Online/Presenter/vXrX/cmt/
      • cmt config; source setup.csh; make
 
  • browse through the page tree on the left, look in "Muon Commissioning"
  • single click on your favourite page
Changed:
<
<
  • if you see no histograms, you're unlucky! (it means we are not running the monitoring at the moment), try again later
>
>
If you see no histograms the presenter is not running and you can use it to monitor previous histos (runs)
  • From the Presenter, you can use Tools!History Mode, then click on the “file” menu
  • Then select MuonDAQMon-runXXXXX.root
 
Deleted:
<
<
-- AlessioSarti - 14 May 2008
 \ No newline at end of file
Added:
>
>
-- AlessioSarti - 16 Jun 2008

Revision 22008-05-15 - AlessioSarti

Line: 1 to 1
 
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

Line: 8 to 8
 
Changed:
<
<

Useful links

>
>

Useful links & documentation

Talks

Links

 

Revision 12008-05-15 - AlessioSarti

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="LHCbMuon"

Welcome to the LHCb Muon DAQ analysis page

These page contain an introduction for the DAQ data analysis.

LHCb Online Page

Useful links

Data location

Data files taken with DAQ from Control Room are written in the directories:

  • LHCb acquisition: /daqarea/lhcb/data/2008/RAW/LHCb/PHYSICS/#runnumber
  • MUON acquisition (e.g. side C): /daqarea/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber
20774 - 20778 * Some test data can be found on the online cluster in /group/muon/testdata or on castor /castor/cern.ch/user/g/ggiacomo/testdata

Runs

Run type Run number Run description Activity
Cosmics 22788 Taken with aligned Calo LHCb
Noise 22902 Just testing the acquisition on side C MUONC

Procedure for data analysis

Data Access

Lots of useful informations are kept in the data online page. To directly access data on the online cluster you need

  • First of all you should log onto the online cluster (e.g. linux: ssh -X lbgw.cern.ch).
  • Then you should log into the plus01 machine: ssh plus01
Otherwise you can access data on castor
  • Data is copied to castor every hour. E.g. data under /daqarea/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber can be found in castor: /castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/#runnumber
    • To check if your favourite run is there try for example: rfdir /castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/
  • You can run either on raw or MDF files......
    • EventSelector.Input += {"DATAFILE='PFN:rfio:///castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/22902/022902_0000022654.raw' TYP='POOL_ROOT' OPT='READ'"};
    • EventSelector.Input += {"DATA='rfio:///castor/cern.ch/grid/lhcb/data/2008/RAW/MUONC/PHYSICS/xxx/xxx.mdf' SVC='LHCb::MDFSelector'"};

Data Analysis

To run your favourite monitor you can start, on lxplus, using
  • setenvBrunel (default recommended)
  • getpack Muon/MuonMonitor (default again)
  • getpack Rec/Brunel (def)
  • compile Brunel after having added MuonMonitor to the requirements
  • You can now change the User_realdata.opts file to point to your raw data information.....
  • To run analysis you can just: $BRUNELROOT/slc_.../Brunel.exe $MUONMONITORROOT/options/gaudi_realdata.opts
This chain has been tested with Brunel_v32r5 + MuonMonitor v2r3 A monitor.root files is created!

LHCb Online Presenter

Instructions on how to run the LHCb Online Presenter and see Muon monitoring histograms

  • login on some node on the LHCb online network (look here for instructions)
    • for Linux:
      • setup LHCb environment:
        • tcsh shell: source /group/muon/scripts/lhcbsetup.csh
        • bash shell: . /group/muon/scripts/lhcbsetup.sh
      • start the presenter: /group/muon/scripts/runpresenter
    • for M$ windoz (discouraged)
      • set DIM_DNS_NODE=hlte1101
      • g:\online\presenter\presenter.bat
  • browse through the page tree on the left, look in "Muon Commissioning"
  • single click on your favourite page
  • if you see no histograms, you're unlucky! (it means we are not running the monitoring at the moment), try again later

-- AlessioSarti - 14 May 2008

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback