Newer
Older
TestStandRepository / Software / Tools / .svn / text-base / Par.C.svn-base
@Federica Lionetto Federica Lionetto on 7 Oct 2014 1 KB Added Tools folder
  1. //************************************************
  2. // Author: Federica Lionetto
  3. // Created on: 07/21/2014
  4. //************************************************
  5.  
  6. /*
  7. List of useful variables.
  8. */
  9.  
  10. // Header guard.
  11. #ifndef __PAR_C_INCLUDED__
  12. #define __PAR_C_INCLUDED__
  13.  
  14. // Number of Beetle channels.
  15. const int N = 256;
  16.  
  17. // Only Beetle channels from 128 to 255 are wirebonded to the sensor.
  18. const int firstChannel = 128;
  19.  
  20. const double minH = 5.0;
  21. const double maxH = 15.0;
  22. const double maxDH = 2.0;
  23. const double minSizeStep = 3;
  24.  
  25.  
  26. const double minSeed = 20.0; // Min Threshold for Seed of Cluster
  27. const double minSide = 8.0; // Min Threshold for Side strips in cluster
  28. const int minSize = 1; // Min cluster size
  29. const int minChannelInWindow = 50; // No. channels within 9 ADC counts to define pathological events
  30. const int largePulseSize = 150; // Large pulse size for pathological events
  31.  
  32. int nCluster = 0;
  33. std::vector<int> clusterSize;
  34. std::vector<double> clusterCharge;
  35. std::vector<double> clusterPosY;
  36.  
  37. const int maxADC_Pass1 = 15;
  38. const int maxADC_Pass2 = 15;
  39.  
  40. const int debug = 3;
  41.  
  42. #endif