1 #define ROOTHISTCNV_RNTUPLECNV_CPP
25 #pragma warning(disable:1572)
56 m_ntupleSvc = serviceLocator()->service(
"NTupleSvc");
89 TTree* rtree = (TTree*) rAddr->
tObj();
92 unsigned long* info = (
unsigned long*)pAddress->
ipar();
93 setDirectory(pAddress->
par()[0]);
94 status = readData(rtree, dynamic_cast<INTuple*>(pObject), info[1]++);
118 StatusCode status = readObject(pAddress, refpObject);
126 TTree* tobj = (TTree*) rAddr->
tObj();
127 status = load(tobj, nt);
154 StatusCode status = dataMgr->objectParent(pReg, pParentReg);
158 TDirectory* pParentDir = (TDirectory*)pParAddr->
ipar()[0];
162 gDirectory = pParentDir;
163 status =
book(dsc, dynamic_cast<INTuple*>(pObject), pTree);
167 status = createAddress(pObject, gDirectory, pTree, pAddr);
171 return writeData(pTree, dynamic_cast<INTuple*>(pObject));
178 TDirectory* pDir = (TDirectory*)pAddr->
ipar()[0];
185 TTree* pTree = (TTree*) rAddr->
tObj();
187 return writeData(pTree, dynamic_cast<INTuple*>(pObject));
207 TDirectory* pDir = (TDirectory*)pAddr->
ipar()[0];
213 TTree* pTree = (TTree*) rAddr->
tObj();
214 if ( 0 != pDir && 0 != pTree ) {
215 gDirectory->cd(pDir->GetPath());
216 pTree->Write(
"",TObject::kOverwrite);
223 return ( createRep(pObj,pAddr) );
257 if ( (sp=full.find(
"/")) != -1 ) {
258 blk = full.substr(0,sp);
259 var = full.substr(sp+1,full.length());
272 #define INSTANTIATE(TYP) \
273 template INTupleItem* createNTupleItem<TYP>(std::string itemName, std::string blockName, std::string index_name, int indexRange, int arraySize, TYP minimum, TYP maximum, INTuple* tuple)
275 namespace RootHistCnv {
280 int indexRange,
int arraySize,
285 if (blockName !=
"") {
286 varName = blockName +
"/" + itemName;
294 if (min == 0 && max == 0) {
300 if (indexName ==
"") {
302 if (arraySize == 1) {
318 if (arraySize == 1) {
322 indexName, indexRange,
329 indexRange, arraySize,