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
//************************************************
// Author: Federica Lionetto
// Created on: 07/21/2014
//************************************************

/*
List of useful variables.
*/

// Header guard.
#ifndef __PAR_C_INCLUDED__
#define __PAR_C_INCLUDED__

// Number of Beetle channels.
const int N = 256;

// Only Beetle channels from 128 to 255 are wirebonded to the sensor.
const int firstChannel = 128;

const double minH = 5.0;
const double maxH = 15.0;
const double maxDH = 2.0;
const double minSizeStep = 3;


const double minSeed = 20.0;           // Min Threshold for Seed of Cluster
const double minSide = 8.0;            // Min Threshold for Side strips in cluster  
const int minSize = 1;                 // Min cluster size
const int minChannelInWindow = 50;     // No. channels within 9 ADC counts to define pathological events
const int largePulseSize     = 150;    // Large pulse size for pathological events

int nCluster = 0;
std::vector<int> clusterSize;
std::vector<double> clusterCharge;
std::vector<double> clusterPosY;

const int maxADC_Pass1 = 15;
const int maxADC_Pass2 = 15;

const int debug = 3;

#endif