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

No description provided.

@sbhawanisbhawani changed the title [WIP]TPC QC addds Cluster occupancy histograms[WIP] TPC QC: adds Cluster occupancy histogramsFeb 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
voidnormalize(constfloatnHBFPerTF=128);
voidnormalize();

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
inlinevoidanalyse() { Clusters::normalize(); }// deprecated
inlinevoidanalyse() { 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
floatmNHBFperTF{128};
floatmNHBFperTF{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
voidClusters::normalize(constfloat nHBFPerTF)
voidClusters::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

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 freeto 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

@sbhawani@wiechula@tklemenz