-
Notifications
You must be signed in to change notification settings - Fork 486
[WIP] TPC QC: adds Cluster occupancy histograms #12643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| void fillADCValue(int cru, int rowInSector, int padInRow, int timeBin, float adcValue); | ||
|
|
||
| void normalize(); | ||
| void normalize(const float nHBFPerTF = 128); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a data member for the number of HBFs. So it is not needed twice
| void normalize(const float nHBFPerTF = 128); | |
| void normalize(); |
| void normalize(const float nHBFPerTF = 128); | ||
|
|
||
| inline void analyse() { Clusters::normalize(); } | ||
| inline void analyse() { Clusters::normalize(); } // deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be used in macros, so I would not call it deprecated.
| inline void analyse() { Clusters::normalize(); } // deprecated | |
| inline void analyse() { Clusters::normalize(); } |
| CalPad mOccupancy{"Occupancy"}; | ||
| size_t mProcessedTFs{0}; | ||
| bool mIsNormalized{false}; | ||
| float mNHBFperTF{128}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default now it 32
| float mNHBFperTF{128}; | |
| float mNHBFperTF{32}; |
|
|
||
| //______________________________________________________________________________ | ||
| void Clusters::normalize() | ||
| void Clusters::normalize(const float nHBFPerTF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| void Clusters::normalize(const float nHBFPerTF) | |
| void Clusters::normalize() |
| mTimeBin /= mNClusters; | ||
|
|
||
| mOccupancy = mNClusters; | ||
| mOccupancy /= float(mProcessedTFs * (o2::constants::lhc::LHCMaxBunches * nHBFPerTF) / float(o2::tpc::ParameterElectronics::TIMEBININBC)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| mOccupancy /= float(mProcessedTFs * (o2::constants::lhc::LHCMaxBunches * nHBFPerTF) / float(o2::tpc::ParameterElectronics::TIMEBININBC)); | |
| mOccupancy /= float(mProcessedTFs * (o2::constants::lhc::LHCMaxBunches * mNHBFPerTF) / float(o2::tpc::ParameterElectronics::TIMEBININBC)); |
|
|
||
| if (isThisNormalized) { | ||
| normalize(); | ||
| normalize(mNHBFperTF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, use internal member.
| normalize(mNHBFperTF); | |
| normalize(); |
| } | ||
| if (isOtherNormalized) { | ||
| clusters.normalize(); | ||
| clusters.normalize(mNHBFperTF); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| clusters.normalize(mNHBFperTF); | |
| clusters.normalize(); |
|
This PR did not have any update in the last 30 days. Is it still needed? Unless further action in will be closed in 5 days. |
No description provided.