Skip to content

Commit 695413c

Browse files
author
Mu2e
committed
clang-format
1 parent 940b149 commit 695413c

File tree

3 files changed

+35
-37
lines changed

3 files changed

+35
-37
lines changed

otsdaq-mu2e-calorimeter/ArtModules/CaloDataAnalyzer_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class CaloDataAnalyzer : public art::EDAnalyzer {
8080
TGraph* g_eventHits;
8181
TGraph* g_eventEWT;
8282

83-
static const int MAXNHITS = 5500; // 1 hit per sipm
83+
static const int MAXNHITS = 5500; // 1 hit per sipm
8484
static const int MAXNSAMPLES = 550000; // 50 samples per hit (max!)
8585

8686
int t_run;

otsdaq-mu2e-calorimeter/FEInterfaces/ROCCalorimeterInterface.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33

44
#include "otsdaq-mu2e/FEInterfaces/ROCPolarFireCoreInterface.h"
55

6-
#define MZ_ADDRESS 262
6+
#define MZ_ADDRESS 262
77
#define MZ_BUFFER_SIZE 46
88

9-
namespace ots
10-
{
11-
class ROCCalorimeterInterface : public ROCPolarFireCoreInterface
12-
{
9+
namespace ots {
10+
class ROCCalorimeterInterface : public ROCPolarFireCoreInterface {
1311
// clang-format off
1412
public:
1513
ROCCalorimeterInterface(const std::string& rocUID,

otsdaq-mu2e-calorimeter/FEInterfaces/ROCCalorimeterInterface_interface.cc

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ ROCCalorimeterInterface::ROCCalorimeterInterface(const std::string& rocUID, cons
182182

183183
registerFEMacroFunction("TRAD Set Mask",
184184
static_cast<FEVInterface::frontEndMacroFunction_t>(&ROCCalorimeterInterface::TRADSetMask),
185-
std::vector<std::string>{"Set Mask as series of bit (0 enabled, 1 disabled) Default := 0"}, // inputs parameters
186-
std::vector<std::string>{}, // output parameters
187-
1); // requiredUserPermissions
185+
std::vector<std::string>{"Set Mask as series of bit (0 enabled, 1 disabled) Default := 0"}, // inputs parameters
186+
std::vector<std::string>{}, // output parameters
187+
1); // requiredUserPermissions
188188

189189
registerFEMacroFunction("Read MB Registers",
190190
static_cast<FEVInterface::frontEndMacroFunction_t>(&ROCCalorimeterInterface::ReadMBRegisters),
@@ -347,7 +347,7 @@ void ROCCalorimeterInterface::ROCSlowControl(__ARGS__) {
347347
char filename_buff[50], filename_buff_vi[50];
348348
std::snprintf(filename_buff, sizeof(filename_buff), "slowControl%03d.log", boardID);
349349
std::snprintf(filename_buff_vi, sizeof(filename_buff_vi), "slowControlVI%03d.log", boardID);
350-
fs::path output_file = slow_control_dir / filename_buff;
350+
fs::path output_file = slow_control_dir / filename_buff;
351351
fs::path output_file_VI = slow_control_dir / filename_buff_vi;
352352
std::ofstream file(output_file, std::ios::app);
353353
std::ofstream fileVI(output_file_VI, std::ios::app);
@@ -508,41 +508,41 @@ void ROCCalorimeterInterface::TRADSlowControl(__ARGS__) {
508508

509509
os << __E__;
510510

511-
os << "Word " << 0 << ": Sensor 0 Radfet: " << data[0] << " " << __E__;
512-
os << "Word " << 1 << ": Sensor 0 Sipm: " << data[1] << " " << __E__;
513-
os << "Word " << 2 << ": Sensor 0 Temperature: " << data[2]/100.0 << " C " << __E__;
511+
os << "Word " << 0 << ": Sensor 0 Radfet: " << data[0] << " " << __E__;
512+
os << "Word " << 1 << ": Sensor 0 Sipm: " << data[1] << " " << __E__;
513+
os << "Word " << 2 << ": Sensor 0 Temperature: " << data[2] / 100.0 << " C " << __E__;
514514

515-
os << "Word " << 3 << ": Sensor 1 Radfet: " << data[3] << " " << __E__;
516-
os << "Word " << 4 << ": Sensor 1 Sipm: " << data[4] << " " << __E__;
517-
os << "Word " << 5 << ": Sensor 1 Temperature: " << data[5]/100.0 << " C " << __E__;
515+
os << "Word " << 3 << ": Sensor 1 Radfet: " << data[3] << " " << __E__;
516+
os << "Word " << 4 << ": Sensor 1 Sipm: " << data[4] << " " << __E__;
517+
os << "Word " << 5 << ": Sensor 1 Temperature: " << data[5] / 100.0 << " C " << __E__;
518518

519-
os << "Word " << 6 << ": Sensor 2 Radfet: " << data[6] << " " << __E__;
520-
os << "Word " << 7 << ": Sensor 2 Sipm: " << data[7] << " " << __E__;
521-
os << "Word " << 8 << ": Sensor 2 Temperature: " << data[8]/100.0 << " C " << __E__;
519+
os << "Word " << 6 << ": Sensor 2 Radfet: " << data[6] << " " << __E__;
520+
os << "Word " << 7 << ": Sensor 2 Sipm: " << data[7] << " " << __E__;
521+
os << "Word " << 8 << ": Sensor 2 Temperature: " << data[8] / 100.0 << " C " << __E__;
522522

523-
os << "Word " << 9 << ": Sensor 3 Radfet: " << data[9] << " " << __E__;
524-
os << "Word " << 10 << ": Sensor 3 Sipm: " << data[10] << " " << __E__;
525-
os << "Word " << 11 << ": Sensor 3 Temperature: " << data[11]/100.0 << " C " << __E__;
523+
os << "Word " << 9 << ": Sensor 3 Radfet: " << data[9] << " " << __E__;
524+
os << "Word " << 10 << ": Sensor 3 Sipm: " << data[10] << " " << __E__;
525+
os << "Word " << 11 << ": Sensor 3 Temperature: " << data[11] / 100.0 << " C " << __E__;
526526

527-
os << "Word " << 12 << ": Sensor 4 Radfet: " << data[12] << " " << __E__;
528-
os << "Word " << 13 << ": Sensor 4 Sipm: " << data[13] << " " << __E__;
529-
os << "Word " << 14 << ": Sensor 4 Temperature: " << data[14]/100.0 << " C " << __E__;
527+
os << "Word " << 12 << ": Sensor 4 Radfet: " << data[12] << " " << __E__;
528+
os << "Word " << 13 << ": Sensor 4 Sipm: " << data[13] << " " << __E__;
529+
os << "Word " << 14 << ": Sensor 4 Temperature: " << data[14] / 100.0 << " C " << __E__;
530530

531-
os << "Word " << 15 << ": Sensor 5 Radfet: " << data[15] << " " << __E__;
532-
os << "Word " << 16 << ": Sensor 5 Sipm: " << data[16] << " " << __E__;
533-
os << "Word " << 17 << ": Sensor 5 Temperature: " << data[17]/100.0 << " C " << __E__;
531+
os << "Word " << 15 << ": Sensor 5 Radfet: " << data[15] << " " << __E__;
532+
os << "Word " << 16 << ": Sensor 5 Sipm: " << data[16] << " " << __E__;
533+
os << "Word " << 17 << ": Sensor 5 Temperature: " << data[17] / 100.0 << " C " << __E__;
534534

535-
os << "Word " << 18 << ": Sensor 6 Radfet: " << data[18] << " " << __E__;
536-
os << "Word " << 19 << ": Sensor 6 Sipm: " << data[19] << " " << __E__;
537-
os << "Word " << 20 << ": Sensor 6 Temperature: " << data[20]/100.0 << " C " << __E__;
535+
os << "Word " << 18 << ": Sensor 6 Radfet: " << data[18] << " " << __E__;
536+
os << "Word " << 19 << ": Sensor 6 Sipm: " << data[19] << " " << __E__;
537+
os << "Word " << 20 << ": Sensor 6 Temperature: " << data[20] / 100.0 << " C " << __E__;
538538

539-
os << "Word " << 21 << ": Sensor 7 Radfet: " << data[21] << " " << __E__;
540-
os << "Word " << 22 << ": Sensor 7 Sipm: " << data[22] << " " << __E__;
541-
os << "Word " << 23 << ": Sensor 7 Temperature: " << data[23]/100.0 << " C " << __E__;
539+
os << "Word " << 21 << ": Sensor 7 Radfet: " << data[21] << " " << __E__;
540+
os << "Word " << 22 << ": Sensor 7 Sipm: " << data[22] << " " << __E__;
541+
os << "Word " << 23 << ": Sensor 7 Temperature: " << data[23] / 100.0 << " C " << __E__;
542542

543-
os << "Word " << 24 << ": Sensor 8 Radfet: " << data[24] << " " << __E__;
544-
os << "Word " << 25 << ": Sensor 8 Sipm: " << data[25] << " " << __E__;
545-
os << "Word " << 26 << ": Sensor 8 Temperature: " << data[26]/100.0 << " C " << __E__;
543+
os << "Word " << 24 << ": Sensor 8 Radfet: " << data[24] << " " << __E__;
544+
os << "Word " << 25 << ": Sensor 8 Sipm: " << data[25] << " " << __E__;
545+
os << "Word " << 26 << ": Sensor 8 Temperature: " << data[26] / 100.0 << " C " << __E__;
546546

547547
__SET_ARG_OUT__("Status", os.str());
548548
}

0 commit comments

Comments
 (0)