Go to the source code of this file.
| static string _tr |
( |
const string & |
s | ) |
|
|
inlinestatic |
Definition at line 126 of file RootNTupleCnv.cpp.
{
char* p = (char*)local.c_str();
if ( strncmp(p,"<local>",7)==0 ) p += 7;
for(;*p;++p)
if ( !isalnum(*p) ) *p = '_';
return local;
}
template<class TYP >
| static StatusCode createItem |
( |
TTree * |
tree, |
|
|
INTuple * |
tuple, |
|
|
istream & |
is, |
|
|
const string & |
name, |
|
|
bool |
add, |
|
|
const TYP & |
null |
|
) |
| |
|
static |
Definition at line 58 of file RootNTupleCnv.cpp.
{
string idxName;
long len, ndim, dim[4], hasIdx, idxLow, idxLen;
long dim1 = 1, dim2 = 1;
is >> len >> c
>> ndim >> c
if ( hasIdx ) {
getline(is, idxName,
';') >> idxLow >> c >> idxLen >>
c;
}
for (
int i = 0;
i < ndim;
i++ )
TYP low = null, high = null;
is >> low >> c >> high >>
c;
switch( ndim )
{
case 0:
break;
case 1:
dim1 = (hasIdx) ? idxLen : dim[0];
name,
typeid(TYP),
idxName,
dim1,
low,
high,
null);
break;
case 2:
dim1 = (hasIdx) ? idxLen : dim[0];
dim2 = (hasIdx) ? dim[0] : dim[1];
name,
typeid(TYP),
idxName,
dim1,
dim2,
low,
high,
null);
break;
default:
}
TBranch* b = tree->GetBranch(it->
name().c_str());
if ( b ) {
b->SetAddress((
void*)it->
buffer());
}
else {
}
}
}
| static istream& loadLong |
( |
istream & |
is | ) |
|
|
inlinestatic |