|
| 1 | +Manage tags in Falaise {#managetags} |
| 2 | +====================== |
| 3 | + |
| 4 | +\tableofcontents |
| 5 | + |
| 6 | + |
| 7 | +Introduction to tags {#managetags_intro} |
| 8 | +==================== |
| 9 | + |
| 10 | +A tag is the unique identifier of an official configuration of the |
| 11 | +SuperNEMO experiment. Such a configuration may concern a specific |
| 12 | +geometry model, the version of a software component, a model of the |
| 13 | +experiment in the context of the Monte Carlo simulation, an assembly |
| 14 | +of data processing modules for the reconstruction pipeline, a special |
| 15 | +hardware setup for data collection runs... A tag can also be used to |
| 16 | +identify some specific set of resources provided by/stored in a unique |
| 17 | +resource file. |
| 18 | + |
| 19 | +Tag are thus associated to some *logical entities*. The tag does not |
| 20 | +provide the address, if any, of the tagged entity it is associated to. |
| 21 | +However, a tag **may** be associated to some concrete resource (i.e. a |
| 22 | +file). The real location of such a resource must be provided by a |
| 23 | +*resolver* tool, when this makes sense. Such a location can be the path |
| 24 | +of a resource file in the Falaise installation directory. It can be an |
| 25 | +URL to be accessed through a network, using a specific protocol. |
| 26 | + |
| 27 | +A tag is implemented through the URN concept (see |
| 28 | +https://fr.wikipedia.org/wiki/Uniform_Resource_Name). An URN is a |
| 29 | +simple character string which uses the **urn** scheme. |
| 30 | + |
| 31 | +Example: the "urn:snemo:demonstrator:setup:1.0" tag is associated to a |
| 32 | +specific model of the SuperNEMO demonstrator experiment, including its |
| 33 | +geometry model and possibly the configuration of the electronics, the |
| 34 | +database, the control and monitoring system. The |
| 35 | +"urn:snemo:demonstrator:setup:1.0" tag is thus **unique**. Once the |
| 36 | +model of the experiment, built as the assembly of several core |
| 37 | +components, is represented in the Falaise library and/or companion |
| 38 | +tools, its unique tag is officially published. The relationship |
| 39 | +between a specific setup and its tag is bijective. This is a strict |
| 40 | +rule that must be applied during the full lifecycle of the experiment. |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +Tag categories {#managetags_tagcategories} |
| 45 | +============== |
| 46 | + |
| 47 | +As mentioned above, a tag is associated to a logical entity, i.e. something that makes sense |
| 48 | +to remember, store, associate to some other entities. |
| 49 | + |
| 50 | +A tag must be associated to a **category**. A category is represented by a simple character string which identify |
| 51 | +a concept or topic. Falaise supports several tag categories: |
| 52 | + |
| 53 | +* ``experiment`` : this category is used to address a specific experiment. |
| 54 | + |
| 55 | + Example: BiPo3, SuperNEMO demonstrator and ATLAS can be considered as experiments. |
| 56 | + It is thus possible to associate an unique tag/URN to each of these entities: |
| 57 | + |
| 58 | + * Atlas: ``"urn:atlas"`` |
| 59 | + * SuperNEMO Demonstrator: ``"urn:snemo:demonstrator"`` |
| 60 | + * BiPo3: ``"urn:bipo3" |
| 61 | + |
| 62 | + An experiment entity provides the general context or framework used to operate |
| 63 | + a specific data processing. |
| 64 | + |
| 65 | +* ``geosetup`` : this category is associated to any *geometry model/setup*. |
| 66 | + |
| 67 | + Example: the SuperNEMO Demonstrator experiment may have distinct |
| 68 | + geometry models which can be chosen from an offical list (this is a mock example): |
| 69 | + |
| 70 | + * Simple and naive geometry : ``"urn:snemo:demonstrator:geometry:1.0"`` |
| 71 | + * R&D model : ``"urn:snemo:demonstrator:geometry:2.0"`` |
| 72 | + * Idealised geometry : ``"urn:snemo:demonstrator:geometry:4.0"`` |
| 73 | + * Improved geometry model (but still approximated) : ``"urn:snemo:demonstrator:geometry:4.2"`` |
| 74 | + * Realistic geometry of the detector : ``"urn:snemo:demonstrator:geometry:5.0"`` |
| 75 | + * Realistic geometry of the detector including a realistic model of the detector's environment : ``"urn:snemo:demonstrator:geometry:5.2"`` |
| 76 | + |
| 77 | + Depending on the context and the goal to be reached, the user can choose any of these list of geometry setups |
| 78 | + to operate some data processing (simulation, reconstruction...). |
| 79 | + |
| 80 | +* ``expsetup`` : this category is associated to a model of the full *experimental setup*. |
| 81 | + An experimental setup generally includes: |
| 82 | + |
| 83 | + * a specific geometry model |
| 84 | + * a specific configuration of the electronics, trigger system and DAQ |
| 85 | + * a specific configuration of the control and monitoring system |
| 86 | + * a specific configuration of various companion services (database...) |
| 87 | + |
| 88 | + As an assembly of more fondamental entities, a specific experimental setup is expected |
| 89 | + to depends on its components. An experimental setup is associated to its unique tag. |
| 90 | + This tag automatically implies the tags (if any) of the components. |
| 91 | + |
| 92 | + Example: the configuration of the SuperNEMO Demonstrator experimental setup during |
| 93 | + the commissioning phase of the experiment is tagged : ``"urn:snemo:demonstrator:setup:0.2"``. |
| 94 | + It implies the core components with the following list of tags (this is a mock example): |
| 95 | + |
| 96 | + * ``"urn:snemo:demonstrator:geometry:5.0"`` |
| 97 | + * ``"urn:snemo:demonstrator:electronics:0.9-com"`` |
| 98 | + * ``"urn:snemo:demonstrator:cms:0.1"`` |
| 99 | + * ``"urn:snemo:demonstrator:db:0.3"`` |
| 100 | + |
| 101 | + Any change in the setup of at least one component implies a new experimental setup and thus |
| 102 | + a new tag of the ``expsetup`` category. |
| 103 | + |
| 104 | +* ``simsetup`` : this category is associated to a *simulation setup* |
| 105 | +* ``recsetup`` : this category is associated to a *reconstruction setup* |
| 106 | +* ``services`` : this category is associated to the configuration of a |
| 107 | + *service management system* |
| 108 | +* ``configuration`` : the category associated to the configuration |
| 109 | + of some generic system or service which is not classified/specialized as the category listed above |
| 110 | +* ``variants`` : the category associated to the configuration of a |
| 111 | + *variant service* |
| 112 | +* ``varprofile`` : the category associated to a *variant profile*. |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | +Tag registration {#managetags_tagregistration} |
| 118 | +================ |
| 119 | + |
| 120 | +When a tag is publised as the offical and unique identifier of some |
| 121 | +entity used within Falaise, it must be registered in a special |
| 122 | +database. A dedicated *URN database service* is provided by the |
| 123 | +Falaise library to manage the registration of all tags used in the |
| 124 | +library. |
| 125 | + |
| 126 | +Practically, tags are described in files stored in the |
| 127 | +``resources/urn/db/`` source directory. A new URN entry must be added |
| 128 | +in one of the existing files from this directory in order to update |
| 129 | +the list of published tags. Eventually, additional files can be added |
| 130 | +to address some new categories of tags. These files are named *URN DB |
| 131 | +files*. They use the ``datatools::multi_properties`` format. |
| 132 | + |
| 133 | +As a minimum, a tag record provides the URN of the tag, its category |
| 134 | +and a short description of the entity identified by the tag. It can |
| 135 | +also contains other informations such as the dependees of the entity, |
| 136 | +addressed by topic (see below). |
| 137 | + |
| 138 | +The ``resources/urn/db/snemo_setup_db.conf`` files defines the full |
| 139 | +list of tag registration *URN DB* files to be loaded when the Falaise |
| 140 | +library starts. |
| 141 | + |
| 142 | + |
| 143 | +Tag dependencies {#managetags_tagdependencies} |
| 144 | +================ |
| 145 | + |
| 146 | +TBD |
| 147 | + |
| 148 | + |
| 149 | +Tag to file resolver {#managetags_tagtofileresolver} |
| 150 | +==================== |
| 151 | + |
| 152 | + |
| 153 | +The fltags application {#managetags_fltags} |
| 154 | +======================= |
| 155 | + |
| 156 | +Print usage : |
| 157 | +~~~~~~ |
| 158 | +$ fltags --help |
| 159 | +~~~~~~ |
0 commit comments