/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Protected Attributes | Private Attributes
ReadMuonRec Class Reference

#include <ReadMuonRec.h>

Inheritance diagram for ReadMuonRec:
Inheritance graph
[legend]
Collaboration diagram for ReadMuonRec:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReadMuonRec (const std::string &name)
virtual ~ReadMuonRec ()
virtual bool initialize ()
virtual bool execute ()
virtual bool finalize ()
const std::string & name ()
SvcBaseservice (const std::string &name)
TOutputSvcntupleSvc ()
bool setOption (const std::string &option, Type &var)

Protected Attributes

std::string m_name

Private Attributes

PhyEventBufm_buffer
double m_det
double m_energy
double m_file
double m_entry
double m_sec
double m_nanosec
double m_ix
double m_iy
double m_iz
double m_ox
double m_oy
double m_oz
double m_status
TTree * m_tree

Detailed Description

Definition at line 8 of file ReadMuonRec.h.


Constructor & Destructor Documentation

ReadMuonRec::ReadMuonRec ( const std::string &  name)

Definition at line 10 of file ReadMuonRec.cc.

: AlgBase(name)
{
}
virtual ReadMuonRec::~ReadMuonRec ( ) [inline, virtual]

Definition at line 12 of file ReadMuonRec.h.

{}

Member Function Documentation

bool ReadMuonRec::initialize ( ) [virtual]

Implements AlgBase.

Definition at line 15 of file ReadMuonRec.cc.

{
    m_buffer = dynamic_cast<PhyEventBuf*>(service("Cycler"));
    m_tree = new TTree("MuonRec","MuonRec");
    m_tree->Branch("det",&m_det,"det/D");
    m_tree->Branch("energy",&m_energy,"energy/D");
    m_tree->Branch("file",&m_file,"file/D");
    m_tree->Branch("entry",&m_entry,"entry/D");
    m_tree->Branch("sec",&m_sec,"sec/D");
    m_tree->Branch("nanosec",&m_nanosec,"nanosec/D");
    m_tree->Branch("ix",&m_ix,"ix/D");
    m_tree->Branch("iy",&m_iy,"iy/D");
    m_tree->Branch("iz",&m_iz,"iz/D");
    m_tree->Branch("ox",&m_ox,"ox/D");
    m_tree->Branch("oy",&m_oy,"oy/D");
    m_tree->Branch("oz",&m_oz,"oz/D");
    m_tree->Branch("status",&m_status,"status/D");
    ntupleSvc()->attach("FILE1/",m_tree);
    return true;
}
bool ReadMuonRec::execute ( ) [virtual]

Implements AlgBase.

Definition at line 41 of file ReadMuonRec.cc.

{

  // If bad event, return
  PhyEvent *event = m_buffer->curEvt();
  //if(!event->m_good) return true;
  if(!event->isAD()) return true;

  // If in muon veto window, return
  //MuonVeto *muonVeto = MuonVeto::instance();
  //if(muonVeto->veto(event)) return true;
  
  //cout << *event;
  if(event->m_rawEvis>400){
        m_file = event->m_fileNum;
        m_entry = event->m_localEntry;
        m_det = event->m_det; m_energy = event->m_rawEvis;
        m_sec = event->m_trigTime.GetSec(); m_nanosec=event->m_trigTime.GetNanoSec();
        m_ix = event->m_DInX; m_iy = event->m_DInY; m_iz = event->m_DInZ;
        m_ox = event->m_DOutX; m_oy= event->m_DOutY; m_oz = event->m_DOutZ;
        m_status = event->m_DStatus;
        m_tree->Fill();
}
  return true;
}
bool ReadMuonRec::finalize ( ) [virtual]

Implements AlgBase.

Definition at line 36 of file ReadMuonRec.cc.

{
  return true;
}

Member Data Documentation

Definition at line 19 of file ReadMuonRec.h.

double ReadMuonRec::m_det [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_energy [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_file [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_entry [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_sec [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_nanosec [private]

Definition at line 20 of file ReadMuonRec.h.

double ReadMuonRec::m_ix [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_iy [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_iz [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_ox [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_oy [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_oz [private]

Definition at line 21 of file ReadMuonRec.h.

double ReadMuonRec::m_status [private]

Definition at line 21 of file ReadMuonRec.h.

TTree* ReadMuonRec::m_tree [private]

Definition at line 22 of file ReadMuonRec.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:39 for ReadMuonRec by doxygen 1.7.4