Skip to content

[WIP] TPC QC: adds Cluster occupancy histograms#12643

Closed
sbhawani wants to merge 2 commits into
AliceO2Group:devfrom
sbhawani:ClusterOccupancy
Closed

[WIP] TPC QC: adds Cluster occupancy histograms#12643
sbhawani wants to merge 2 commits into
AliceO2Group:devfrom
sbhawani:ClusterOccupancy

Conversation

@sbhawani
Copy link
Copy Markdown

@sbhawani sbhawani commented Feb 1, 2024

No description provided.

@sbhawani sbhawani changed the title [WIP]TPC QC addds Cluster occupancy histograms [WIP] TPC QC: adds Cluster occupancy histograms Feb 1, 2024
void fillADCValue(int cru, int rowInSector, int padInRow, int timeBin, float adcValue);

void normalize();
void normalize(const float nHBFPerTF = 128);
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.

There is a data member for the number of HBFs. So it is not needed twice

Suggested change
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
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.

Might be used in macros, so I would not call it deprecated.

Suggested change
inline void analyse() { Clusters::normalize(); } // deprecated
inline void analyse() { Clusters::normalize(); }

CalPad mOccupancy{"Occupancy"};
size_t mProcessedTFs{0};
bool mIsNormalized{false};
float mNHBFperTF{128};
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.

The default now it 32

Suggested change
float mNHBFperTF{128};
float mNHBFperTF{32};


//______________________________________________________________________________
void Clusters::normalize()
void Clusters::normalize(const float nHBFPerTF)
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.

Suggested change
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));
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.

Suggested change
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);
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.

Not needed, use internal member.

Suggested change
normalize(mNHBFperTF);
normalize();

}
if (isOtherNormalized) {
clusters.normalize();
clusters.normalize(mNHBFperTF);
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.

Suggested change
clusters.normalize(mNHBFperTF);
clusters.normalize();

@github-actions
Copy link
Copy Markdown
Contributor

ghost commented Mar 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants