Skip to content

Commit

Permalink
Merge branch 'main' into VPD_start_mode_integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTorres98 committed Mar 25, 2024
2 parents f1fce67 + 06198bc commit 56f2962
Show file tree
Hide file tree
Showing 39 changed files with 267 additions and 177 deletions.
10 changes: 10 additions & 0 deletions StDb/idl/fcsEcalGainOnline.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* fcsEcalGainOnline.idl
*
* Table: fcsEcalGainOnline
*
* description: // FCS ECal gain online
*/

struct fcsEcalGainOnline {
float gainOnline[1496]; /* gaincorr 2*748 */
};
10 changes: 10 additions & 0 deletions StDb/idl/fcsHcalGainOnline.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* fcsHcalGainOnline.idl
*
* Table: fcsHcalGainOnline
*
* description: // FCS HCal gain online
*/

struct fcsHcalGainOnline {
float gainOnline[520]; /* gaincorr 2*260 */
};
10 changes: 10 additions & 0 deletions StDb/idl/fcsPresThreshold.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* fcsPresThreshold.idl
*
* Table: fcsPresThreshold
*
* description: // FCS Pres Threshold online
*/

struct fcsPresThreshold {
float threshold[384]; /* valley position 2*192 */
};
45 changes: 9 additions & 36 deletions StRoot/RTS/include/rtsLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,41 +93,14 @@ void rtsLogAddJmlFile (char *fname);



/*Tonko: not used Special (mis)handling for STAR Offline Code
#ifdef __ROOT__
#define RTS_DISABLE_LOG
#endif
*/

#ifdef RTS_DISABLE_LOG

#define RTS_ASSERT(expr) assert(expr)


#define LOG(SEV,STRING,ARGS...) \
do { \
const char *const yada = SEV ; \
if((*yada == 'E')) { \
fprintf(stderr,"" ANSI_RED "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
else if((*yada == 'C')) { \
fprintf(stderr,"" ANSI_RED "" ANSI_REVERSE "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
else if((*yada == 'I')) { \
fprintf(stderr,"" ANSI_BLUE "" ANSI_BOLD "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
else if((*yada == 'T')) { \
fprintf(stderr,"" ANSI_GREEN "" ANSI_BOLD "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
else if((*yada == 'W')) { \
fprintf(stderr,"" ANSI_CYAN "" ANSI_BOLD "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
else if((*yada == 'O')) { \
fprintf(stderr,"" ANSI_BLUE "" ANSI_REVERSE "RTS_" SEV ": " __FILE__ " [line %d]: " STRING "" ANSI_RESET "\n" , __LINE__ , ##ARGS) ;\
} \
} while(0) \

#ifndef RTS_ENABLE_LOG

#define RTS_ASSERT(expr) assert(expr)
#define LOG(SEV,STRING,ARGS...)
#define rtsLogUnix_v(str, ...)
#define rtsLogAddCmd(x)


// the following become noops...
Expand All @@ -136,7 +109,7 @@ void rtsLogAddJmlFile (char *fname);
#define rtsLogLevelInt(x)
#define rtsLogOutput(x)

#else /* RTS_DISABLE_LOG */
#else /* RTS_ENABLE_LOG */


#ifdef __GNUC__
Expand Down Expand Up @@ -270,12 +243,12 @@ INLINE_HACK void rtsLogLevel(const char *level)



#endif
#endif /* RTS_LOG_COLORED */

#endif
#endif /* __vxworks */


#endif /* RTS_DISABLE_LOG */
#endif /* RTS_ENABLE_LOG */

#ifdef __cplusplus
}
Expand Down
3 changes: 2 additions & 1 deletion StRoot/RTS/src/LOG/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
include ../rtsmakefile.def
include ../rtsplus.def


# zap LDLIBS
LDLIBS =

Expand All @@ -28,7 +29,7 @@ rtsLog.o : rtsLog.C

rtsLog: rtsLog.o rtsLogUnix.o
$(CXX) $(CXXFLAGS) rtsLogUnix.o rtsLog.o -o rtsLog

#operDisplay.sh:


Expand Down
2 changes: 1 addition & 1 deletion StRoot/RTS/src/LOG/rtsLog.C
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main(int argc, char *argv[])
use_stdin = 0 ;

rtsLogLevel(DBG) ;
rtsLogOutput(RTS_LOG_NET) ;
//rtsLogOutput(RTS_LOG_NET) ;

memset(logstr,0,sizeof(logstr)) ;

Expand Down
34 changes: 30 additions & 4 deletions StRoot/RTS/src/LOG/rtsLogUnix.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,30 @@ extern "C" {
volatile int tonkoLogLevel = 2 ;






#ifdef RTS_ENABLE_LOG
#warning "DAQ logging is enabled"
#ifdef RTS_LOG_DEFAULT_NET
#warning "DAQ logging defaults to daqman"
#else
#warning "DAQ logging defaults to STDERR"
#endif /* RTS_LOG_DEFAULT_NET */
#else
#warning "DAQ logging is disabled"
#endif /* RTS_ENABLE_LOG */


#ifdef RTS_ENABLE_LOG

#ifdef RTS_LOG_DEFAULT_NET
static int output_flag = RTS_LOG_NET ;
#else
static int output_flag = RTS_LOG_STDERR ;
#endif

static const char *getCmd(void) ;
static int odesc = -1 ;
static int handchange ;
Expand All @@ -42,7 +66,7 @@ static char servER[80] = RTS_LOG_HOST ;
#endif

static int port = RTS_LOG_PORT ;
static int output_flag = RTS_LOG_NET ;

static char cmd[1024] ;

/*
Expand Down Expand Up @@ -113,7 +137,6 @@ void rtsLogAddJmlFile (char *fname)
jml_fname = _g_fname;
}


int rtsLogUnix_v(const char *str, ...)
{
/* common to all threads */
Expand Down Expand Up @@ -328,8 +351,6 @@ int rtsLogUnix_v(const char *str, ...)
return 0 ;
}



static const char *getCmd(void)
{

Expand Down Expand Up @@ -370,6 +391,11 @@ static const char *getCmd(void)
#endif
}


#endif



#ifdef __cplusplus
}
#endif
Expand Down
36 changes: 33 additions & 3 deletions StRoot/RTS/src/rtsmakefile.def
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ifeq ($(HOST_NAME),daqman.starp.bnl.gov)
endif


HOSTDOMAIN = $(shell hostname -d)

# jml... TARGET_CPU_STRING to mean the full string...

# go from "uname" to gcc -mcpu=TARGET_CPU variant
Expand Down Expand Up @@ -373,14 +375,38 @@ DEFINES = -D_REENTRANT ${RTS_DAQMAN_FLAGS} -DRTS_HOST_NAME=\"${HOST_NAME}\" -DTA


# Set strict errors in LINUX
BASEFLAGS = -O3 -Wall -Werror -Wno-error=strict-overflow -Wno-error=maybe-uninitialized -Wno-error=unused-label -Wno-error=unused-value -Wno-error=unused-variable -Wno-error=unused-function -Wno-unused-but-set-variable -pipe -fverbose-asm ${HOSTFLAGS}
BASEFLAGS = -O3 -Wall -Wno-error=strict-overflow -Wno-error=maybe-uninitialized -Wno-error=unused-label -Wno-error=unused-value -Wno-error=unused-variable -Wno-error=unused-function -Wno-unused-but-set-variable -pipe -fverbose-asm ${HOSTFLAGS}


#-O3
ifneq (${TARGET_SYSTEM}, LINUX)
BASEFLAGS = -O3 -Wall -pipe -fverbose-asm ${HOSTFLAGS}
BASEFLAGS = -Wall -pipe -fverbose-asm ${HOSTFLAGS}
endif

ifeq (${HOST_NAME},xvme01.daq.bnl.local)
BASEFLAGS = -O3 -Wall -Werror -Wno-error=strict-overflow -Wno-error=unused-label -Wno-error=unused-value -Wno-error=unused-variable -Wno-error=unused-function -Wno-unused-but-set-variable -pipe -fverbose-asm ${HOSTFLAGS}
BASEFLAGS = -O3 -Wall -Wno-error=strict-overflow -Wno-error=unused-label -Wno-error=unused-value -Wno-error=unused-variable -Wno-error=unused-function -Wno-unused-but-set-variable -pipe -fverbose-asm ${HOSTFLAGS}
endif

# if not compiling on one of the standard domains, then
# use the default log destination of std_err
# if compiling on local domain, write to daqman
#
# if compiling somewhere else for writing to daqman these defines
ifeq (${HOSTDOMAIN},starp.bnl.gov)
DEFINES += -DRTS_LOG_DEFAULT_NET
DEFINES += -DRTS_ENABLE_LOG
else ifeq (${HOSTDOMAIN},daq.bnl.local)
DEFINES += -DRTS_LOG_DEFAULT_NET
DEFINES += -DRTS_ENABLE_LOG
else ifeq (${HOSTDOMAIN},daq2.bnl.local)
DEFINES += -DRTS_LOG_DEFAULT_NET
DEFINES += -DRTS_ENABLE_LOG
else ifeq (${HOSTDOMAIN},trg.bnl.local)
DEFINES += -DRTS_LOG_DEFAULT_NET
DEFINES += -DRTS_ENABLE_LOG
else ifeq (${HOSTDOMAIN},l4.bnl.local)
DEFINES += -DRTS_LOG_DEFAULT_NET
DEFINES += -DRTS_ENABLE_LOG
endif

CCFLAGS = ${BASEFLAGS} ${USRCCFLAGS} ${DEFINES} ${INCLUDES}
Expand All @@ -396,6 +422,10 @@ ifeq ($(RTS_PROJECT),PP2PP)
endif
endif





# noticed problems on Linux where the default linker gcc doesn't work well for g++ compiled
# files
LINK.o = $(CXX) $(LDFLAGS) $(TARGET_ARCH)
Expand Down
2 changes: 1 addition & 1 deletion StRoot/StBFChain/BigFullChain.h
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ Bfc_st BFC[] = { // standard chains
// Sti/Stv chains
{"Sti" ,"Sti","","StiLib,StiLibs,SCL,StEvent,StDbT,TpcIT,compend,sim_T,tbutil","StiMaker"
, "StEventUtilities,StiUtilities,StiMaker","Sti tracker",kFALSE},
{"StiCA" ,"Sti","","Sti","StiMaker","TPCCATracker,StiCA" ,"StiCA tracker",kFALSE},
{"StiCA" ,"Sti","","Sti","StiMaker","TPCCATracker" ,"StiCA tracker",kFALSE},
{"StiCAPerf","","","","", "TPCCATrackerPerformance", "CA Performance",kFALSE},
{"StiCA" ,"Sti","","Sti,StiLib,StiCALib,StiLibs,SCL,StEvent,StDbT,TpcIT,compend,tbutil","StiMaker"
, "StEventUtilities,libEG,StiUtilities,StiMaker","Sti+CA tracker",kFALSE},
Expand Down
4 changes: 2 additions & 2 deletions StRoot/StChain/GeometryDbAliases.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ static const DbAlias_t fDbAlias[] = {// geometry Comment old
{ "y2023", 20230410, 0, "y2023", "y2023 first cut geometry, AgML,xgeometry"},
{ "y2023a", 20230410, 1, "y2023a", "y2023a production geometry, AgML,xgeometry"},

{ "y2023", 20231210, 0, "y2024", "y2024 first cut geometry, AgML,xgeometry"},
{ "y2023a", 20231210, 1, "y2024a", "y2024a production geometry, AgML,xgeometry"},
{ "y2024", 20231210, 0, "y2024", "y2024 first cut geometry, AgML,xgeometry"},
{ "y2024a", 20231210, 1, "y2024a", "y2024a production geometry, AgML,xgeometry"},

{"dev2021", 21201210, 1, "dev2021", "-deprecated- geometry for 2021+ forward program,AgML,xgeometry"},
{"dev2022", 21211210, 1, "dev2022", "development geometry for 2022+ forward program,AgML,xgeometry"},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//
//critical plots for offline QA: h1_inv_mass_cluster , h1_two_cluster_energy_allcut , h1_dgg_cluster , h2_cluster_dgg_vs_E1pE2
//
//Update 3/12/24: move the StFcsPi0FinderForEcal to StRoot , no dependent on StSpinPool , also comment out 2 unused head file
//

#include "StFcsPi0FinderForEcal.h"
Expand All @@ -16,8 +17,8 @@
#include "StFcsDbMaker/StFcsDbMaker.h"
#include "StMessMgr.h"
#include "StMuDSTMaker/COMMON/StMuTypes.hh"
#include "StSpinPool/StFcsQaMaker/StFcsQaMaker.h"
#include "StSpinPool/StFcsRawDaqReader/StFcsRawDaqReader.h"
//#include "StSpinPool/StFcsQaMaker/StFcsQaMaker.h"
//#include "StSpinPool/StFcsRawDaqReader/StFcsRawDaqReader.h"
#include "StThreeVectorF.hh"
#include "Stypes.h"
#include "TBox.h"
Expand Down
Loading

0 comments on commit 56f2962

Please sign in to comment.