Skip to content

Commit

Permalink
clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
deependra170598 committed Oct 12, 2023
1 parent 0bf3350 commit b74caaa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Modules/TRD/include/TRD/LinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
#pragma link C++ class o2::quality_control_modules::trd::PulsePositionCheck + ;
#pragma link C++ class o2::quality_control_modules::trd::TRDReductor + ;
#pragma link C++ class o2::quality_control_modules::trd::TrackletPerTriggerCheck + ;
#pragma link C++ class o2::quality_control_modules::trd::TrackletsPerTimeFrameCheck+;
#pragma link C++ class o2::quality_control_modules::trd::TrackletsPerTimeFrameCheck + ;
#endif
4 changes: 2 additions & 2 deletions Modules/TRD/src/TrackletPerTriggerCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ Quality TrackletPerTriggerCheck::check(std::map<std::string, std::shared_ptr<Mon

// Warning about triggers without any tracklets
int UnderFlowTracklets = h->GetBinContent(0);
if(UnderFlowTracklets>0.){
msg1->AddText(TString::Format("Triggers without Tracklets: %d",UnderFlowTracklets));
if (UnderFlowTracklets > 0.) {
msg1->AddText(TString::Format("Triggers without Tracklets: %d", UnderFlowTracklets));
}

// applying check
Expand Down
14 changes: 7 additions & 7 deletions Modules/TRD/src/TrackletsPerTimeFrameCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace o2::quality_control_modules::common;
namespace o2::quality_control_modules::trd
{

void TrackletsPerTimeFrameCheck::configure()
void TrackletsPerTimeFrameCheck::configure()
{
ILOG(Debug, Devel) << "initialize TrackletsPerTimeFrameCheck" << ENDM;

Expand All @@ -56,24 +56,24 @@ Quality TrackletsPerTimeFrameCheck::check(std::map<std::string, std::shared_ptr<
// ILOG(Debug, Support) << "Requested Histogram type does not match with the Histogram in source" << ENDM;
continue;
}

TPaveText* msg1 = new TPaveText(0.3, 0.7, 0.7, 0.9, "NDC"); // check option "br","NDC"
h->GetListOfFunctions()->Add(msg1);
msg1->SetTextSize(10);

// Warning about TimeFrame without any tracklets
int UnderFlowTracklets = h->GetBinContent(0);
if(UnderFlowTracklets>0.){
msg1->AddText(TString::Format("TimeFrame without Tracklets: %d",UnderFlowTracklets));
if (UnderFlowTracklets > 0.) {
msg1->AddText(TString::Format("TimeFrame without Tracklets: %d", UnderFlowTracklets));
}

// applying check
float MeanTracletPerTimeFrame = h->GetMean();
if(MeanTracletPerTimeFrame > mThresholdMeanLow && MeanTracletPerTimeFrame < mThresholdMeanHigh){
if (MeanTracletPerTimeFrame > mThresholdMeanLow && MeanTracletPerTimeFrame < mThresholdMeanHigh) {
TText* Checkmsg = msg1->AddText("Mean is found in bound region: ok");
Checkmsg->SetTextColor(kGreen);
result = Quality::Good;
}else {
} else {
result = Quality::Bad;
TText* Checkmsg = msg1->AddText("Mean is not found in bound region: not ok");
Checkmsg->SetTextColor(kRed);
Expand Down

0 comments on commit b74caaa

Please sign in to comment.