From f11ecc39f7940b41d441bb35e2497d59797541e3 Mon Sep 17 00:00:00 2001 From: Werner Wiedenmann <wiedenat@cern.ch> Date: Wed, 27 Apr 2011 16:46:56 +0200 Subject: [PATCH] checkreq fixes (HLTdal-00-01-02) --- HLT/HLTdal/cmt/requirements | 65 ++++++++++ HLT/HLTdal/schema/hlt.schema.xml | 128 +++++++++++++++++++ HLT/HLTdal/sw/hlt-templates.data.xml | 177 +++++++++++++++++++++++++++ 3 files changed, 370 insertions(+) create mode 100644 HLT/HLTdal/cmt/requirements create mode 100644 HLT/HLTdal/schema/hlt.schema.xml create mode 100644 HLT/HLTdal/sw/hlt-templates.data.xml diff --git a/HLT/HLTdal/cmt/requirements b/HLT/HLTdal/cmt/requirements new file mode 100644 index 00000000000..7480bb399df --- /dev/null +++ b/HLT/HLTdal/cmt/requirements @@ -0,0 +1,65 @@ +package HLTdal + +author Andre.dos.Anjos@cern.ch +manager Andre.dos.Anjos@cern.ch, Reiner.Hauser@cern.ch + +public + +use AtlasPolicy AtlasPolicy-* +#use AtlasPython AtlasPython-* External +#use AtlasBoost AtlasBoost-* External + +library HLTdal *.cpp +# apply_tag default_linkopts + +private +use HLTtdaq HLTtdaq-* HLT/HLTExternal + +# Remove to avoid compiler warning +macro_remove_regexp AtlasCxxPolicy_pp_cppflags "'-DPACKAGE_VERSION=.*'" + +use genconfig * -no_auto_imports + +macro generate-config-include-dirs "${TDAQ_INST_PATH}/share/data/DFConfiguration ${TDAQ_INST_PATH}/share/data/dal" + +document generate-config hltdal -s=../schema/ \ + namespace="hlt::dal" \ + include="HLTdal" \ + cppdir="../src/" \ + prefix="${HLTdal_cmtpath}/${cmt_installarea_prefix}" \ + hlt.schema.xml + +macro_append HLTdal_dependencies " hltdal" +include_dirs $(bin) + +# Leave this as _copy since we should not link from 'include' to a platform specific directory +# since it can cause problems in creating the pacman kit +apply_pattern generic_declare_for_copy kind="gen_includes" files="-s=$(bin) HLTdal" prefix="include/$(package)" +macro_append install_gen_includes_dependencies " hltdal" + +apply_pattern generic_declare_for_link kind="schema" files="-s=../schema hlt.schema.xml" prefix="share/data/daq/schema" +apply_pattern generic_declare_for_link kind="sw" files="-s=../sw hlt-templates.data.xml" prefix="share/data/daq/sw" + +macro HLTdal_shlibflags " ${HLTtdaq_linkopts} -ldaq-df-dal " + + +# Build Java bindings + +apply_tag linux +macro_prepend classpath "${TDAQ_INST_PATH}/share/lib/DFdal.jar:" +macro_prepend classpath "${TDAQ_INST_PATH}/share/lib/config.jar:" +macro_prepend classpath "${TDAQ_INST_PATH}/share/lib/dal.jar:" +apply_pattern build_jar name=HLTdal src_dir="$(bin)hltdal.tmp/HLTdal" \ + sources=*.java + +document installer install_jars "$(bin)/java/HLTdal.jar" \ + install_dir="$(CMTINSTALLAREA)/share/HLTdal" + +macro_append HLTdal.jar_dependencies hltdal +macro_append install_jars_dependencies HLTdal.jar + +# A generated application + +application HLTdal_dump ../src/dump/dump_hlt__dal.cpp +macro HLTdal_dumplinkopts "-lHLTdal -lipc" +macro HLTdal_dump_dependencies "hltdal HLTdal" diff --git a/HLT/HLTdal/schema/hlt.schema.xml b/HLT/HLTdal/schema/hlt.schema.xml new file mode 100644 index 00000000000..863a3740bb1 --- /dev/null +++ b/HLT/HLTdal/schema/hlt.schema.xml @@ -0,0 +1,128 @@ +<?xml version="1.0" encoding="ASCII"?> + +<!-- oks-schema version 2.0 --> + + +<!DOCTYPE oks-schema [ + <!ELEMENT oks-schema (info, (include)?, (comments)?, (class)+)> + <!ELEMENT info EMPTY> + <!ATTLIST info + name CDATA #REQUIRED + type CDATA #REQUIRED + num-of-includes CDATA #REQUIRED + num-of-items CDATA #REQUIRED + oks-format CDATA #FIXED "schema" + oks-version CDATA #REQUIRED + created-by CDATA #REQUIRED + created-on CDATA #REQUIRED + creation-time CDATA #REQUIRED + last-modified-by CDATA #REQUIRED + last-modified-on CDATA #REQUIRED + last-modification-time CDATA #REQUIRED + > + <!ELEMENT include (file)+> + <!ELEMENT file EMPTY> + <!ATTLIST file + path CDATA #REQUIRED + > + <!ELEMENT comments (comment)+> + <!ELEMENT comment EMPTY> + <!ATTLIST comment + creation-time CDATA #REQUIRED + created-by CDATA #REQUIRED + created-on CDATA #REQUIRED + author CDATA #REQUIRED + text CDATA #REQUIRED + > + <!ELEMENT class (superclass | attribute | relationship | method)*> + <!ATTLIST class + name CDATA #REQUIRED + description CDATA "" + is-abstract (yes|no) "no" + > + <!ELEMENT superclass EMPTY> + <!ATTLIST superclass name CDATA #REQUIRED> + <!ELEMENT attribute EMPTY> + <!ATTLIST attribute + name CDATA #REQUIRED + description CDATA "" + type (bool|s8|u8|s16|u16|s32|u32|s64|u64|float|double|date|time|string|uid|enum|class) #REQUIRED + range CDATA "" + format (dec|hex|oct) "dec" + is-multi-value (yes|no) "no" + multi-value-implementation (list|vector) "list" + init-value CDATA "" + is-not-null (yes|no) "no" + > + <!ELEMENT relationship EMPTY> + <!ATTLIST relationship + name CDATA #REQUIRED + description CDATA "" + class-type CDATA #REQUIRED + low-cc (zero|one) #REQUIRED + high-cc (one|many) #REQUIRED + is-composite (yes|no) #REQUIRED + is-exclusive (yes|no) #REQUIRED + is-dependent (yes|no) #REQUIRED + multi-value-implementation (list|vector) "list" + > + <!ELEMENT method (method-implementation*)> + <!ATTLIST method + name CDATA #REQUIRED + description CDATA "" + > + <!ELEMENT method-implementation EMPTY> + <!ATTLIST method-implementation + language CDATA #REQUIRED + prototype CDATA #REQUIRED + body CDATA "" + > +]> + +<oks-schema> + +<info name="" type="" num-of-includes="1" num-of-items="3" oks-format="schema" oks-version="oks-03-10-01 built "Mar 12 2008"" created-by="rabello" created-on="pcuwtr1.cern.ch" creation-time="10/5/07 10:07:03" last-modified-by="wiedenat" last-modified-on="pcuw18.cern.ch" last-modification-time="26/3/08 18:51:46"/> + +<include> + <file path="daq/schema/df.schema.xml"/> +</include> + + + <class name="HLTCommonParameters" description="Common configuration parameters for bootstraping the HLT framework used by HLT trigger implementation classes"> + <attribute name="messageSvcType" description="The implementation of the message service to use." type="string" init-value="TrigMessageSvc" is-not-null="yes"/> + <attribute name="jobOptionsSvcType" description="Implementation of the jobOptions service to use." type="string" init-value="JobOptionsSvc" is-not-null="yes"/> + <attribute name="dllName" description="The name of the library containing the Gaudi bootstrap code" type="string"/> + <attribute name="factoryName" description="Name of the factory function inside dllName that can bootstrap Gaudi." type="string"/> + </class> + + <class name="HLTImplementationDB" description="OKS type for HLT running through a database connection"> + <superclass name="HLTImplementation"/> + <attribute name="instance" description="The set of chains to use for HLT (L2 or EF)." type="enum" range="L2,EF"/> + <attribute name="hltPrescaleKey" description="Configuration key for HLT prescale set" type="string"/> + <attribute name="configureHLTMenuFrom" description="Configuration source for HLT menu" type="enum" range="DB,XML" init-value="DB"/> + <attribute name="additionalConnectionParameters" description="additional connection string parameters" type="string" is-multi-value="yes"/> + <relationship name="HLTCommonParameters" description="Relationshipt to common HLT configuration parameters." class-type="HLTCommonParameters" low-cc="zero" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/> + <relationship name="TriggerDBConnection" description="Relationship to database connection parameters +" class-type="TriggerDBConnection" low-cc="zero" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/> + </class> + + <class name="HLTImplementationDBPython" description="OKS type for HLT running through a database connection including Python pre/postCommand. This is for debugging purposes only and should not be used for online running."> + <superclass name="HLTImplementationDB"/> + <attribute name="preCommand" description="A set of python commands or script to be executed before DB configuration." type="string" is-multi-value="yes"/> + <attribute name="postCommand" description="A set of python commands or script to be executed after DB configuration." type="string" is-multi-value="yes"/> + </class> + + <class name="HLTImplementationJobOptions" description="OKS type for python JobOption HLT running."> + <superclass name="HLTImplementation"/> + <attribute name="jobOptionsPath" description="Path (full or relative) to the top-level jobotions you want run with." type="string" is-not-null="yes"/> + <attribute name="evtSel" description="The event selector" type="string" init-value="NONE" is-not-null="yes"/> + <attribute name="pythonSetupFile" description="The bootstrapping python file for the PSC" type="string"/> + <attribute name="showInclude" description="If we should show the files we include() as we go." type="bool" init-value="0"/> + <attribute name="logLevel" description="The logging level to be set at the MessageService" type="string" is-multi-value="yes" init-value="ERROR"/> + <attribute name="tracePattern" description="If we should trace some particular include()'s" type="string"/> + <attribute name="preCommand" description="A set of python commands to be executed just before the execution of your top-level jobOptions." type="string" is-multi-value="yes"/> + <attribute name="postCommand" description="A set of python commands to be executed just after reading your top-level python joboptions, near the end of the configuration phase" type="string" is-multi-value="yes"/> + <relationship name="HLTCommonParameters" description="Common parameters that dictate common behavior between python jobOptions and DB implementations of the PSC configuration" class-type="HLTCommonParameters" low-cc="zero" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/> + </class> + +</oks-schema> diff --git a/HLT/HLTdal/sw/hlt-templates.data.xml b/HLT/HLTdal/sw/hlt-templates.data.xml new file mode 100644 index 00000000000..aba13c1db18 --- /dev/null +++ b/HLT/HLTdal/sw/hlt-templates.data.xml @@ -0,0 +1,177 @@ +<?xml version="1.0" encoding="ASCII"?> + +<!-- oks-data version 2.0 --> + + +<!DOCTYPE oks-data [ + <!ELEMENT oks-data (info, (include)?, (comments)?, (obj)+)> + <!ELEMENT info EMPTY> + <!ATTLIST info + name CDATA #REQUIRED + type CDATA #REQUIRED + num-of-includes CDATA #REQUIRED + num-of-items CDATA #REQUIRED + oks-format CDATA #FIXED "extended" + oks-version CDATA #REQUIRED + created-by CDATA #REQUIRED + created-on CDATA #REQUIRED + creation-time CDATA #REQUIRED + last-modified-by CDATA #REQUIRED + last-modified-on CDATA #REQUIRED + last-modification-time CDATA #REQUIRED + > + <!ELEMENT include (file)+> + <!ELEMENT file EMPTY> + <!ATTLIST file + path CDATA #REQUIRED + > + <!ELEMENT comments (comment)+> + <!ELEMENT comment EMPTY> + <!ATTLIST comment + creation-time CDATA #REQUIRED + created-by CDATA #REQUIRED + created-on CDATA #REQUIRED + author CDATA #REQUIRED + text CDATA #REQUIRED + > + <!ELEMENT obj (attr | rel)*> + <!ATTLIST obj + class CDATA #REQUIRED + id CDATA #REQUIRED + > + <!ELEMENT attr (#PCDATA)*> + <!ATTLIST attr + name CDATA #REQUIRED + type (bool|s8|u8|s16|u16|s32|u32|s64|u64|float|double|date|time|string|uid|enum|class|-) "-" + num CDATA "-1" + > + <!ELEMENT rel (#PCDATA)*> + <!ATTLIST rel + name CDATA #REQUIRED + num CDATA "-1" + > +]> + +<oks-data> + +<info name="" type="" num-of-includes="5" num-of-items="8" oks-format="extended" oks-version="oks-03-12-00 built "Jun 18 2008"" created-by="rabello" created-on="pc-tdq-onl-22.cern.ch" creation-time="6/5/08 15:36:22" last-modified-by="glehmann" last-modified-on="pc-tdq-onl-25.cern.ch" last-modification-time="11/7/08 10:07:37"/> + +<include> + <file path="daq/sw/common-templates.data.xml"/> + <file path="daq/sw/HLT_SW_Repository.data.xml"/> + <file path="daq/sw/CoralServer-repository.data.xml"/> +</include> + +<comments> +</comments> + +<obj class="InfrastructureTemplateApplication" id="TopCoralProxy"> + <attr name="Parameters" type="string">"-m -p 3320 -s 40007 env:TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="RestartParameters" type="string">"-m -p 3320 -s 40007 env:TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="Logging" type="bool">1</attr> + <attr name="InputDevice" type="string">""</attr> + <attr name="InitTimeout" type="u32">0</attr> + <attr name="StartIn" type="string">""</attr> + <attr name="StartAt" type="enum">"Boot"</attr> + <attr name="StopAt" type="enum">"Shutdown"</attr> + <attr name="RestartableDuringRun" type="bool">1</attr> + <attr name="IfDies" type="enum">"Error"</attr> + <attr name="IfFailed" type="enum">"Error"</attr> + <attr name="Instances" type="u16">1</attr> + <attr name="SegmentProcEnvVarName" type="string">"TDAQ_CORAL_PROXY_HOST"</attr> + <attr name="SegmentProcEnvVarParentName" type="string">"TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="SegmentProcEnvVarValue" type="enum">"runsOn"</attr> + <rel name="InitializationDependsFrom" num="0"></rel> + <rel name="ShutdownDependsFrom" num="0"></rel> + <rel name="Program">"Binary" "coralServerProxy"</rel> + <rel name="ExplicitTag">"" ""</rel> + <rel name="Uses" num="0"></rel> + <rel name="ProcessEnvironment" num="0"></rel> + <rel name="BackupHosts" num="0"></rel> +</obj> + +<obj class="InfrastructureTemplateApplication" id="RackCoralProxy"> + <attr name="Parameters" type="string">"-v -m -p 3320 -s 3320 env:TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="RestartParameters" type="string">"-v -m -p 3320 -s 3320 env:TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="Logging" type="bool">1</attr> + <attr name="InputDevice" type="string">""</attr> + <attr name="InitTimeout" type="u32">0</attr> + <attr name="StartIn" type="string">""</attr> + <attr name="StartAt" type="enum">"Boot"</attr> + <attr name="StopAt" type="enum">"Shutdown"</attr> + <attr name="RestartableDuringRun" type="bool">1</attr> + <attr name="IfDies" type="enum">"Restart"</attr> + <attr name="IfFailed" type="enum">"Error"</attr> + <attr name="Instances" type="u16">1</attr> + <attr name="SegmentProcEnvVarName" type="string">"TDAQ_CORAL_PROXY_HOST"</attr> + <attr name="SegmentProcEnvVarParentName" type="string">"TDAQ_CORAL_PROXY_PARENT"</attr> + <attr name="SegmentProcEnvVarValue" type="enum">"runsOn"</attr> + <rel name="InitializationDependsFrom" num="0"></rel> + <rel name="ShutdownDependsFrom" num="0"></rel> + <rel name="Program">"Binary" "coralServerProxy"</rel> + <rel name="ExplicitTag">"" ""</rel> + <rel name="Uses" num="0"></rel> + <rel name="ProcessEnvironment" num="0"></rel> + <rel name="BackupHosts" num="0"></rel> +</obj> + + +<obj class="TemplateApplication" id="NodeCoralProxy"> + <attr name="Parameters" type="string">"-m -p 3320 -s 3320 env:TDAQ_CORAL_PROXY_HOST"</attr> + <attr name="RestartParameters" type="string">"-m -p 3320 -s 3320 env:TDAQ_CORAL_PROXY_HOST"</attr> + <attr name="Logging" type="bool">1</attr> + <attr name="InputDevice" type="string">""</attr> + <attr name="InitTimeout" type="u32">0</attr> + <attr name="StartIn" type="string">""</attr> + <attr name="StartAt" type="enum">"Boot"</attr> + <attr name="StopAt" type="enum">"Shutdown"</attr> + <attr name="RestartableDuringRun" type="bool">1</attr> + <attr name="IfDies" type="enum">"Restart"</attr> + <attr name="IfFailed" type="enum">"Ignore"</attr> + <attr name="Instances" type="u16">1</attr> + <rel name="InitializationDependsFrom" num="0"></rel> + <rel name="ShutdownDependsFrom" num="0"></rel> + <rel name="Program">"Binary" "coralServerProxy"</rel> + <rel name="ExplicitTag">"" ""</rel> + <rel name="Uses" num="0"></rel> + <rel name="ProcessEnvironment" num="0"></rel> +</obj> + +<obj class="Variable" id="DEFAULT_HLT_CORAL_AUTH_PATH"> + <attr name="Description" type="string">""</attr> + <attr name="Name" type="string">"CORAL_AUTH_PATH"</attr> + <attr name="Value" type="string">"/tmp/coral-proxy/${TDAQ_PARTITION}"</attr> + <rel name="TagValues" num="0"></rel> +</obj> + +<obj class="Variable" id="DEFAULT_HLT_CORAL_DBLOOKUP_PATH"> + <attr name="Description" type="string">""</attr> + <attr name="Name" type="string">"CORAL_DBLOOKUP_PATH"</attr> + <attr name="Value" type="string">"/tmp/coral-proxy/${TDAQ_PARTITION}"</attr> + <rel name="TagValues" num="0"></rel> +</obj> + +<obj class="TemplateApplication" id="HLT_DB_Gen"> + <attr name="Parameters" type="string">""</attr> + <attr name="RestartParameters" type="string">""</attr> + <attr name="IfDies" type="enum">"Error"</attr> + <attr name="IfFailed" type="enum">"Ignore"</attr> + <attr name="StartAt" type="enum">"Boot"</attr> + <attr name="StopAt" type="enum">"UserDefined"</attr> + <attr name="InitTimeout" type="u32">60</attr> + <attr name="StartIn" type="string">""</attr> + <attr name="InputDevice" type="string">""</attr> + <attr name="Logging" type="bool">1</attr> + <attr name="Instances" type="u16">1</attr> + <rel name="InitializationDependsFrom" num="0"></rel> + <rel name="ShutdownDependsFrom" num="0"></rel> + <rel name="Program">"Binary" "dal_create_db_connection_files"</rel> + <rel name="ExplicitTag">"" ""</rel> + <rel name="Uses" num="0"></rel> + <rel name="ProcessEnvironment" num="2"> + "Variable" "DEFAULT_HLT_CORAL_DBLOOKUP_PATH" + "Variable" "DEFAULT_HLT_CORAL_AUTH_PATH" + </rel> +</obj> + +</oks-data> -- GitLab