# Presentation: 748677

## MC generation for the B group

- Realistic MC production update;
- Bookeeping
- Remind of MC production “flow”
- Plan: requested samples
- Developments:
- SAM-store
- Filters
- Hand-made searchable database
- Problem report

## Monte Carlo samples for B-group

**Update on Statistics for ** > 4.10.0int3:
- Number of official samples: 50
- Number of events simulated: 44'674'605
- No. of events produced and stored to disk: 13'939'847
- Most samples are on CAF server only fcdfdata032
- 14 bigger samples are on DFC, available via dCache.
- List available from web page
- _[http://www-](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[cdf](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[.](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[fnal](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[.](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[gov](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[/internal/physics/bottom/](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[realisticMC](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)__[/available_samples.html](http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html)_
- http://www-cdf.fnal.gov/internal/physics/bottom/realisticMC/available_samples.html
- Follow the links for full information on the samples
- Look also for the filtered samples, when available.

*All the above sample produced in Glasgow (cdfg/scotgrid)*

## Sample ID’s:

- Ordinal number

- Filter at generation level

- Generator

- Generation release

- Cross section (Pythia only)

**Tcl AND log files**

- internal name mbot3xx
- DFC name mbot##

- Decay table (link ! !)

- Additional filter
- if available

- Validation

- Long sample description
-            Link ! !

## Monte Carlo samples for B-group

**Structure of realistic B-MC ** :
- Step 1
- Generation (Only Pythia and Bgenerator used to now)
- Simulation with Silicon clustering
- Step 2
- Trigger Simulation TRGSim++  4.9.1hpt3
- Step 3
- svtfilter or Prereq
- Production
- Tcl files are produced the same way as in standard MC, but number of events and run number change:
- We use script ./multirun.pl with input a list of runs. Number of events per run proportional to run off-line luminosity.
- Input: total number of events, max events per job (Filter included !)
- >= 1 job per run number
- Tar file available from fcdflnx2:/cdf/scratch/dauria/jim_submit

- }cdfSim

- }  Use mcProduction here

## Monte Carlo samples for B-group

- Plan:
- Generic samples:
- At least 2 big samples requested: hadronic and l+svt details to be defined, also a  J/ big sample requested.
- Inclusive samples
- J/Psi X with Pythia, using QCD generation (msel 1)
-  	This is anticipated to be very cpu-intensive at generator level.
- 	Tests are in progress.
- Single-channel decay many samples, including charm. Partial list:
- B0  D+  -
- Bs Ds 
- B+  J/ K+
- D+  K  charm has low trigger efficiency.

## Monte Carlo samples for B-group

- Parameters that change between jobs:
- Run number
- Number of events
- Run sections: present scheme uses progressive run section number for each run number (see next slide)
- Event number offset.
- Random seeds

## New run number

- Run section reset

- Job summary file
- of multirun.pl

## Monte Carlo samples for B-group

- Developments:
- Smart filters required to improve efficiency
- Tested first example from S. Giagu (charm cuts in d0) DstarHEPGFilter
- Use SAM to store files and to make bookeeping.
- Python file changed: metadata description to be improved
- 2 samples stored in SAM. Magical !
- Issues on how to store automatically MC info to Sam Metadata. Source: logfile ? Parser ? AC++ framework ?
- Move from web page to searchable database:
- First steps taken: number of events is now tagged and searched by a perl script, updated daily .
- Do the same for web page “entries”  web-based database (XML ?)  If cgi-bin available on cdfsga web interface ready next week.
- Automatic generation of web page by job submitter.

## Tags to search on

- Working on making this entry generated automatically by submitter
- Or by book keeping job.

## tcl number

- Job number

- Run number

- Generated events

- simulated

- Trigsim events

- produced

- Number of crashes
- (includes TRGSim++)

## Monte Carlo samples for B-group

- SAM interlude:
-  **how to store automatically MC info to Sam Metadata **
** ****(aka python file)**
- Manual interventions means mistakes:
- bad info worst than no info
- Possible Sources:
-  Tcl file ?
- how to store and make searchable the default parameters
- Maintain parameters from ALL packages
-  logfile
- - feasible, but need a parser, and “show” statements in tcl
- AC++ framework ?
-         - my preferred option: store in human readable format
-           ALL parameters of modules used in job.

## Monte Carlo samples for B-group

**Problem report: **
- QQ decayer has bad behaviour in 4.11.2 for lifetimes.
- EvtGen is ok ~~ ??.
- HepgFilter had limit to pdg < 10000 (excluding D1 (aka 1P10) )
- Mass width of charm mesons (D1, D2) being assessed (4.11.2)
- Bgenerator 5.2.0 crashes (random numbers)

## From Konstantin. HEPG only, QQ, B0J/ K0*

- From Konstantin. HEPG only, QQ, B0J/ K0*

- Problems with QQ 4.11.2

## From Kim Giolo, B+ D0 + , EvtGen HEPG level only.

- From Kim Giolo, B+ D0 + , EvtGen HEPG level only.

- No problem with EvtGen 4.11.2

- Mario Spezziga reports problems with EvtGen for B0 to J/Psi K