22 #pragma warning(disable:1572)
53 m_ntupleSvc = serviceLocator()->service(
"NTupleSvc");
86 TTree* rtree = (TTree*) rAddr->
tObj();
89 unsigned long* info = (
unsigned long*)pAddress->
ipar();
90 setDirectory(pAddress->
par()[0]);
91 status = readData(rtree, dynamic_cast<INTuple*>(pObject), info[1]++);
115 StatusCode status = readObject(pAddress, refpObject);
123 TTree* tobj = (TTree*) rAddr->
tObj();
124 status = load(tobj, nt);
151 StatusCode status = dataMgr->objectParent(pReg, pParentReg);
155 TDirectory* pParentDir = (TDirectory*)pParAddr->
ipar()[0];
159 gDirectory = pParentDir;
160 status =
book(dsc, dynamic_cast<INTuple*>(pObject), pTree);
164 status = createAddress(pObject, gDirectory, pTree, pAddr);
168 return writeData(pTree, dynamic_cast<INTuple*>(pObject));
175 TDirectory* pDir = (TDirectory*)pAddr->
ipar()[0];
182 TTree* pTree = (TTree*) rAddr->
tObj();
184 return writeData(pTree, dynamic_cast<INTuple*>(pObject));
204 TDirectory* pDir = (TDirectory*)pAddr->
ipar()[0];
210 TTree* pTree = (TTree*) rAddr->
tObj();
211 if ( 0 != pDir && 0 != pTree ) {
212 gDirectory->cd(pDir->GetPath());
213 pTree->Write(
"",TObject::kOverwrite);
220 return ( createRep(pObj,pAddr) );
254 if ( (sp=full.find(
"/")) != -1 ) {
255 blk = full.substr(0,sp);
256 var = full.substr(sp+1,full.length());
269 #define INSTANTIATE(TYP) \
270 template INTupleItem* createNTupleItem<TYP>(std::string itemName, std::string blockName, std::string index_name, int indexRange, int arraySize, TYP minimum, TYP maximum, INTuple* tuple)
272 namespace RootHistCnv {
277 int indexRange,
int arraySize,
282 if (blockName !=
"") {
283 varName = blockName +
"/" + itemName;
291 if (min == 0 && max == 0) {
297 if (indexName ==
"") {
299 if (arraySize == 1) {
315 if (arraySize == 1) {
319 indexName, indexRange,
326 indexRange, arraySize,