MM code: organise Strip data structure
Now the data relevant for single strip is organized as multiple separate fields:
https://gitlab.cern.ch/P348/p348-daq/-/blob/master/p348reco/mm.h#L5
vector<int> bin; // strips index
vector<double> charge; // strips charge
vector<double> hit_time; // strip hit time
vector<double> hit_t02; // strip t02
vector<double> hit_t12; // strip t12
vector<double> hit_sigma02; // strip sigma02
vector<double> hit_sigma12; // strip sigma12
https://gitlab.cern.ch/P348/p348-daq/-/blob/master/p348reco/mm.h#L129
vector<CS::uint32> strips; // charge per each strip
vector<double> strip_time; // time per each strip
vector<double> strip_t02;
vector<double> strip_t12;
vector<double> strip_sigma02;
vector<double> strip_sigma12;
Organize into single data entry to ease the processing:
struct Strip {
int bin; // index
double charge; // charge
double time; // hit time
double t02; // t02
double t12; // t12
double sigma02; // sigma02
double sigma12; // sigma12
};
...
struct Cluster {
vector<Strip> strips;
...
};
Edited by Anton Karneyeu