Difference: WPCPrivateCTPPSDBPage (1 vs. 22)

Revision 222019-04-26 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 28 to 28
 

Related links

Added:
>
>
 
Line: 237 to 238
  It would be useful to start the development of the consumer code for the LHCInfo payloads.
Added:
>
>

Optical Functions

Production of conditions data for optical functions consumed by the proton reconstruction code developed by Jan Kaspar.

Data taking period Run interval
2016 pre-TS2 273725 - 280385
2016 post-TS2 282730 - 284044
2017 294730 - 306462
2018 before 90 m run 314158 - 319077
90 m run ? - ?
2018 between 90 m and 900 GeV runs 319337 - 324420
900 GeV run ? - ?
2018 after 900 GeV run 324612 - 325175
 

Revision 202018-10-06 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 45 to 45
 

Added:
>
>

Accelerator databases at CERN

  • LSA (LHC Software Architecture): accelerator optics models, control sequences, reference values, etc.
  • Timber
  • DIP (Data Interchange Protocol): communication system which allows relatively small amounts of soft real-time data to be exchanged between very loosely coupled heterogeneous systems.
 

At work

Set up working area and environment

Revision 192018-05-15 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 204 to 204
  Note: replace "CMS_COND_TASKNAME" with the account name allocated to your task.
 process.CondDB.DBParameters.authenticationPath = 'where_it_is'  

Changed:
<
<

>
>

LHCInfo O2O

From: Giacomo Govi <giacomo.govi@cern.ch> Date: 2018-05-15 6:48 GMT-03:00 Subject: LHCInfo data collected by the O2O

the LHCInfo O2O has been successfully deployed and it is currently collecting IOV and Payloads since the 17 april 2018 on the tag: LHCInfoEndFill_prompt_v0:

https://cms-conddb-prod.cern.ch/cmsDbBrowser/list/Prod/tags/LHCInfoEndFill_prompt_v0

The O2O is probing every hour the LHC tables for the existence of a completed Fill, which is sampled every ten minutes during its entire duration.In others words, we have IOVs within a Fill every ten minutes. We have included in the payload all the information requested.

This tag is not yet part of any Global Tag, although Candidates GT can be produced for testing purposes.

We would like to receive feedback on the content as well as the data collection model. We have developed a tool for dumping the payload in a human readable way (in CMSSW since 10_1_4)

Example:

conddb_dump_LHCInfo -c frontier://FrontierProd/CMS_CONDITIONS -i b4918fe664d58a72a23d0364c2780fb3b5148a9b

It would be useful to start the development of the consumer code for the LHCInfo payloads.

  -

Revision 132018-01-19 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 190 to 190
 

To Do:

  • Test "lumisection" as IOV timetype
Added:
>
>
  • Try to store/retrieve the object through ORACLE on cmsprep. Using the following parameters in the _cfg.py
    •  process.CondDB.connect = "oracle://cmsprep/CMS_COND_TASKNAME"  
      Note: replace "CMS_COND_TASKNAME" with the account name allocated to your task.
       process.CondDB.DBParameters.authenticationPath = 'where_it_is'  
 

Revision 102017-11-07 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 50 to 50
 

Step by step

Added:
>
>

How to create a Conditions Object

 
  1. Move to CondFormats/CTPPSReadoutObjects package
  2. Define new class LHCInfoForCTPPS to hold LHC related info: interface/LHCInfoForCTPPS.h
  3. Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"
Line: 91 to 93
  LHCInfoForCTPPSRcd@NewProxy
Added:
>
>

How to fill the DB with data

  1. Create a new (dummy) subsystem
    •       $ cd $CMSSW_BASE/src
            $ mkdir MyCondCTPPS      
  2. Create an analyzer
    •       $ mkedanlzr LHCInfoMaker      
  3. Go to LHCInfoMaker/plugins/ and change LHCInfoMaker.cc for the analyze method to look like
    • void LHCInfoMaker::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
      {
         using namespace edm;
         
         LHCInfoForCTPPS* pInfo = new LHCInfoForCTPPS();
         
         // Form the data here
         
         edm::Service<cond::service::PoolDBOutputService> poolDbService;
         if( poolDbService.isAvailable() )
            poolDbService->writeOne( pInfo, poolDbService->currentTime(),
                                                      "LHCInfoForCTPPSRcd"  );
         else
            throw std::runtime_error("PoolDBService required.");
      
      }        
  4. Change also BuildFile.xml to look like
    • <use name="FWCore/Framework"/>
      <use name="FWCore/PluginManager"/>
      <use name="FWCore/ParameterSet"/>
      <use name="FWCore/ServiceRegistry"/>
      <use name="CondCore/DBOutputService"/>
      <use name="CondFormats/CTPPSReadoutObjects"/>
      <flags EDM_PLUGIN="1"/>      
  5. Compile
    •       $ cd $CMSSW_BASE/src/MyCondCTPPS
            $ scram b       
  6. Add the LHCInfoMaker/test/test-maker_cfg.py configuration file to run the analyzer and create an output file. DB service is configured to write to a SQLite file.
    • import FWCore.ParameterSet.Config as cms
      
      process = cms.Process("lhcInfoTest")
      
      # Load CondDB service
      process.load("CondCore.CondDB.CondDB_cfi")
      
      # output database (in this case local sqlite file)
      process.CondDB.connect = 'sqlite_file:LHCInfoForCTPPS.db'
      
      # A data source must always be defined. We don't need it, so here's a dummy one.
      process.source = cms.Source("EmptyIOVSource",
          timetype = cms.string('runnumber'),
          firstValue = cms.uint64(1),
          lastValue = cms.uint64(1),
          interval = cms.uint64(1)
      )
      
      # We define the output service.
      process.PoolDBOutputService = cms.Service("PoolDBOutputService",
          process.CondDB,
          timetype = cms.untracked.string('runnumber'),
          toPut = cms.VPSet(cms.PSet(
              record = cms.string('LHCInfoForCTPPSRcd'),
              tag = cms.string('LHCInfoForCTPPS_test')
          ))
      )
      
      process.pedestals_maker = cms.EDAnalyzer("LHCInfoMaker",
          record = cms.string('LHCInfoForCTPPSRcd'),
          loggingOn= cms.untracked.bool(True),
          SinceAppendMode=cms.bool(True),
          Source=cms.PSet(
              IOVRun=cms.untracked.uint32(1)
          )
      )
      
      process.path = cms.Path(process.pedestals_maker)      
  7. Run the configuration file
    •       $ cmsRun test/test-maker_cfg.py      
      creating the file LHCInfoForCTPPS.db.

How to retrieve thedata

  1. Requires the configuration of the DB interface, this time using the ESSource. The LHCInfoMaker/test/test-retrieve_cfg.py configuration file is used.
    •       $ cmsRun test/test-retrieve_cfg.py      
 

Revision 92017-10-31 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Changed:
<
<
>
>
 

Goal

Line: 39 to 39
 

Set up working area and environment

Changed:
<
<
cmsrel CMSSW_9_4_0_pre2 cd CMSSW_9_4_0_pre2/src cmsenv git cms-init git cms-addpkg CondCore/CTPPSPlugins git cms-addpkg CondFormats/DataRecord git cms-addpkg CondFormats/CTPPSReadoutObjects scramv1 b -j20
>
>
$ cmsrel CMSSW_9_4_0_pre2 $ cd CMSSW_9_4_0_pre2/src $ cmsenv $ git cms-init $ git cms-addpkg CondCore/CTPPSPlugins $ git cms-addpkg CondFormats/DataRecord $ git cms-addpkg CondFormats/CTPPSReadoutObjects $ scramv1 b -j20
 

Step by step

Line: 57 to 57
 
    • src/classes.h holds the class definitions.
    • src/classes_def.xml contains the names of all classes to be stored and their constituents, as well as class template instantiations.
  1. Add test serialization code test/testSerializationLHCInfo.cc and edit test/BuildFile.xml accordingly:
Changed:
<
<

>
>
 
Added:
>
>
  1. For the class to be useable as EventSetup data, it needs to be registered into the CMSSW framework as such. Add T_EventSetup_LHCInfoForCTPPS.cc to src and change BuildFile.xml accordingly by adding:
    •       <use name="FWCore/Utilities"/>
            
  2. Next define a Record where the objects are actually stored and from which it can be retrieved. The record class must be defined in CondFormats/DataRecord.
    •       $ cd $CMSSW_BASE/src/CondFormats/DataRecord/interface
            $ mkrecord LHCInfoForCTPPSRcd
            $ mv LHCInfoForCTPPSRcd.cc ../src
            
      followed by
            $ cd ..
            $ scramv1 b -j20
            
  3. Tell the DB interface which data do associate to which record. Go to $CMSSW_BASE/src/CondCore/CTPPSPlugins/src/ and add the following lines to plugin.cc:
    •       #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"
            #include "CondFormats/DataRecord/interface/LHCInfoForCTPPSRcd.h"
            
            REGISTER_PLUGIN(LHCInfoForCTPPSRcd,LHCInfoForCTPPS);
            
  4. Build the plugin system and check that the proxy for the EventSetup has been correctly built:
    •       $ scramv1 b -j20
            $ edmPluginDump | grep LHCInfoForCTPPSRcd
            LHCInfoForCTPPSRcd@NewProxy
            
 

Revision 82017-10-28 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Line: 52 to 52
 
  1. Move to CondFormats/CTPPSReadoutObjects package
  2. Define new class LHCInfoForCTPPS to hold LHC related info: interface/LHCInfoForCTPPS.h
Changed:
<
<
  1. Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"
>
>
  1. Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"
  2. For the class be available as EventSetup data, an LCG dictionary must be created for it. This is achieved by changing classes_def.xml and classes.h files in the project /src area:
    • src/classes.h holds the class definitions.
    • src/classes_def.xml contains the names of all classes to be stored and their constituents, as well as class template instantiations.
  3. Add test serialization code test/testSerializationLHCInfo.cc and edit test/BuildFile.xml accordingly:

      <bin file="testSerializationLHCInfo.cc">
          <use   name="CondFormats/CTPPSReadoutObjects"/>
      </bin>
      
 

Revision 72017-10-24 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Changed:
<
<
%TOC=Contents:%
>
>
 

Goal

Line: 29 to 29
 

Related links

Changed:
<
<
  • [[https://twiki.cern.ch/twiki/bin/view/CMS/CTPPSDBHelenaMalbouisson][Helena's page]
>
>
 
Added:
>
>
 

At work

Revision 62017-10-24 - WagnerDePaulaCarvalho

Line: 1 to 1
 
META TOPICPARENT name="WagnerDePaulaCarvalho"
Changed:
<
<
>
>
%TOC=Contents:%
 

Goal

Line: 23 to 23
 
CT-PPS Diego Figueiredo dmf@cernNOSPAMPLEASE.ch
OMDS Umeshwar Joshi joshi@fnalNOSPAMPLEASE.gov
DB Loader setup Aivaras Silale aivaras.silale@cernNOSPAMPLEASE.ch
Changed:
<
<
OMS (replacement for WBM) Valdas Rapsevicius valdas.rapsevicius@cernNOSPAMPLEASE.ch
>
>
OMS (replacement for WBM) Valdas Rapsevicius (main contact) valdas.rapsevicius@cernNOSPAMPLEASE.ch
 
Aivaras Silale aivaras.silale@cernNOSPAMPLEASE.ch
Added:
>
>

Related links

 

At work

Set up working area and environment

Revision 52017-10-24 - WagnerDePaulaCarvalho

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

Goal

This is my private documentation page on CT-PPS Database development.

Line: 28 to 30
 

Set up working area and environment

Changed:
<
<
cmsrel CMSSW_9_4_0_pre2
>
>
cmsrel CMSSW_9_4_0_pre2
 cd CMSSW_9_4_0_pre2/src
Deleted:
<
<
 cmsenv
Deleted:
<
<
 git cms-init
Deleted:
<
<
 git cms-addpkg CondCore/CTPPSPlugins
Deleted:
<
<
 git cms-addpkg CondFormats/DataRecord
Deleted:
<
<
 git cms-addpkg CondFormats/CTPPSReadoutObjects
Added:
>
>
scramv1 b -j20

Step by step

  1. Move to CondFormats/CTPPSReadoutObjects package
  2. Define new class LHCInfoForCTPPS to hold LHC related info: interface/LHCInfoForCTPPS.h
  3. Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"
 
Changed:
<
<
scramv1 b -j20


Step by step

Move to CondFormats/CTPPSReadoutObjects package

Define new class LHCInfoForCTPPS to hold LHC related info: interface/LHCInfoForCTPPS.h

Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"

>
>

  -

Revision 42017-10-23 - WagnerDePaulaCarvalho

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

Goal

Line: 24 to 24
 
OMS (replacement for WBM) Valdas Rapsevicius valdas.rapsevicius@cernNOSPAMPLEASE.ch
Aivaras Silale aivaras.silale@cernNOSPAMPLEASE.ch

Added:
>
>

At work

 
Changed:
<
<
>
>

Set up working area and environment

cmsrel CMSSW_9_4_0_pre2

cd CMSSW_9_4_0_pre2/src

cmsenv

git cms-init

git cms-addpkg CondCore/CTPPSPlugins

git cms-addpkg CondFormats/DataRecord

git cms-addpkg CondFormats/CTPPSReadoutObjects

scramv1 b -j20


Step by step

Move to CondFormats/CTPPSReadoutObjects package

Define new class LHCInfoForCTPPS to hold LHC related info: interface/LHCInfoForCTPPS.h

Add the following line to src/headers.h: #include "CondFormats/CTPPSReadoutObjects/interface/LHCInfoForCTPPS.h"

-

  -- WagnerDePaulaCarvalho - 2017-09-15 \ No newline at end of file

Revision 32017-09-21 - WagnerDePaulaCarvalho

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

Goal

Line: 13 to 13
 
  • magnets currents
  • Raw Roman Pot insertion
Added:
>
>

Contact People

Subsystem/Activity Name E-mail
CT-PPS (offline conditions) Clemencia Mora Herrera clemencia.mora.herrera@cernNOSPAMPLEASE.ch
Helena Malbouisson helena.malbouisson@cernNOSPAMPLEASE.ch
CT-PPS Diego Figueiredo dmf@cernNOSPAMPLEASE.ch
OMDS Umeshwar Joshi joshi@fnalNOSPAMPLEASE.gov
DB Loader setup Aivaras Silale aivaras.silale@cernNOSPAMPLEASE.ch
OMS (replacement for WBM) Valdas Rapsevicius valdas.rapsevicius@cernNOSPAMPLEASE.ch
Aivaras Silale aivaras.silale@cernNOSPAMPLEASE.ch

 -- WagnerDePaulaCarvalho - 2017-09-15 \ No newline at end of file

Revision 22017-09-18 - WagnerDePaulaCarvalho

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

Goal

Line: 10 to 10
 
  • Crossing angle
  • beta-star
Added:
>
>
  • magnets currents
 
  • Raw Roman Pot insertion

-- WagnerDePaulaCarvalho - 2017-09-15

Revision 12017-09-16 - WagnerDePaulaCarvalho

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

Goal

This is my private documentation page on CT-PPS Database development.

For the moment, the focus will be on the conditions related to the accelerator and beam as well to the pot insertion into the beam pipe.

Beam and Roman Pot position related conditions

  • Crossing angle
  • beta-star
  • Raw Roman Pot insertion

-- WagnerDePaulaCarvalho - 2017-09-15

 
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