--- calo/flight/CaloPreSampler/src/CaloPreSampler.cpp 2009/02/24 09:18:05 1.12 +++ calo/flight/CaloPreSampler/src/CaloPreSampler.cpp 2009/09/10 12:52:51 1.14 @@ -42,6 +42,7 @@ nox = false; noy = false; forcecalo = false; + forcefitmode = -1; memset(mask,0,2*22*sizeof(Int_t)); // Clear(); @@ -153,10 +154,20 @@ // Clear structures used to communicate with fortran // event->ClearStructs();//ELENA + if ( forcefitmode > 0 ){ + if ( forcefitmode != 1000 && forcefitmode != 1001 && forcefitmode != 1002 ){ + printf(" ERROR! forcefitmode=%i \n Use forcefitmode = 1000 for fit mode 0, 1001 fit mode 1, 1002 fit mode 3\n",forcefitmode); + forcefitmode = -1; + } else { + event->clevel2->fmode[0] = forcefitmode; + event->clevel2->fmode[1] = forcefitmode; + }; + }; // Bool_t newentry = false; // if ( L2->IsORB() ){ + if ( debug ) printf(" I am here, we have orbital infos \n"); if ( L2->GetOrbitalInfo()->pkt_num != PKT || L2->GetOrbitalInfo()->OBT != OBT || L2->GetOrbitalInfo()->absTime != atime || sel != ssel ){ newentry = true; OBT = L2->GetOrbitalInfo()->OBT;