cms-opendata-analyses / PhysObjectExtractorTool

This repository has working code examples (snippets) on how to access different physics objects in the context of CMSSW software.
6 stars 36 forks source link

Verify message # Conditions read from CMS_CONDITIONS via FrontierProd #107

Open katilp opened 2 years ago

katilp commented 2 years ago

What happens

It looks to me that the message # Conditions read from CMS_CONDITIONS via FrontierProd comes in all cases, i.e. also when the condition data are read from the sqlite files locally in the container.

This happens with these lines both commented and uncommented:

#---- If the container has local DB files available, uncomment lines like the ones below instead of the corresponding lines above
if isData: process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/76X_dataRun2_16Dec2015_v0.db')
else: process.GlobalTag.connect = cms.string('sqlite_file:/cvmfs/cms-opendata-conddb.cern.ch/76X_mcRun2_asymptotic_RunIIFall15DR76_v1.db')

The container has the local /cvmfs/cms-opendata-conddb.cern.ch/ area

How to reproduce

docker run -it --name my_od -P -p 5901:5901 -p 6080:6080 gitlab-registry.cern.ch/cms-cloud/cmssw-docker-opendata/cmssw_5_3_20-slc6_amd64_gcc472 /bin/bash

In the container:

(/code/CMSSW_7_6_7/src/PhysObjectExtractorTool/PhysObjectExtractor) cmsRun python/poet_cfg.py True
# Conditions read from  CMS_CONDITIONS  via FrontierProd
30-Nov-2022 21:59:19 CET  Initiating request to open file root://eospublic.cern.ch//eos/opendata/cms/Run2015D/SingleElectron/MINIAOD/08Jun2016-v1/10000/001A703B-B52E-E611-BA13-0025905A60B6.root

What to do?

To be verified, and explained in the documentation if needed