Skip to content

Conversation

@sevdokim
Copy link
Contributor

Hello!

In this PR missing TF protection was implemented to RawToDigitConverter.
Also I moved Hit.cxx, CalibParams.cxx, BadChannelMap.cxx, and Pedestals.cxx to DataFormats/Detectors/CPV/.
Also I added configuration of CCDB Url to RawToDigitConverter and RawWriter.

Copy link
Collaborator

@shahor02 shahor02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sevdokim thanks, see a few comments below!
The formatting needs to be fixed. In general, it is better to avoid pushing so many unrelated changes in a single commit.

Since the FullCI will likely fail due to internal reasons and you are touching raw data handling, could you run yourself the FST (you need to have the AEGIS installed):
$O2_ROOT/prodtests/full_system_test.sh ?

#pragma link C++ class o2::ctf::EncodedBlocks < o2::cpv::CTFHeader, 7, uint32_t> + ;

#pragma link C++ class o2::cpv::BadChannelMap + ;
#pragma link C++ class o2::TObjectWrapper < o2::cpv::BadChannelMap> + ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TObjectWrapper is obsolete, please remove all these entries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks. Removed.

Comment on lines 130 to 149
/*enum RawErrorType_t {
kOK, ///< NoError
kOK_NO_PAYLOAD, ///< No payload per ddl (not error)
kRDH_DECODING,
kRDH_INVALID,
kNOT_CPV_RDH,
kSTOPBIT_NOTFOUND,
kPAGE_NOTFOUND,
kPAYLOAD_INCOMPLETE,
kNO_CPVHEADER,
kNO_CPVTRAILER,
kCPVHEADER_INVALID,
kCPVTRAILER_INVALID,
kSEGMENT_HEADER_ERROR,
kROW_HEADER_ERROR,
kEOE_HEADER_ERROR,
kPADERROR,
kUNKNOWN_WORD,
kPadAddress
};*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, done

Comment on lines 67 to 68
// cfgc.options().get<bool>("pedestal"),
// cfgc.options().get<std::string>("ccdb-url"),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to add options which are not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello @shahor02
they are not needed. I removed them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @shahor02 ,
I'll try to run full system test and let you know the result.
I also want to be sure that protection against missing TFs is working.
We can simulate missing TFs by command
o2-raw-file-reader-workflow --input-conf raw/CPV/CPVraw.cfg --loop 100 --drop-tf "CPV,3"
But what I need to do next to see if everything is working as expected?

Thank you & regards,
Sergey

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sevdokim
you should see in every 3d TF the message you put: "Sending empty output due to data type input with 0xDEADBEEF"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @shahor02 ,

I tried to run FST using following environment on ubuntu20.04:
alienv enter O2/latest AEGIS/latest
Unfortunately the test was failed at 2nd task:

Launching task: o2-sim --seed -1 -n 10 --configKeyValues Diamond.width[2]=6. -g pythia8hi -e TGeant4 -j 4 &> sim.log &
command o2-sim --seed -1 -n 10 --configKeyValues Diamond.width[2]=6. -g pythia8hi -e TGeant4 -j 4 had nonzero exit code 1

From the sim.log I see following:
Spawning particle server on PID 1270555; Redirect output to o2sim_serverlog
[INFO] Process 1270555 EXITED WITH CODE 0 SIGNALED 1 SIGNAL 6
from the o2sim_serverlog:
PYTHIA Error in BeamRemnants::setKinematics: kinematics construction failed
[ESC[01;36m17:11:29ESC[0m][ESC[01;33mWARNESC[0m] Particle to be tracked is not defined in PDG: pdg = 1000200489
[ESC[01;36m17:11:29ESC[0m][ESC[01;33mWARNESC[0m] Particle to be tracked is not defined in PDG: pdg = 1000180489
I suppose the error is not related to CPV but to non-recognition of some ions by the VMC?
I bet that my setup is not well defined and it was a cause of this failure. Any tips how to proceed?

Thank you!
Sergey

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sevdokim
Will run myself to check, we recently switched to G4, might be related to this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @shahor02 ,
done from my side! thanks!

@sevdokim sevdokim requested a review from a team as a code owner June 22, 2021 06:23
@shahor02
Copy link
Collaborator

@sevdokim The FST seems to be broken at the moment, I've tested your branch on existing raw data and had to apply some changes to make lost TF recovery to work. Please merge the sevdokim#2 I opened on your repo, then I will merge this PR w/o waiting again for the tests.

RAWDATA Lifetime must be Optional, add extra options
Copy link
Collaborator

@shahor02 shahor02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging as the tests were passed before and last fix was tested locally.

@shahor02 shahor02 merged commit 935c856 into AliceO2Group:dev Jun 22, 2021
@sevdokim sevdokim deleted the cpv-missing-tf-prper-handle branch June 24, 2021 12:37
knopers8 pushed a commit to knopers8/AliceO2 that referenced this pull request Jun 28, 2021
* CPV missing TF handling

* clang-formatted commit

* format fix of CMakeLists.txt

* fix for cpv macros

* fix for macros/CMakeLists.txt

* RAWDATA Lifetime must be Optional, add extra options

Co-authored-by: sevdokim <sergey.evdokimov@cern.ch>
Co-authored-by: shahoian <ruben.shahoyan@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants