Int_t ReadoutTest(TString readoutFile, TString readoutName, Int_t offset) { // We define the 128 bits mask to enable different channels Int_t mask[4]; mask[0] = 0x00; // Channels 0-31 disabled mask[1] = 0xFFFC0000; // Channels 50-63 enabled mask[2] = 0x07FFFFFF; // Channels 64-90 enabled mask[3] = 0x00; // Channels 96-127 disabled // We define also a reduced region of the readout where we will launch random (x,y) Double_t region[4]; region[0] = 0.0; // Xmin starts at 0% of full area region[1] = 1.; // Xmax ends at 100% of full area region[2] = 0.0; // Ymin starts at 0% of full area region[3] = 1.0; // Ymax ends at 100% of full area // The last two arguments, N and pId are optional. // The number of (x,y) coordinates to be generated. Int_t N = 3E4; // The plane readout index to be checked Int_t pId = 1; // This script will launch the generation of random (x,y) positions at the specified region, // and it will draw only the hits on the activated channels (8, 31, 32-47). REST_Detector_CheckReadout(readoutFile, readoutName, region, mask, offset, N, pId); return 0; }