From: coppedis Date: Mon, 26 Mar 2001 09:10:29 +0000 (+0000) Subject: Corrected bug in constructor (fIshunt has to be =1) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=2e6fc82a1011994445e377e406a9fa94fcb19a34 Corrected bug in constructor (fIshunt has to be =1) --- diff --git a/ZDC/AliZDC.cxx b/ZDC/AliZDC.cxx index a51dc590814..8fc5afdcf81 100644 --- a/ZDC/AliZDC.cxx +++ b/ZDC/AliZDC.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.18 2001/03/20 08:21:55 coppedis +ZDC needs PIPE, ABSO, DIPO and SHIL + Revision 1.17 2001/03/16 16:18:03 coppedis Correction for superposition of ZDC volumes with MUON arm one @@ -85,16 +88,15 @@ AliZDC::AliZDC() // // Default constructor for the Zero Degree Calorimeter base class // + + fIshunt = 1; fNhits = 0; fNStHits = 0; - fStHits = new TClonesArray("AliZDCHit",1000); fNPrimaryHits = 0; fNoShower = 0; - - fIshunt = 0; } //_____________________________________________________________________________ @@ -118,6 +120,8 @@ AliZDC::AliZDC(const char *name, const char *title) // // Allocate the array of hits + + fIshunt = 1; fHits = new TClonesArray("AliZDCHit",1000); gAlice->AddHitList(fHits); @@ -127,8 +131,6 @@ AliZDC::AliZDC(const char *name, const char *title) fNPrimaryHits = 0; fNoShower = 0; - - fIshunt = 0; } //____________________________________________________________________________ @@ -139,6 +141,7 @@ AliZDC::~AliZDC() // fIshunt = 0; + // delete fHits; // if(fStHits){ // fStHits->Delete(); @@ -160,17 +163,15 @@ void AliZDC::AddHit(Int_t track, Int_t *vol, Float_t *hits) static Float_t primKinEn, xImpact, yImpact, sFlag; - TClonesArray &lsthits = *fStHits; - - AliZDCHit *newquad, *curevquad, *curprimquad; newquad = new AliZDCHit(fIshunt, track, vol, hits); + TClonesArray &lsthits = *fStHits; TClonesArray &lhits = *fHits; Int_t i,j,kStHit = 1; for(i=0; iPrint(""); printf("\n Event Hits --------------------------------------------------------\n"); fStHits->Print(""); - } +// } delete newquad; } diff --git a/ZDC/AliZDC.h b/ZDC/AliZDC.h index 28c0f60c17a..2e38cba4a0e 100644 --- a/ZDC/AliZDC.h +++ b/ZDC/AliZDC.h @@ -32,9 +32,8 @@ public: void Shower() {fNoShower=0;} protected: - // TClonesArray of stored hits -> not reset et finish event - // (for digitization at the end of the event) + // (for digitization at the end of the event) TClonesArray *fStHits; Int_t fNStHits;