89 throw std::runtime_error(
"Can not GetLeaf in scalarFromTree.getData()");
119 vData(NULL),bData(NULL) {
124 throw std::runtime_error(
"SetBranchAddress fails in vectorFromTree constructor");
132 vData = NULL; bData = NULL;
145 bData->GetEntry(tEntry);
147 throw std::runtime_error(
"Can not GetEntry in vectorFromTree.getData()");
158 return getDataVector().at(i);
162 return getDataVector().at(i);
169 return getDataVector().size();
177 int nData = getDataVector().
size();
178 for (
int iDatum=0; iDatum<nData; ++iDatum) {
179 if ( getDataVector().at(iDatum)==searchval ) retval.push_back(iDatum);
vector< int > findIndices(T searchval)
vectorFromTree(TTree *whichTree, string varname, Long64_t *iEntry_in)
vector< T > & getDataVector()
scalarFromTree(TTree *whichTree, string varname, Long64_t *iEntry_in)