--- PamVMC/trk/include/PamVMCTrkSD.h 2009/02/18 17:41:08 1.1 +++ PamVMC/trk/include/PamVMCTrkSD.h 2009/06/12 18:39:49 1.5 @@ -66,10 +66,10 @@ //which should present in the same directory then application library void Init(){ - TString G4WORKDIR=gSystem->Getenv("G4WORKDIR"); + TString PAM_VMC=gSystem->Getenv("PAM_VMC"); TString PLATFORM=gSystem->Getenv("PLATFORM"); TFile * resspe = - new TFile(G4WORKDIR+"/lib/tgt_"+PLATFORM+"/resxy_new.root"); + new TFile(PAM_VMC+"/lib/tgt_"+PLATFORM+"/resxy_new.root"); if(resspe->IsOpen()){ TH1F * hsx; TH1F * hsy; @@ -98,7 +98,7 @@ delete hsx; delete hsy; } else cout<<"!!!WARNING: SPE hit resolution data file resxy_new.root" - <<" is not present in: " <SetMaxStep(0.001); // 10 um switch(f) { @@ -158,15 +158,22 @@ InitHit(); //cout<<">>>ENTERING in PLANE: "<GetParticle(gMC->TrackPid()); //Double_t mass = particlePDG->Mass(); - //Double_t x,y,z,e; + //Double_t x[3]; + //Double_t B[3]; + //Double_t * xp = &x[0]; + //Double_t *Bp = &B[0]; + //g->TrackPosition(x[0],x[1],x[2]); //g->TrackMomentum(x,y,z,e); //Double_t P0 = TMath::Sqrt(x*x+y*y+z*z); //Double_t energy = TMath::Sqrt(P0*P0+mass*mass)-mass; //cout<<"stepping... Stepsize"<TrackStep()*10000<<"um "<<" particle PDG is:"<TrackPid()<<" Kin.energy:"<Field(xp,Bp); + //cout<<"X,Y,Z: "<Print(); + //cout<<"Edep"<Edep()*1e6<<" kev"<Edep()) PreDigit(); break; @@ -176,7 +183,10 @@ case EXITING: //cout<<"<<TrackPid()<GetEREL()){ + //cout<<"PDG:"<GetPDG()<<"TOF="<GetTOF()<GetEREL() ){ + //cout<<"Saving.."<GetPATH()){ + SaveHit(fdname.Data()); + } + break; + default: + break; + } + } + ClassDef(PamVMCTPANSD,1) + + }; + +#endif // PAMVMCTPAN_H + + +#ifndef PAMVMCTRCNSD_H +#define PAMVMCTRCNSD_H + +class PamVMCTRCNSD: public PamVMCDetectorSD{ + +public: + PamVMCTRCNSD():PamVMCDetectorSD("PamVMCDetectorHit","TRCN",1000) + { + + }; + ClassDef(PamVMCTRCNSD,1) + + }; + +#endif // PAMVMCTRCN_H + + +#ifndef PAMVMCTRSLSD_H +#define PAMVMCTRSLSD_H + +class PamVMCTRSLSD: public PamVMCDetectorSD{ + +public: + PamVMCTRSLSD():PamVMCDetectorSD("PamVMCDetectorHit","TRSL",1000) + { + + }; + ClassDef(PamVMCTRSLSD,1) + + }; + +#endif // PAMVMCTRSL_H