X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HMPID%2FAliHMPID.cxx;h=815c414d5a397a36a9287609827633a51256a388;hb=1f37d995a38fdad5d9ad194e39b03ca49d044313;hp=b8ac5c7b342119c78d841382242cb2407f448dbd;hpb=1d4857c5309d183422e07523c36b66bcdda36c92;p=u%2Fmrichter%2FAliRoot.git diff --git a/HMPID/AliHMPID.cxx b/HMPID/AliHMPID.cxx index b8ac5c7b342..815c414d5a3 100644 --- a/HMPID/AliHMPID.cxx +++ b/HMPID/AliHMPID.cxx @@ -25,14 +25,18 @@ #include #include //HitQA() #include //in many methods to print AliInfo + ClassImp(AliHMPID) //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -AliHMPID::AliHMPID(const char *name, const char *title):AliDetector(name,title),fSdi(0),fDig(0),fClu(0) +AliHMPID::AliHMPID(const char *name, const char *title):AliDetector(name,title),fDoFeed(kTRUE),fSdi(0),fDig(0),fClu(0) { //Named ctor AliDebug(1,"Start."); //AliDetector ctor deals with Hits and Digits (reset them to 0, does not create them) HitCreate(); gAlice->GetMCApp()->AddHitList(fHits); + + TString ttl=title; + fDoFeed=!ttl.Contains("NoFeedBack"); AliDebug(1,"Stop."); }//AliHMPID::AliHMPID(const char *name, const char *title) //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -62,7 +66,7 @@ void AliHMPID::MakeBranch(Option_t* option) const char *cR = strstr(option,"R"); const char *cS = strstr(option,"S"); - if(cH&& TreeH()){HitCreate(); MakeBranchInTree( TreeH(), "HMPID" ,&fHits ,kBufSize,0);} + if(cH&&fLoader->TreeH()){HitCreate(); MakeBranchInTree(fLoader->TreeH(), "HMPID" ,&fHits ,kBufSize,0);} if(cS&&fLoader->TreeS()){SdiCreate(); MakeBranchInTree(fLoader->TreeS(), "HMPID" ,&fSdi ,kBufSize,0);} if(cD&&fLoader->TreeD()){DigCreate();for(Int_t i=0;i<7;i++) MakeBranchInTree(fLoader->TreeD(),Form("HMPID%d",i),&((*fDig)[i]),kBufSize,0);} if(cR&&fLoader->TreeR()){CluCreate();for(Int_t i=0;i<7;i++) MakeBranchInTree(fLoader->TreeR(),Form("HMPID%d",i),&((*fClu)[i]),kBufSize,0);}