~sophie-middleton08/maus/devel

« back to all changes in this revision

Viewing changes to src/legacy/BeamTools/BTPhaser.cc

  • Committer: Chris Rogers
  • Date: 2012-10-03 07:19:33 UTC
  • mfrom: (659.1.40 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20121003071933-kgrhvl1ec6w2jmug
Tags: MAUS-v0.3, MAUS-v0.3.3
MAUS-v0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// MAUS WARNING: THIS IS LEGACY CODE.
2
2
#include "BTPhaser.hh"
3
3
#include "Interface/Squeak.hh"
4
 
#include "src/legacy/Interface/MICERun.hh"
5
4
#include "src/legacy/BeamTools/BTFieldConstructor.hh"
 
5
#include "src/common_cpp/Utils/Globals.hh"
6
6
 
7
7
BTPhaser * BTPhaser::_instance = NULL;
8
8
 
22
22
        bool   _thisPhaseSet = true;
23
23
        std::string phase    = " succeeded";
24
24
        RFData anRFPhase;
25
 
        anRFPhase = MICERun::getInstance()->btFieldConstructor->SetThePhase(Position, time, 0.);
 
25
        anRFPhase = MAUS::Globals::GetInstance()->GetMCFieldConstructor()->SetThePhase(Position, time, 0.);
26
26
        double dt = anRFPhase.GetPhaseError();
27
27
        if(fabs(dt) < _phaseTolerance)
28
28
        {
38
38
}
39
39
 
40
40
bool BTPhaser::IsPhaseSet() {
41
 
  return MICERun::getInstance()->btFieldConstructor->IsPhaseSet();
 
41
  return MAUS::Globals::GetInstance()->GetMCFieldConstructor()->IsPhaseSet();
42
42
}
43
43
 
44
44
std::vector<RFData*> BTPhaser::GetRFData()