Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Detectors/TPC/qc/include/TPCQC/Clusters.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
#ifndef AliceO2_TPC_CLUSTERS_H
#define AliceO2_TPC_CLUSTERS_H

//root includes
// root includes
#include "TCanvas.h"

//o2 includes
// o2 includes
#include "TPCBase/CalDet.h"
#include "TPCBase/Sector.h"
#include "DataFormatsTPC/Defs.h"
Expand Down Expand Up @@ -75,6 +75,8 @@ class Clusters
CalPad& getSigmaPad() { return mSigmaPad; }
CalPad& getTimeBin() { return mTimeBin; }

CalPad getOccupancy(int nHBFPerTF = 32);

void endTF() { ++mProcessedTFs; }

size_t getProcessedTFs() { return mProcessedTFs; }
Expand Down
11 changes: 11 additions & 0 deletions Detectors/TPC/qc/src/Clusters.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
#include "TPCBase/ROC.h"
#include "TPCBase/CRU.h"
#include "TPCBase/Mapper.h"
#include "TPCBase/ParameterElectronics.h"
#include "DataFormatsTPC/ClusterNative.h"
#include "DataFormatsTPC/KrCluster.h"
#include "CommonConstants/LHCConstants.h"

ClassImp(o2::tpc::qc::Clusters);

Expand Down Expand Up @@ -152,6 +154,15 @@ void Clusters::reset()
mProcessedTFs = 0;
}

//______________________________________________________________________________
o2::tpc::CalPad Clusters::getOccupancy(int nHBFPerTF)
{
o2::tpc::CalPad Occupancy = mNClusters;
Occupancy /= float(mProcessedTFs * (o2::constants::lhc::LHCMaxBunches * nHBFPerTF) / float(o2::tpc::ParameterElectronics::TIMEBININBC));
return Occupancy;
;
Comment thread
wiechula marked this conversation as resolved.
Outdated
}

//______________________________________________________________________________
void Clusters::merge(Clusters& clusters)
{
Expand Down