Dear Experts, All,
In QC of FIT detector we would like to compare the measured orbit-bc map with the LHC filling scheme (aka BC pattern). Do you know whether such information will be available in CCDB (or in some other place)?
Cheers,
Sebastian
Dear Experts, All,
In QC of FIT detector we would like to compare the measured orbit-bc map with the LHC filling scheme (aka BC pattern). Do you know whether such information will be available in CCDB (or in some other place)?
Cheers,
Sebastian
Hello @sbysiak
At the moment simulated BC pattern is available only from the collisioncontext.root
file, eventually it will be added to GRP object.
To access it, use:
const auto* digctx = o2::steer::DigitizationContext::loadFromFile(); // by default will look for local `collisioncontext.root` , for other locations pass the path/file explicitly
const auto& bcfill = digctx->getBunchFilling();
Note that the o2::BunchFilling object provides actually not the bunch filling of each beam but the pattern of bunch-crossings.
Thank you @shahoian or prompt reply.
How about real data?
Will it be similar to what you described for simulations?
Will it be stored in CCDB?
yes, it will be stored in the GRP.
I’ve to find a right way to do this for simulated GRP because the GRP is created during MC generation while the bunch filling is defined only at digitization level.
Also bunch filling for each beam will be stored.
Do you need bunch crossings or filled bunches per beam?
Hm, I think both actually.
First, we want to check if the events we are observing are out-of-bunch events.
Second use-case would be beam-gas rates estimation.
ok, at the moment in the simulation we are creating directly the BC pattern as was used for TPC TDR, w/o generating bunch filling for each beam. I will need to change this generating 1st bunch fillings then calculating/storing bunch crossings. And to propagate this to GRP.
May take a few days.
Hi @sbysiak ,
the LHC_interface project, collects and publish LHC configuration and status data.
a subset of these will be recorded into GRPs
A preliminary list is here:
float mCrossingAngle crossing angle in radians (as deviation from pi) Float, 1/600 Hz
float mBeamEnergyPerZ beam energy per charge (i.e. sqrt(s)/2 for pp) Float, 1Hz
int mBeamAZ[2] A<<16+Z for each beam string 1/fill
int mFill fill identifier Integer/fill
bitset<3564> bunchFilling[2] LHC filling scheme String/fill
std::string mLHCState machine state String/fill
Nevertheless, there are a lot of other parameters, (I attached a couple of screen shots)
@shahoian
We would like to use information about bunch crossings during pilot beams.
Do you think it will be possible?
I don’t know if automatic creation of the GRP from the LHC_IF will be available, but we likely will use manually created GRP, where the bunch filling will be put by hand.
Ok, just to make sure: in case of manual creation will the GRP be available in CCDB at the beginning of each run?
If we know the filling scheme at least 10min before the stable beam, then yes. But the raw data will be stored in any case so we should be able to replay the sync. processing in offline mode
Hi, any update on this issue?
We would like to develop the code for the pilot beams and for this we need example GRP file with proper format in CCDB.
Hi,
I’ve started the implementation of a proper object with both beam fillings + interaction BCs but did not finish yet, should be there by the end of the week.
Hi @sbysiak
The PR adds to the BunchFilling the patterns of A/C beams, the modified maco shows how to create the beams with some bunches non-interacting.
Most probably, in real data processing, this object will be stored not in the GRP but in the independent CCDB object (since this info comes from DCS asynchronously with GRP creation).
At the moment in the MC jobs, the object will be still stored in the collision context, I don’t want to multiply the number of custom written and read files.
You can access it in a same way:
const auto* digctx = o2::steer::DigitizationContext::loadFromFile(); // by default will look for local `collisioncontext.root` , for other locations pass the path/file explicitly
const auto& bcfill = digctx->getBunchFilling();
and you can test if a particular BCid is filled as
testBC(bcID, -1); // or simply testBC(bcID) for interacting bunches
testBC(bcID,0); // for A-beam
testBC(bcID,1); // for C-beam
Once we finalize the CCDB access via DPL and set up a CCDB usage scheme that will allow avoiding overwriting production CCDB objects by custom MC, then I’ll create a CCDB entry with bunch filling.
If you need it already now for your code development, let me know, I will upload the object created by CreateBCPattern.C
to GLO/GRP/BunchFilling, but at the moment it will not affect what is used in the standard sim. and rec.
Here is it.
You can check the bunch filling by
root [0] auto cm = o2::ccdb::BasicCCDBManager::instance();
root [1] cm.setURL("http://ccdb-test.cern.ch:8080");
root [2] auto bf = cm.get<o2::BunchFilling>("GLO/GRP/BunchFilling");
root [3] bf->print();
Interacting bunches
-+-+-+--------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-------------------------------------------------------------------------------------
------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+---------------------------------------------------------------------------------------------
----+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
------------------------------------------------------------------------------------------------+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+---------
----------------------------------------------------------------------------------------+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-----------------
--------------------------------------------------------------------------------+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------------------
------------------------------------------------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+---------------------------------
----------------------------------------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-----------------------------------------
--------------------------------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------------------------------------------
------------------------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+---------------------------------------------------------
----------------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-----------------------------------------------------------------
--------------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------------------------------------------------------------------
------------------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+---------------------------------------------------------------------------------
----------------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-----------------------------------------------------------------------------------------
--------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-------------------------------------------------------------------------------------------------
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-----
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
----------------------------------------------------------++++++
Beam-A bunches
-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-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+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+++++++
Dear @shahoian,
somehow I cannot retrieve the BunchFilling Object from MO when running QC:
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: [11:56:59][WARN] Did not find object under expected name ccdb_object
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: [11:56:59][ERROR] Couldn't retrieve object corresponding to TObject from TFile
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: [11:56:59][WARN] Did not find object under expected name ccdb_object
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: [11:56:59][ERROR] Couldn't retrieve object corresponding to TObject from TFile
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: 2021-09-29 11:56:59.547686 !!! Error - We could NOT retrieve the object GLO/GRP//BunchFilling.
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]:
[1757083:PP-TASK-RUNNER-OutOfBunchCollTask]: *** Break *** segmentation violation
The code I use:
auto mo = mDatabase->retrieveMO("GLO/GRP/", "BunchFilling");
auto bcPattern = (o2::BunchFilling*) mo->getObject();
I do not understand it as I do not see this error for other objects in CCDB.
Also when I download it using o2-ccdb-downloadccdbfile
it looks fine, with BunchFilling object called “ccdb_object” inside.
Any hint?
What is retrieveMO
? All CCDB objects have names “ccdb_object”. You should do either as
root [0] auto cm = o2::ccdb::BasicCCDBManager::instance();
root [1] cm.setURL("http://ccdb-test.cern.ch:8080");
root [2] auto bf = cm.get<o2::BunchFilling>("GLO/GRP/BunchFilling");
or, if you want to use low level CcdbApi:
root [0] o2::ccdb::CcdbApi api;
root [1] api.init("http://ccdb-test.cern.ch:8080");
[INFO] Is alien token present?: 1
root [2] map<string, string> metadata;
root [3] map<string, string> headers;
root [4] const auto* bf = api.retrieveFromTFileAny<o2::BunchFilling>("GLO/GRP/BunchFilling", metadata, -1, &headers);
root [6] bf->print();
...
Hi, it is probably because BunchFilling object is not a Monitor Object (MOs are the ones generated by QC). You might prefer to use DatabaseInteface::retrieveAny
or even switch to the direct CcdbApi. In either case, please be aware that in production QCDB != CCDB and we represent the difference by having the conditionDB
in the config file as well:
PS. It appears that Ruben was first to reply, I second what he wrote.
I forgot to write but it worked. Thank you both!