Skip to content

Conversation

@sbhawani
Copy link

@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
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
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
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
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
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
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
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
Contributor

github-actions bot 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