/[PAMELA software]/calo/flight/CaloPreSampler/src/CaloPreSampler.cpp
ViewVC logotype

Diff of /calo/flight/CaloPreSampler/src/CaloPreSampler.cpp

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

revision 1.12 by pam-fi, Tue Feb 24 09:18:05 2009 UTC revision 1.15 by mocchiut, Tue Sep 15 10:19:03 2009 UTC
# Line 42  CaloPreSampler::CaloPreSampler(PamLevel2 Line 42  CaloPreSampler::CaloPreSampler(PamLevel2
42    nox = false;    nox = false;
43    noy = false;    noy = false;
44    forcecalo = false;    forcecalo = false;
45      forcefitmode = -1;
46    memset(mask,0,2*22*sizeof(Int_t));    memset(mask,0,2*22*sizeof(Int_t));
47    //    //
48    Clear();    Clear();
# Line 71  CaloPreSampler::CaloPreSampler(PamLevel2 Line 72  CaloPreSampler::CaloPreSampler(PamLevel2
72    //    //
73  }  }
74    
75    CaloTrkVar* CaloPreSampler::GetCaloTrack(Int_t t){
76      this->Process();
77      if ( t < 0 ) return pcalo->GetCaloStoredTrack(t);
78      if ( L2->GetTrack(t) ){
79        return pcalo->GetCaloStoredTrack(L2->GetTrack(t)->GetTrkTrack()->GetSeqNo());
80      };
81      return NULL;
82    }
83    
84  void CaloPreSampler::SetNoWpreSampler(Int_t n){  void CaloPreSampler::SetNoWpreSampler(Int_t n){
85    if ( NC+n < 23 ){    if ( NC+n < 23 ){
86      N = n;      N = n;
# Line 153  void CaloPreSampler::Process(){ Line 163  void CaloPreSampler::Process(){
163    // Clear structures used to communicate with fortran    // Clear structures used to communicate with fortran
164    //    //
165    event->ClearStructs();//ELENA    event->ClearStructs();//ELENA
166      if ( forcefitmode > 0 ){
167        if ( forcefitmode != 1000 && forcefitmode != 1001 && forcefitmode != 1002 ){
168          printf(" ERROR! forcefitmode=%i \n Use forcefitmode = 1000 for fit mode 0, 1001 fit mode 1, 1002 fit mode 3\n",forcefitmode);
169          forcefitmode = -1;
170        } else {
171          event->clevel2->fmode[0] = forcefitmode;
172          event->clevel2->fmode[1] = forcefitmode;
173        };
174      };
175    //    //
176    Bool_t newentry = false;    Bool_t newentry = false;
177    //    //
178    if ( L2->IsORB() ){    if ( L2->IsORB() ){
179        if ( debug ) printf(" I am here, we have orbital infos \n");
180      if ( L2->GetOrbitalInfo()->pkt_num != PKT || L2->GetOrbitalInfo()->OBT != OBT || L2->GetOrbitalInfo()->absTime != atime || sel != ssel ){      if ( L2->GetOrbitalInfo()->pkt_num != PKT || L2->GetOrbitalInfo()->OBT != OBT || L2->GetOrbitalInfo()->absTime != atime || sel != ssel ){
181        newentry = true;        newentry = true;
182        OBT = L2->GetOrbitalInfo()->OBT;        OBT = L2->GetOrbitalInfo()->OBT;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23