This document describes how to use the software available to tag the CSI blocks hit by charged particles. The information about the CSI detector can be found here and the information on how the tagging is performed is here.
The purpose of the CSI tagging code is to mark (tag) the CSI blocks that have been hit by charged particles and to calculate the "total CSI energy", the "untagged energy" and the "tagged energy".
The input to the tagging routines are the following groups:
The tagging routines are prototyped in tagCsi.h
All the routines return a status code, 0 neams success, non-0 means error.
#include
...
itape_header_t *event; /* pointer to the event buffer */
int eventSize; /* size of the event buffer */
...
float etot,etagged,euntagged;
...
tagCsi_doEvent(event,eventSize); /* produce the tags */
tagCsi_countEnergy(event,
data_getGroup(GROUP_CSI_HITS),
data_getGroup(GROUP_CSI_TAGS),
0,
&etot,&etagged,&euntagged);
...
#include
...
itape_header_t *event; /* pointer to the event buffer */
...
float etot,etagged,euntagged;
...
tagCsi_getEnergy(event,
&etot,&etagged,&euntagged);
...