Hi rooters,
I wonder how to fill a tree with a C structure which contains cnaracter strings. If I have
typedef struct {
char ticker[10];
Int_t adc1;
Int_t adc2;
} TData;
and do
static TData Data;
TBranch *branch = tree->Branch("Data",&Data,"ticker/C:adc1/I:adc2/I");
it doesn't work (well, as expected although) and to get it working I have to put my string variable at the bottom of the structure, i.e.
typedef struct {
Int_t adc1;
Int_t adc2;
char ticker[10];
} TData;
Could you comment this? Also, could you tell me if it is possible to work with this character string in the TTree::Draw method? something like "ticker==MUMMY" or ...
Best,
Anton
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:36 MET