Skip to content

Commit c82d396

Browse files
authored
Merge pull request #58 from Mu2e/pgirotti/FEupdates
Some FE updates from MC-2 commissioning Build tested locally
2 parents 4530366 + dede4fd commit c82d396

File tree

10 files changed

+468
-70
lines changed

10 files changed

+468
-70
lines changed

boardConfig/boardMap.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@
158158
157 36353 27239
159159
158 0 0
160160
159 0 0
161-
199 36097 8813
161+
160 36097 8813

boardConfig/mzbCalib/mzb160.config

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
0 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
2+
1 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
3+
2 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
4+
3 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
5+
4 20.273 -15.862 0.0620260 0.606477 0.6276 2.09773 -0.06098 94.6
6+
5 20.273 -15.862 0.0619830 0.723143 0.6276 2.09773 -0.06098 94.6
7+
6 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
8+
7 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
9+
8 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
10+
9 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
11+
10 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
12+
11 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
13+
12 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
14+
13 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
15+
14 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
16+
15 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
17+
16 20.273 -15.862 0.0622780 0.169038 0.6276 2.09773 -0.06098 94.6
18+
17 20.273 -15.862 0.0620570 0.647151 0.6276 2.09773 -0.06098 94.6
19+
18 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0
20+
19 0.000 0.000 0.0000000 0.000000 0.0000 0.00000 0.00000 0.0

boardConfig/mzbCalib/mzb199.config

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
0 0 EMPTY
2+
1 0 EMPTY
3+
2 0 EMPTY
4+
3 0 EMPTY
5+
4 160.0 PIN-DIODE
6+
5 160.0 PIN-DIODE
7+
6 0 EMPTY
8+
7 0 EMPTY
9+
8 0 EMPTY
10+
9 0 EMPTY
11+
10 0 EMPTY
12+
11 0 EMPTY
13+
12 0 EMPTY
14+
13 0 EMPTY
15+
14 0 EMPTY
16+
15 0 EMPTY
17+
16 160.0 PIN-DIODE
18+
17 160.0 PIN-DIODE
19+
18 0 EMPTY
20+
19 0 EMPTY

boardConfig/nominal/board199.config

Lines changed: 0 additions & 20 deletions
This file was deleted.

boardConfig/slowControl/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!.gitignore
2+
*.log
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Cartella contenente i file
4+
DIR="./" # puoi cambiarlo in un path assoluto
5+
6+
# Nome del file di output
7+
SUMMARY_FILE="summary.log"
8+
9+
# Cancella o crea file riepilogo
10+
> "$SUMMARY_FILE"
11+
12+
# Trova tutti i file slowControl*.log e li ordina numericamente
13+
for f in $(ls "${DIR}"/slowControl*.log 2>/dev/null | sort -V); do
14+
# Estrai l'ultima riga
15+
last_line=$(tail -n 1 "$f")
16+
echo "$last_line" >> "$SUMMARY_FILE"
17+
done
18+
19+
echo "Creato riepilogo: $SUMMARY_FILE"

otsdaq-mu2e-calorimeter/FEInterfaces/MZB.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ typedef enum MZB_OSCMDCODE_t {
113113
DIRACWDG, // Set and show the DIRAC Watchdog status
114114
DIRACRST, // Pulse the DIRAC RESET REQUEST line (0.1s)
115115
WATCHDOG, // Show status for the all implemented watchdog
116+
CPULED, // Blink LEDs
116117
RESERVED //
117118
} MZB_OSCMDCODE_t;
118119

@@ -192,6 +193,7 @@ MZB_OSCMDCODE_MAP_t code_map[] = {{SYNTAX_ERROR, "SYNTAX_ERROR"},
192193
{DIRACWDG, "DIRACWDG"},
193194
{DIRACRST, "DIRACRST"},
194195
{WATCHDOG, "WATCHDOG"},
196+
{CPULED, "CPULED"},
195197
{RESERVED, "RESERVED"}};
196198

197199
#ifdef GNU_COMP

otsdaq-mu2e-calorimeter/FEInterfaces/ROCCalorimeterInterface.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ class ROCCalorimeterInterface : public ROCPolarFireCoreInterface {
7878

7979
ROC_ADDRESS_BOARD_U_ID_LSB = 145,
8080
ROC_ADDRESS_BOARD_U_ID_CSB = 146,
81-
ROC_ADDRESS_BOARD_U_ID_MSB = 147
81+
ROC_ADDRESS_BOARD_U_ID_MSB = 147,
8282

83+
ROC_ADDRESS_SIMWF_ENABLE_A = 150,
84+
ROC_ADDRESS_SIMWF_ENABLE_B = 151,
85+
ROC_ADDRESS_SIMWF_MULTI_A = 152,
86+
ROC_ADDRESS_SIMWF_MULTI_B = 153
8387

8488

8589
};
@@ -115,7 +119,7 @@ class ROCCalorimeterInterface : public ROCPolarFireCoreInterface {
115119
void SetupForPatternFixedLengthDataTaking (__ARGS__);
116120
void SetupForPatternFixedLengthDataTaking (unsigned int numberOfWords);
117121
void SetupForADCsDataTaking (__ARGS__);
118-
void SetupForADCsDataTaking (bool setThr, unsigned int threshold);
122+
void SetupForADCsDataTaking (bool setThr, bool isNfw, unsigned int threshold);
119123

120124
void SendMzCommand(__ARGS__);
121125
void EvaluateBlockWriteErrorRate(__ARGS__);
@@ -128,6 +132,8 @@ class ROCCalorimeterInterface : public ROCPolarFireCoreInterface {
128132
void SetupForNoiseTaking(__ARGS__);
129133
void SetupForNoiseTaking(unsigned int numberOfsamples);
130134
void RMZB_writeAllSiPMbias(float *hv);
135+
void EnableDisableLEDs(__ARGS__);
136+
131137

132138
void ConfigureLink(__ARGS__);
133139
void ConfigureLink(std::string conf, std::string confFile, bool hvonoff, bool doCalibration, bool setThresholds, int offset);
@@ -142,6 +148,7 @@ class ROCCalorimeterInterface : public ROCPolarFireCoreInterface {
142148

143149
void ReadROCErrorCounter (__ARGS__);
144150
void ReadMBRegisters (__ARGS__);
151+
void GetMZBStatus (__ARGS__);
145152

146153

147154

0 commit comments

Comments
 (0)