/[PAMELA software]/trieste/pamVMC/nd/src/PamVMCNDDig.cxx
ViewVC logotype

Diff of /trieste/pamVMC/nd/src/PamVMCNDDig.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by pamelats, Wed Mar 4 12:51:21 2009 UTC revision 1.2 by pizzolot, Tue Mar 24 14:04:03 2009 UTC
# Line 71  void PamVMCNDDig::Digitize(){ Line 71  void PamVMCNDDig::Digitize(){
71      fpHits.clear();// we don't need it      fpHits.clear();// we don't need it
72    
73      //From this moment all hits sorted by time and present in tubes      //From this moment all hits sorted by time and present in tubes
74    
75      for(Int_t i = 0; i<NTUBES; i++){      for(Int_t i = 0; i<NTUBES; i++){
76        if( tubeHits[i].size() > 0 ){        if( tubeHits[i].size() > 0 ){
77          for(UInt_t j = 0; j<tubeHits[i].size(); j++){          for(UInt_t j = 0; j<tubeHits[i].size(); j++){
# Line 86  void PamVMCNDDig::Digitize(){ Line 86  void PamVMCNDDig::Digitize(){
86                  Uback += keVtomV*(hit0->GetEREL())*1.e6*Exp((hit0->GetTOF()-/*hit1->GetTOF()*/hit->GetTOF())/Abs(tauHits[i].at(k-1)));                      Uback += keVtomV*(hit0->GetEREL())*1.e6*Exp((hit0->GetTOF()-/*hit1->GetTOF()*/hit->GetTOF())/Abs(tauHits[i].at(k-1)));    
87              }              }
88                                
89              tauHits[i].push_back(gRandom->Gaus(Tau,SigmaTau));  
90                tauHits[i].push_back(rnd->Gaus(Tau,SigmaTau));
91              if (DEBUG){              if (DEBUG){
92                cout<<"++++++HIT+++++++"<<endl;                cout<<"++++++HIT+++++++"<<endl;
93                cout<<"TubeNo="<<hit->GetPOS()<<endl                cout<<"TubeNo="<<hit->GetPOS()<<endl

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23