calcprior function

calcprior return the sum of a vector of constant values as priors