Skip to content

[EMCAL-1119] added 6 checkers for the EMC Calibration runs#2241

Merged
jokonig merged 6 commits intoAliceO2Group:masterfrom
sweyh99:EMCAL-1119
Apr 19, 2024
Merged

[EMCAL-1119] added 6 checkers for the EMC Calibration runs#2241
jokonig merged 6 commits intoAliceO2Group:masterfrom
sweyh99:EMCAL-1119

Conversation

@sweyh99
Copy link
Copy Markdown
Contributor

@sweyh99 sweyh99 commented Apr 16, 2024

6 checkers
Number of Good/Dead/Bad Channels in EMCAL + DCAL
Time Calib Coeff
Fraction of good cells / event
Fraction of good cells / supermodule
Cell amplitude (Calib) vs. supermodule ID PHYS
Cell Time (Calib) vs. supermodule ID (High gain) PHYS

Sierra Weyhmiller added 2 commits April 16, 2024 15:47
6 checkers
Number of Good/Dead/Bad Channels in EMCAL + DCAL
Time Calib Coeff
Fraction of good cells / event
Fraction of good cells / supermodule
Cell amplitude (Calib) vs. supermodule ID PHYS
Cell Time (Calib) vs. supermodule ID (High gain) PHYS
Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated

Float_t avg_frac = 0.0;
for (int i=1; i<=h_det->GetNbinsX(); i++){
Float_t weight = h_det->GetBinContent(i)*h_det->GetBinCenter(i);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this line is not needed I think. "weight" is never used

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated

Float_t avg_frac = 0.0;
for (int i=1; i<=h_supermod->GetNbinsX(); i++){
Float_t weight = h_supermod->GetBinContent(i)*h_supermod->GetBinCenter(i);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated
else {
h_supermod->Scale(1.0/h_supermod->Integral());

Double_t chi2_SM = -1000;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this line is not needed, just define it in the next line?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated
}
else {
Double_t mean_allsupermod = h_allsupermod_proj->GetMean();
if (mean_allsupermod > mBadThresholdCellTimeSupermoduleCalibPHYS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we also have a lower bound here? The mean can also be shifted to lower times compared to what we expect

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes you're right. I have changed it so the absolute value is within some threshold of 0

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated
if (mean_allsupermod > mBadThresholdCellTimeSupermoduleCalibPHYS) {
result = Quality::Bad;
}
else if (mean_allsupermod > mMedThresholdCellTimeSupermoduleCalibPHYS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated
}
else {
Double_t mean_isupermod = h_supermod->GetMean();
if (mean_isupermod > mBadThresholdCellTimeSupermoduleCalibPHYS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment thread Modules/EMCAL/src/CalibCheck.cxx Outdated
result = Quality::Bad;
break;
}
else if (mean_isupermod > mMedThresholdCellTimeSupermoduleCalibPHYS) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same as above

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Sierra Weyhmiller added 3 commits April 17, 2024 08:05
Remove unnecessary weight and chi2 lines and add lower bound for Cell Time (Calib) vs. supermodule ID (High gain) PHYS
@jokonig jokonig enabled auto-merge (squash) April 19, 2024 08:14
@jokonig jokonig merged commit f871941 into AliceO2Group:master Apr 19, 2024
anabananana98 pushed a commit to anabananana98/QualityControlEMC that referenced this pull request Apr 23, 2024
…oup#2241)

* o2 [EMCAL-1119] added 6 checkers for the EMC Calibration runs

6 checkers
- Number of Good/Dead/Bad Channels in EMCAL + DCAL
- Time Calib Coeff
- Fraction of good cells / event
- Fraction of good cells / supermodule
- Cell amplitude (Calib) vs. supermodule ID PHYS
- Cell Time (Calib) vs. supermodule ID (High gain) PHYS

---------

Co-authored-by: Sierra Weyhmiller <sierra.lisa.weyhmiller@cern.ch>
anabananana98 pushed a commit to anabananana98/QualityControlEMC that referenced this pull request Apr 24, 2024
…oup#2241)

* o2 [EMCAL-1119] added 6 checkers for the EMC Calibration runs

6 checkers
- Number of Good/Dead/Bad Channels in EMCAL + DCAL
- Time Calib Coeff
- Fraction of good cells / event
- Fraction of good cells / supermodule
- Cell amplitude (Calib) vs. supermodule ID PHYS
- Cell Time (Calib) vs. supermodule ID (High gain) PHYS

---------

Co-authored-by: Sierra Weyhmiller <sierra.lisa.weyhmiller@cern.ch>
@sweyh99 sweyh99 deleted the EMCAL-1119 branch May 16, 2024 16:00
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