4 #include "TObjString.h"
10 std::pair<unsigned int, unsigned int>
GetInnerNHits(TrTrackR *track);
13 std::vector<std::string>
LoadInputFiles(std::vector<std::string> &inputFiles);
15 template <
typename T> T
GetDatacardValue(TObjString *datacard,
const std::string &key) {
16 double value = std::numeric_limits<double>::max();
17 TObjArray *lines = datacard->GetString().Tokenize(
'\n');
19 for (
size_t il = 0; il < lines->GetEntries(); il++) {
20 dummystr =
static_cast<TObjString *
>(lines->At(il))->GetString();
21 if (dummystr.Contains(key +
"=") && !dummystr.BeginsWith(
'C')) {
22 value = TString{dummystr(dummystr.Last(
'=') + 1, dummystr.Length())}.Atof();
26 return static_cast<T
>(value);