X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSDebug.cxx;h=1737a6c6f2e36234ea781585e118a287168dfa27;hb=ed37a9ae6903666773258778b7e5e2d69703416d;hp=e458cec01a0411a8507555edd7b2938716a3a151;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSDebug.cxx b/PHOS/AliPHOSDebug.cxx index e458cec01a0..1737a6c6f2e 100644 --- a/PHOS/AliPHOSDebug.cxx +++ b/PHOS/AliPHOSDebug.cxx @@ -18,22 +18,14 @@ //_________________________________________________________________________ // Implementation version v1 of PHOS Manager class //--- -// Layout EMC + PPSD has name GPS2: -// Produces cumulated hits -//--- // Layout EMC + CPV has name IHEP: // Produces hits for CPV, cumulated hits //--- -// Layout EMC + CPV + PPSD has name GPS: -// Produces hits for CPV, cumulated hits -//--- //*-- Author: Yves Schutz (SUBATECH) // --- ROOT system --- -#include "TBRIK.h" -#include "TNode.h" #include "TRandom.h" #include "TTree.h" @@ -50,10 +42,9 @@ #include "AliPHOSv1.h" #include "AliPHOSHit.h" #include "AliPHOSDigit.h" -#include "AliPHOSReconstructioner.h" +#include "AliPHOSReconstructor.h" #include "AliRun.h" #include "AliConst.h" -#include "AliMC.h" ClassImp(AliPHOSv1) @@ -73,9 +64,7 @@ AliPHOSv1::AliPHOSv1(const char *name, const char *title): AliPHOSv0(name,title) { // ctor : title is used to identify the layout - // GPS2 = 5 modules (EMC + PPSD) // IHEP = 5 modules (EMC + CPV ) - // MIXT = 4 modules (EMC + CPV ) and 1 module (EMC + PPSD) // // We store hits : // - fHits (the "normal" one), which retains the hits associated with @@ -106,11 +95,10 @@ AliPHOSv0(name,title) } //____________________________________________________________________________ -AliPHOSv1::AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title): +AliPHOSv1::AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title): AliPHOSv0(name,title) { // ctor : title is used to identify the layout - // GPS2 = 5 modules (EMC + PPSD) fPinElectronicNoise = 0.010 ; @@ -440,7 +428,7 @@ void AliPHOSv1::MakeBranch(Option_t* opt, char *file) } //_____________________________________________________________________________ -void AliPHOSv1::Reconstruction(AliPHOSReconstructioner * Reconstructioner) +void AliPHOSv1::Reconstruction(AliPHOSReconstructor * Reconstructioner) { // 1. Reinitializes the existing RecPoint, TrackSegment, and RecParticles Lists and // 2. Creates TreeR with a branch for each list @@ -517,8 +505,8 @@ void AliPHOSv1::StepManager(void) Bool_t entered = kFALSE ; Int_t copy ; - Int_t tracknumber = gAlice->CurrentTrack() ; - Int_t primary = gAlice->GetPrimary( gAlice->CurrentTrack() ); + Int_t tracknumber = gAlice->GetCurrentTrackNumber() ; + Int_t primary = gAlice->GetPrimary( gAlice->GetCurrentTrackNumber() ); TString name = GetGeometry()->GetName() ; Int_t trackpid = 0 ; @@ -551,44 +539,12 @@ void AliPHOSv1::StepManager(void) } - if ( name == "GPS2" || name == "MIXT" ) { // ======> CPV is a GPS' PPSD - - if( gMC->CurrentVolID(copy) == gMC->VolId("PPCE") ) // We are inside a gas cell - { - gMC->TrackPosition(pos) ; - xyze[0] = pos[0] ; - xyze[1] = pos[1] ; - xyze[2] = pos[2] ; - xyze[3] = gMC->Edep() ; - - if ( (xyze[3] != 0) || entered ) { // there is deposited energy or new particle entering PPSD - gMC->CurrentVolOffID(5, relid[0]) ; // get the PHOS Module number - if ( name == "MIXT" && strcmp(gMC->CurrentVolOffName(5),"PHO1") == 0 ){ - relid[0] += GetGeometry()->GetNModules() - GetGeometry()->GetNPPSDModules(); - } - gMC->CurrentVolOffID(3, relid[1]) ; // get the Micromegas Module number - // 1-> GetGeometry()->GetNumberOfModulesPhi() * GetGeometry()->GetNumberOfModulesZ() upper - // > GetGeometry()->GetNumberOfModulesPhi() * GetGeometry()->GetNumberOfModulesZ() lower - gMC->CurrentVolOffID(1, relid[2]) ; // get the row number of the cell - gMC->CurrentVolID(relid[3]) ; // get the column number - - // get the absolute Id number - - GetGeometry()->RelToAbsNumbering(relid, absid) ; - - // add current hit to the hit list - AddHit(fIshunt, primary, tracknumber, absid, xyze, trackpid, pmom, xyd); - - - } // there is deposited energy - } // We are inside the gas of the CPV - } // GPS2 configuration - - if ( name == "IHEP" || name == "MIXT" ) { // ======> CPV is a IHEP's one + if ( name == "IHEP" ) { // ======> CPV is a IHEP's one // Yuri Kharlov, 28 September 2000 - if( gMC->CurrentVolID(copy) == gMC->VolId("PCPQ") && + static Int_t idPCPQ = gMC->VolId("PCPQ"); + if( gMC->CurrentVolID(copy) == idPCPQ && entered && gMC->TrackCharge() != 0) { @@ -673,9 +629,6 @@ void AliPHOSv1::StepManager(void) gMC->CurrentVolOffID(10, relid[0]) ; // get the PHOS module number ; - if ( name == "MIXT" && strcmp(gMC->CurrentVolOffName(10),"PHO1") == 0 ) - relid[0] += GetGeometry()->GetNModules() - GetGeometry()->GetNPPSDModules(); - relid[1] = 0 ; // means PBW04 gMC->CurrentVolOffID(4, relid[2]) ; // get the row number inside the module gMC->CurrentVolOffID(3, relid[3]) ; // get the cell number inside the module