ToFUtilities Namespace Reference

Functions

Bool_t IsGoodToFBeamType (const NuEvent &event)

Variables

static const Double_t nd_clock_rate = 53.1*Munits::megahertz
static const Double_t nd_clock_period = 1./nd_clock_rate

Function Documentation

Bool_t ToFUtilities::IsGoodToFBeamType ( const NuEvent event  ) 

Definition at line 17 of file ToFUtilities.cxx.

References NuEvent::beamTypeDB, NuEvent::hornCur, NuEvent::hornIsReverse, BeamType::kL010z170i, BeamType::kL010z185i, BeamType::kL010z185i_rev, BeamType::kL010z200i, BeamType::kL250z200i, Msg::kWarning, and MSG.

Referenced by NuCutImps::ToFPreselection::Preselection().

00018 {
00019   Bool_t isGoodBeamType=false;
00020   
00021   if (event.beamTypeDB==BeamType::kL010z185i ||
00022       event.beamTypeDB==BeamType::kL010z170i ||
00023       event.beamTypeDB==BeamType::kL010z200i ||
00024       event.beamTypeDB==BeamType::kL250z200i) {
00025     if (event.hornCur < -155 && event.hornCur!=-999999) isGoodBeamType = true;
00026   }
00027   else if (event.beamTypeDB==BeamType::kL010z185i_rev &&
00028            event.hornIsReverse) {
00029     if (event.hornCur > 155 && event.hornCur!=-999999) isGoodBeamType = true;
00030   }
00031   else isGoodBeamType=false;
00032 
00033   if (!isGoodBeamType){
00034     MSG("ToFUtilities", Msg::kWarning)
00035       << "Found bad beam type" << endl;
00036   }
00037 
00038   return isGoodBeamType;
00039 }


Variable Documentation

const Double_t ToFUtilities::nd_clock_period = 1./nd_clock_rate [static]

Definition at line 19 of file ToFUtilities.h.

const Double_t ToFUtilities::nd_clock_rate = 53.1*Munits::megahertz [static]

Definition at line 18 of file ToFUtilities.h.

Referenced by ToFPlotter::BestEventTimeNear().


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1