#include <TStyle.h>
#include <TObjArray.h>
+#include "AliLoader.h"
#include "AliRunLoader.h"
#include "AliMUONVDigit.h"
#include "AliMUONDigitStoreV1.h"
+#include <cstdio>
+
/// \cond CLASSIMP
ClassImp(AliMUONTriggerGUIdimap)
/// \endcond
TPaveText *label;
TBox *boxd;
- Char_t cln[2];
+ Char_t cln[4]; // must be 4 long - room for terminating '\0'
Int_t detElemId, cathode, ix, iy, charge, color;
Int_t holdS, holdL, holdC;
Float_t xCenter, yCenter, xWidth, yWidth, holdXC, holdYC;
if (holdL == 9) {
- sprintf(cln,"C%1d",holdC);
+ snprintf(cln,4,"C%1d",holdC);
ptx1 = holdXC - lWidth;
ptx2 = holdXC + lWidth;
}
if (holdL == 1) {
- sprintf(cln,"C%1d",holdC);
+ snprintf(cln,4,"C%1d",holdC);
ptx1 = holdXC - lWidth;
ptx2 = holdXC + lWidth;
}
if (holdS == 0 && holdC == 7) {
- sprintf(cln,"L%1d",holdL);
+ snprintf(cln,4,"L%1d",holdL);
ptx1 = -1.07*frameXmax - lWidth;
ptx2 = -1.07*frameXmax + lWidth;
}
if (holdS == 1 && holdC == 7) {
- sprintf(cln,"L%1d",holdL);
+ snprintf(cln,4,"L%1d",holdL);
ptx1 = +1.07*frameXmax - lWidth;
ptx2 = +1.07*frameXmax + lWidth;