Skip to content

Commit

Permalink
clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
deependra170598 committed Oct 16, 2023
1 parent eee85cc commit c30bf69
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 @@ -19,5 +19,5 @@
#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::TrackletCountCheck+;
#pragma link C++ class o2::quality_control_modules::trd::TrackletCountCheck + ;
#endif
2 changes: 1 addition & 1 deletion Modules/TRD/include/TRD/TrackletCountCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class TrackletCountCheck : public o2::quality_control::checker::CheckInterface
Quality check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap) override;
void beautify(std::shared_ptr<MonitorObject> mo, Quality checkResult = Quality::Null) override;
std::string getAcceptedType() override;
float mThresholdMeanLowPerTrigger,mThresholdMeanHighPerTrigger, mThresholdMeanLowPerTimeFrame,mThresholdMeanHighPerTimeFrame;
float mThresholdMeanLowPerTrigger, mThresholdMeanHighPerTrigger, mThresholdMeanLowPerTimeFrame, mThresholdMeanHighPerTimeFrame;
int mStatThresholdPerTrigger;
Quality mResultPertrigger;
Quality mResultPerTimeFrame;
Expand Down
16 changes: 8 additions & 8 deletions Modules/TRD/src/TrackletCountCheck.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 TrackletCountCheck::configure()
void TrackletCountCheck::configure()
{
ILOG(Debug, Devel) << "initializing TrackletCountCheck" << ENDM;

Expand Down Expand Up @@ -132,15 +132,15 @@ Quality TrackletCountCheck::check(std::map<std::string, std::shared_ptr<MonitorO
}
}
}
if(mResultPertrigger == Quality::Null && mResultPerTimeFrame == Quality::Null){
if (mResultPertrigger == Quality::Null && mResultPerTimeFrame == Quality::Null) {
mFinalResult = Quality::Null;
mFinalResult.addReason(FlagReasonFactory::Unknown(),"Quality of both trackletspertimeframe and trackletsperevent is unknown");
} else if((mResultPertrigger == Quality::Null && mResultPerTimeFrame == Quality::Good)||(mResultPertrigger == Quality::Good && mResultPerTimeFrame == Quality::Null)){
mFinalResult.addReason(FlagReasonFactory::Unknown(), "Quality of both trackletspertimeframe and trackletsperevent is unknown");
} else if ((mResultPertrigger == Quality::Null && mResultPerTimeFrame == Quality::Good) || (mResultPertrigger == Quality::Good && mResultPerTimeFrame == Quality::Null)) {
mFinalResult = Quality::Medium;
mFinalResult.addReason(FlagReasonFactory::Unknown(),"Quality of any of trackletspertimeframe and trackletsperevent is unknown");
} else if(mResultPertrigger == Quality::Bad || mResultPerTimeFrame ==Quality::Bad){
mFinalResult.addReason(FlagReasonFactory::Unknown(), "Quality of any of trackletspertimeframe and trackletsperevent is unknown");
} else if (mResultPertrigger == Quality::Bad || mResultPerTimeFrame == Quality::Bad) {
mFinalResult = Quality::Bad;
mFinalResult.addReason(FlagReasonFactory::Unknown(),"Quality of both or any of trackletspertimeframe and trackletsperevent is bad");
mFinalResult.addReason(FlagReasonFactory::Unknown(), "Quality of both or any of trackletspertimeframe and trackletsperevent is bad");
} else {
mFinalResult = Quality::Good;
}
Expand Down Expand Up @@ -168,7 +168,7 @@ void TrackletCountCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality che
}
h1->SetLineColor(kBlack);
}
if(mo->getName() == "trackletspertimeframe"){
if (mo->getName() == "trackletspertimeframe") {
auto* h2 = dynamic_cast<TH1F*>(mo->getObject());
if (h2 == nullptr) {
// ILOG(Debug, Support) << "Requested Histogram type does not match with the Histogram in source" << ENDM;
Expand Down

0 comments on commit c30bf69

Please sign in to comment.