Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes

WCSimRecoNtuple Class Reference

#include "WCSimRecoNtuple.hh"

Inheritance diagram for WCSimRecoNtuple:
WCSimNtuple

List of all members.

Public Member Functions

 WCSimRecoNtuple ()
 ~WCSimRecoNtuple ()
void Fill (WCSimTrueEvent *trueEvent, WCSimRecoEvent *recoEvent)
void CloseFile ()
void Reset ()
virtual void OpenFile (const char *filename)
void SetFileName (const char *filename)

Protected Attributes

TString fNtpFileName

Private Member Functions

void ResetVariables ()
void WriteVariables (WCSimTrueEvent *trueEvent, WCSimRecoEvent *recoEvent)
void WriteToFile ()

Private Attributes

TFile * fRecoFile
TTree * fRecoTree
Int_t fRunNum
Int_t fEventNum
Int_t fTriggerNum
Int_t fTruePDG
Double_t fTrueP
Double_t fTrueE
Double_t fTrueG4VtxX
Double_t fTrueG4VtxY
Double_t fTrueG4VtxZ
Double_t fTrueG4EndX
Double_t fTrueG4EndY
Double_t fTrueG4EndZ
Double_t fTrueVtxX
Double_t fTrueVtxY
Double_t fTrueVtxZ
Double_t fTrueEndX
Double_t fTrueEndY
Double_t fTrueEndZ
Double_t fTrueDirX
Double_t fTrueDirY
Double_t fTrueDirZ
Double_t fTrueLength
Double_t fTrueVtxTraceFwd
Double_t fTrueVtxTraceBwd
Double_t fTrueVtxDistToEdge
Double_t fTrueEndDistToEdge
Int_t fNDigits
Int_t fNFilterDigits
Int_t fNRings
Int_t fFoundVertex
Int_t fFoundDirection
Int_t fFoundRings
Double_t fRecoVtxX
Double_t fRecoVtxY
Double_t fRecoVtxZ
Double_t fRecoVtxTime
Double_t fRecoDirX
Double_t fRecoDirY
Double_t fRecoDirZ
Double_t fRecoConeAngle
Double_t fRecoTrackLength
Double_t fRecoVtxFOM
Int_t fRecoVtxSteps
Int_t fRecoVtxPass
Int_t fRecoVtxStatus
Double_t fRecoVtxTraceFwd
Double_t fRecoVtxTraceBwd
Double_t fRecoVtxDistToEdge
Double_t fRecoRingVtxX
Double_t fRecoRingVtxY
Double_t fRecoRingVtxZ
Double_t fRecoRingDirX
Double_t fRecoRingDirY
Double_t fRecoRingDirZ
Double_t fRecoRingAngle
Double_t fRecoRingHeight
Double_t fRecoRingHeightFrac
Double_t fRecoDelta
Double_t fRecoDeltaTrans
Double_t fRecoDeltaLong
Double_t fRecoDeltaAngle
Double_t fRecoRingDeltaAngle
Double_t fSimplePositionX
Double_t fSimplePositionY
Double_t fSimplePositionZ
Double_t fSimplePositionDelta
Double_t fSimplePositionDeltaTrans
Double_t fSimplePositionDeltaLong
Double_t fPointPositionX
Double_t fPointPositionY
Double_t fPointPositionZ
Double_t fPointPositionFOM
Int_t fPointPositionSteps
Int_t fPointPositionPass
Double_t fPointPositionDelta
Double_t fPointPositionDeltaTrans
Double_t fPointPositionDeltaLong
Double_t fSimpleDirectionX
Double_t fSimpleDirectionY
Double_t fSimpleDirectionZ
Double_t fSimpleDirectionDeltaAngle
Double_t fPointDirectionX
Double_t fPointDirectionY
Double_t fPointDirectionZ
Double_t fPointDirectionFOM
Int_t fPointDirectionSteps
Int_t fPointDirectionPass
Double_t fPointDirectionDeltaAngle
Double_t fPointVtxX
Double_t fPointVtxY
Double_t fPointVtxZ
Double_t fPointDirX
Double_t fPointDirY
Double_t fPointDirZ
Double_t fPointConeAngle
Double_t fPointTrackLength
Double_t fPointVtxFOM
Int_t fPointVtxSteps
Int_t fPointVtxPass
Double_t fPointVtxDelta
Double_t fPointVtxDeltaTrans
Double_t fPointVtxDeltaLong
Double_t fPointVtxDeltaAngle
Double_t fExtendedVtxX
Double_t fExtendedVtxY
Double_t fExtendedVtxZ
Double_t fExtendedDirX
Double_t fExtendedDirY
Double_t fExtendedDirZ
Double_t fExtendedConeAngle
Double_t fExtendedTrackLength
Double_t fExtendedVtxFOM
Int_t fExtendedVtxSteps
Int_t fExtendedVtxPass
Double_t fExtendedVtxDelta
Double_t fExtendedVtxDeltaTrans
Double_t fExtendedVtxDeltaLong
Double_t fExtendedVtxDeltaAngle
Double_t fExtendedVtxTimeParam0
Double_t fExtendedVtxConeParam0
Double_t fExtendedVtxConeParam1
Double_t fExtendedVtxConeParam2

Detailed Description

Definition at line 12 of file WCSimRecoNtuple.hh.


Constructor & Destructor Documentation

WCSimRecoNtuple::WCSimRecoNtuple (  ) 
WCSimRecoNtuple::~WCSimRecoNtuple (  ) 

Definition at line 27 of file WCSimRecoNtuple.cc.

{
  
}


Member Function Documentation

void WCSimRecoNtuple::CloseFile (  )  [virtual]

Reimplemented from WCSimNtuple.

Definition at line 727 of file WCSimRecoNtuple.cc.

References WCSimNtuple::fNtpFileName, fRecoFile, and fRecoTree.

{
  TDirectory* tmpd = 0;

  if( fRecoFile ){
    tmpd = gDirectory; 
    std::cout << " *** WCSimRecoNtuple::CloseFile() *** " << std::endl;
    std::cout << "  closing file: " << fNtpFileName.Data() << std::endl;
    fRecoFile->cd();
    fRecoTree->Write();
    fRecoFile->Close();
    gDirectory = tmpd;
  }
  
  return;
}

void WCSimRecoNtuple::Fill ( WCSimTrueEvent trueEvent,
WCSimRecoEvent recoEvent 
) [virtual]

Reimplemented from WCSimNtuple.

Definition at line 42 of file WCSimRecoNtuple.cc.

References ResetVariables(), and WriteVariables().

{
  this->ResetVariables();
  this->WriteVariables( trueEvent, recoEvent );
}

virtual void WCSimNtuple::OpenFile ( const char *  filename  )  [inline, virtual, inherited]

Definition at line 19 of file WCSimNtuple.hh.

{ }

void WCSimRecoNtuple::Reset (  )  [virtual]

Reimplemented from WCSimNtuple.

Definition at line 32 of file WCSimRecoNtuple.cc.

References fRecoFile, and fRecoTree.

Referenced by main().

{ 
  std::cout << " *** WCSimRecoNtuple::Reset() *** " << std::endl;

  fRecoFile = 0;
  fRecoTree = 0;

  return;
}

void WCSimRecoNtuple::ResetVariables (  )  [private]

Definition at line 48 of file WCSimRecoNtuple.cc.

References fEventNum, fExtendedConeAngle, fExtendedDirX, fExtendedDirY, fExtendedDirZ, fExtendedTrackLength, fExtendedVtxConeParam0, fExtendedVtxConeParam1, fExtendedVtxConeParam2, fExtendedVtxDelta, fExtendedVtxDeltaAngle, fExtendedVtxDeltaLong, fExtendedVtxDeltaTrans, fExtendedVtxFOM, fExtendedVtxPass, fExtendedVtxSteps, fExtendedVtxTimeParam0, fExtendedVtxX, fExtendedVtxY, fExtendedVtxZ, fFoundDirection, fFoundRings, fFoundVertex, fNDigits, fNFilterDigits, fNRings, fPointConeAngle, fPointDirectionDeltaAngle, fPointDirectionFOM, fPointDirectionPass, fPointDirectionSteps, fPointDirectionX, fPointDirectionY, fPointDirectionZ, fPointDirX, fPointDirY, fPointDirZ, fPointPositionDelta, fPointPositionDeltaLong, fPointPositionDeltaTrans, fPointPositionFOM, fPointPositionPass, fPointPositionSteps, fPointPositionX, fPointPositionY, fPointPositionZ, fPointTrackLength, fPointVtxDelta, fPointVtxDeltaAngle, fPointVtxDeltaLong, fPointVtxDeltaTrans, fPointVtxFOM, fPointVtxPass, fPointVtxSteps, fPointVtxX, fPointVtxY, fPointVtxZ, fRecoConeAngle, fRecoDelta, fRecoDeltaAngle, fRecoDeltaLong, fRecoDeltaTrans, fRecoDirX, fRecoDirY, fRecoDirZ, fRecoRingAngle, fRecoRingDeltaAngle, fRecoRingDirX, fRecoRingDirY, fRecoRingDirZ, fRecoRingHeight, fRecoRingHeightFrac, fRecoRingVtxX, fRecoRingVtxY, fRecoRingVtxZ, fRecoTrackLength, fRecoVtxDistToEdge, fRecoVtxFOM, fRecoVtxPass, fRecoVtxStatus, fRecoVtxSteps, fRecoVtxTime, fRecoVtxTraceBwd, fRecoVtxTraceFwd, fRecoVtxX, fRecoVtxY, fRecoVtxZ, fRunNum, fSimpleDirectionDeltaAngle, fSimpleDirectionX, fSimpleDirectionY, fSimpleDirectionZ, fSimplePositionDelta, fSimplePositionDeltaLong, fSimplePositionDeltaTrans, fSimplePositionX, fSimplePositionY, fSimplePositionZ, fTriggerNum, fTrueDirX, fTrueDirY, fTrueDirZ, fTrueE, fTrueEndDistToEdge, fTrueEndX, fTrueEndY, fTrueEndZ, fTrueG4EndX, fTrueG4EndY, fTrueG4EndZ, fTrueG4VtxX, fTrueG4VtxY, fTrueG4VtxZ, fTrueLength, fTrueP, fTruePDG, fTrueVtxDistToEdge, fTrueVtxTraceBwd, fTrueVtxTraceFwd, fTrueVtxX, fTrueVtxY, and fTrueVtxZ.

Referenced by Fill().

{
  // reset variables
  // ===============
  fRunNum = -1;
  fEventNum = -1;
  fTriggerNum = -1;

  fTruePDG = 0;
  fTrueP = 0.0;
  fTrueE = 0.0; 
  fTrueG4VtxX = 0.0;
  fTrueG4VtxY = 0.0;
  fTrueG4VtxZ = 0.0;
  fTrueVtxX = 0.0;
  fTrueVtxY = 0.0;
  fTrueVtxZ = 0.0;
  fTrueDirX = 0.0;
  fTrueDirY = 0.0;
  fTrueDirZ = 0.0;
  fTrueVtxTraceFwd = -99999.9;
  fTrueVtxTraceBwd = -99999.9;
  fTrueVtxDistToEdge = -99999.9;

  fTrueG4EndX = 0.0;
  fTrueG4EndY = 0.0;
  fTrueG4EndZ = 0.0;
  fTrueEndX = 0.0;
  fTrueEndY = 0.0;
  fTrueEndZ = 0.0;
  fTrueEndDistToEdge = -99999.9;
  fTrueLength = 0.0;

  fNDigits = 0;
  fNFilterDigits = 0;
  fNRings = 0;

  fFoundVertex = 0;
  fFoundDirection = 0;
  fFoundRings = 0;

  fRecoVtxX = 0.0;
  fRecoVtxY = 0.0;
  fRecoVtxZ = 0.0;
  fRecoVtxTime = 0.0;
  fRecoDirX = 0.0;
  fRecoDirY = 0.0;
  fRecoDirZ = 0.0;
  fRecoConeAngle = 0.0;
  fRecoTrackLength = 0.0;
  fRecoVtxFOM = 0.0;
  fRecoVtxSteps = 0;
  fRecoVtxPass = 0;
  fRecoVtxStatus = 0;

  fRecoVtxTraceFwd = -99999.9;
  fRecoVtxTraceBwd = -99999.9;
  fRecoVtxDistToEdge = -99999.9;

  fRecoDelta = -99999.9;
  fRecoDeltaTrans = -99999.9;
  fRecoDeltaLong = -99999.9;
  fRecoDeltaAngle = -99999.9;

  fRecoRingVtxX = 0.0;
  fRecoRingVtxY = 0.0;
  fRecoRingVtxZ = 0.0;  
  fRecoRingDirX = 0.0;
  fRecoRingDirY = 0.0;
  fRecoRingDirZ = 0.0;
  fRecoRingAngle = 0.0;
  fRecoRingHeight = 0.0;
  fRecoRingHeightFrac = 0.0;

  fRecoRingDeltaAngle = -99999.9;

  // vertex reconstruction
  // =====================
  fSimplePositionX = 0.0;
  fSimplePositionY = 0.0;
  fSimplePositionZ = 0.0;
  fSimplePositionDelta = -99999.9;
  fSimplePositionDeltaTrans = -99999.9;
  fSimplePositionDeltaLong = -99999.9;

  fPointPositionX = 0.0;
  fPointPositionY = 0.0;
  fPointPositionZ = 0.0;
  fPointPositionFOM = 0.0;
  fPointPositionSteps = 0;
  fPointPositionPass = 0;
  fPointPositionDelta = -99999.9;
  fPointPositionDeltaTrans = -99999.9;
  fPointPositionDeltaLong = -99999.9;

  fSimpleDirectionX = 0.0;
  fSimpleDirectionY = 0.0;
  fSimpleDirectionZ = 0.0;
  fSimpleDirectionDeltaAngle = -99999.9;

  fPointDirectionX = 0.0;
  fPointDirectionY = 0.0;
  fPointDirectionZ = 0.0;
  fPointDirectionFOM = 0.0;
  fPointDirectionSteps = 0;
  fPointDirectionPass = 0;  
  fPointDirectionDeltaAngle = -99999.9;

  fPointVtxX = 0.0;
  fPointVtxY = 0.0;
  fPointVtxZ = 0.0;
  fPointDirX = 0.0;
  fPointDirY = 0.0;
  fPointDirZ = 0.0;
  fPointConeAngle = 0.0;
  fPointTrackLength = 0.0;
  fPointVtxFOM = 0.0;
  fPointVtxSteps = 0;
  fPointVtxPass = 0;  
  fPointVtxDelta = -99999.9;
  fPointVtxDeltaTrans = -99999.9;
  fPointVtxDeltaLong = -99999.9;
  fPointVtxDeltaAngle = -99999.9;

  fExtendedVtxX = 0.0;
  fExtendedVtxY = 0.0;
  fExtendedVtxZ = 0.0;
  fExtendedDirX = 0.0;
  fExtendedDirY = 0.0;
  fExtendedDirZ = 0.0;  
  fExtendedConeAngle = 0.0;
  fExtendedTrackLength = 0.0;
  fExtendedVtxFOM = 0.0;
  fExtendedVtxSteps = 0;
  fExtendedVtxPass = 0;  
  fExtendedVtxDelta = -99999.9;
  fExtendedVtxDeltaTrans = -99999.9;
  fExtendedVtxDeltaLong = -99999.9;
  fExtendedVtxDeltaAngle = -99999.9;

  // --- debug ---
  fExtendedVtxTimeParam0 = 0.0;
  fExtendedVtxConeParam0 = 0.0;
  fExtendedVtxConeParam1 = 0.0;
  fExtendedVtxConeParam2 = 0.0;

  return;
}

void WCSimNtuple::SetFileName ( const char *  filename  )  [inline, inherited]

Definition at line 24 of file WCSimNtuple.hh.

References WCSimNtuple::fNtpFileName.

Referenced by WCSimNtupleWriter::BuildNtuple(), and main().

                                         { 
    fNtpFileName = filename; 
  }

void WCSimRecoNtuple::WriteToFile (  )  [private]

Definition at line 563 of file WCSimRecoNtuple.cc.

References fEventNum, fExtendedConeAngle, fExtendedDirX, fExtendedDirY, fExtendedDirZ, fExtendedTrackLength, fExtendedVtxConeParam0, fExtendedVtxConeParam1, fExtendedVtxConeParam2, fExtendedVtxDelta, fExtendedVtxDeltaAngle, fExtendedVtxDeltaLong, fExtendedVtxDeltaTrans, fExtendedVtxFOM, fExtendedVtxPass, fExtendedVtxSteps, fExtendedVtxTimeParam0, fExtendedVtxX, fExtendedVtxY, fExtendedVtxZ, fFoundDirection, fFoundRings, fFoundVertex, fNDigits, fNFilterDigits, fNRings, WCSimNtuple::fNtpFileName, fPointConeAngle, fPointDirectionDeltaAngle, fPointDirectionFOM, fPointDirectionPass, fPointDirectionSteps, fPointDirectionX, fPointDirectionY, fPointDirectionZ, fPointDirX, fPointDirY, fPointDirZ, fPointPositionDelta, fPointPositionDeltaLong, fPointPositionDeltaTrans, fPointPositionFOM, fPointPositionPass, fPointPositionSteps, fPointPositionX, fPointPositionY, fPointPositionZ, fPointTrackLength, fPointVtxDelta, fPointVtxDeltaAngle, fPointVtxDeltaLong, fPointVtxDeltaTrans, fPointVtxFOM, fPointVtxPass, fPointVtxSteps, fPointVtxX, fPointVtxY, fPointVtxZ, fRecoConeAngle, fRecoDelta, fRecoDeltaAngle, fRecoDeltaLong, fRecoDeltaTrans, fRecoDirX, fRecoDirY, fRecoDirZ, fRecoFile, fRecoRingAngle, fRecoRingDeltaAngle, fRecoRingDirX, fRecoRingDirY, fRecoRingDirZ, fRecoRingHeight, fRecoRingHeightFrac, fRecoRingVtxX, fRecoRingVtxY, fRecoRingVtxZ, fRecoTrackLength, fRecoTree, fRecoVtxDistToEdge, fRecoVtxFOM, fRecoVtxPass, fRecoVtxStatus, fRecoVtxSteps, fRecoVtxTime, fRecoVtxTraceBwd, fRecoVtxTraceFwd, fRecoVtxX, fRecoVtxY, fRecoVtxZ, fRunNum, fSimpleDirectionDeltaAngle, fSimpleDirectionX, fSimpleDirectionY, fSimpleDirectionZ, fSimplePositionDelta, fSimplePositionDeltaLong, fSimplePositionDeltaTrans, fSimplePositionX, fSimplePositionY, fSimplePositionZ, fTriggerNum, fTrueDirX, fTrueDirY, fTrueDirZ, fTrueE, fTrueEndDistToEdge, fTrueEndX, fTrueEndY, fTrueEndZ, fTrueG4EndX, fTrueG4EndY, fTrueG4EndZ, fTrueG4VtxX, fTrueG4VtxY, fTrueG4VtxZ, fTrueLength, fTrueP, fTruePDG, fTrueVtxDistToEdge, fTrueVtxTraceBwd, fTrueVtxTraceFwd, fTrueVtxX, fTrueVtxY, and fTrueVtxZ.

Referenced by WriteVariables().

{
  TDirectory* tmpd = 0;

  if( fRecoFile==0 ){
    tmpd = gDirectory;
    std::cout << " *** WCSimRecoNtuple::OpenFile() *** " << std::endl;
    std::cout << "  opening file: " << fNtpFileName.Data() << std::endl;
    fRecoFile = new TFile(fNtpFileName.Data(),"recreate");
    fRecoTree = new TTree("ntuple","my analysis ntuple");

    fRecoTree->Branch("run",&fRunNum,"run/I");
    fRecoTree->Branch("event",&fEventNum,"event/I");
    fRecoTree->Branch("trigger",&fTriggerNum,"trigger/I");

    fRecoTree->Branch("truePDG",&fTruePDG,"truePDG/I");
    fRecoTree->Branch("trueP",&fTrueP,"trueP/D");
    fRecoTree->Branch("trueE",&fTrueE,"trueE/D");  

    fRecoTree->Branch("trueG4VtxX",&fTrueG4VtxX,"trueG4VtxX/D");
    fRecoTree->Branch("trueG4VtxY",&fTrueG4VtxY,"trueG4VtxY/D");
    fRecoTree->Branch("trueG4VtxZ",&fTrueG4VtxZ,"trueG4VtxZ/D");  
    fRecoTree->Branch("trueG4EndX",&fTrueG4EndX,"trueG4EndX/D");
    fRecoTree->Branch("trueG4EndY",&fTrueG4EndY,"trueG4EndY/D");
    fRecoTree->Branch("trueG4EndZ",&fTrueG4EndZ,"trueG4EndZ/D");  

    fRecoTree->Branch("trueVtxX",&fTrueVtxX,"trueVtxX/D");
    fRecoTree->Branch("trueVtxY",&fTrueVtxY,"trueVtxY/D");
    fRecoTree->Branch("trueVtxZ",&fTrueVtxZ,"trueVtxZ/D");   
    fRecoTree->Branch("trueEndX",&fTrueEndX,"trueEndX/D");
    fRecoTree->Branch("trueEndY",&fTrueEndY,"trueEndY/D");
    fRecoTree->Branch("trueEndZ",&fTrueEndZ,"trueEndZ/D"); 
    fRecoTree->Branch("trueDirX",&fTrueDirX,"trueDirX/D");
    fRecoTree->Branch("trueDirY",&fTrueDirY,"trueDirY/D");
    fRecoTree->Branch("trueDirZ",&fTrueDirZ,"trueDirZ/D");
    
    fRecoTree->Branch("trueLength",&fTrueLength,"trueLength/D");

    fRecoTree->Branch("trueVtxTraceFwd",&fTrueVtxTraceFwd,"trueVtxTraceFwd/D");
    fRecoTree->Branch("trueVtxTraceBwd",&fTrueVtxTraceBwd,"trueVtxTraceBwd/D");
    fRecoTree->Branch("trueVtxDistToEdge",&fTrueVtxDistToEdge,"trueVtxDistToEdge/D");
    fRecoTree->Branch("trueEndDistToEdge",&fTrueEndDistToEdge,"trueEndDistToEdge/D");

    fRecoTree->Branch("nDigits",&fNDigits,"nDigits/I");
    fRecoTree->Branch("nFilterDigits",&fNFilterDigits,"nFilterDigits/I");
    fRecoTree->Branch("nRings",&fNRings,"nRings/I");
    fRecoTree->Branch("foundVertex",&fFoundVertex,"foundVertex/I");
    fRecoTree->Branch("foundDirection",&fFoundDirection,"foundDirection/I");
    fRecoTree->Branch("foundRings",&fFoundRings,"foundRings/I");

    fRecoTree->Branch("recoVtxX",&fRecoVtxX,"recoVtxX/D");
    fRecoTree->Branch("recoVtxY",&fRecoVtxY,"recoVtxY/D");
    fRecoTree->Branch("recoVtxZ",&fRecoVtxZ,"recoVtxZ/D");
    fRecoTree->Branch("recoVtxTime",&fRecoVtxTime,"recoVtxTime/D");
    fRecoTree->Branch("recoDirX",&fRecoDirX,"recoDirX/D");
    fRecoTree->Branch("recoDirY",&fRecoDirY,"recoDirY/D");
    fRecoTree->Branch("recoDirZ",&fRecoDirZ,"recoDirZ/D");
    fRecoTree->Branch("recoConeAngle",&fRecoConeAngle,"recoConeAngle/D");
    fRecoTree->Branch("recoTrackLength",&fRecoTrackLength,"recoTrackLength/D");
    fRecoTree->Branch("recoVtxFOM",&fRecoVtxFOM,"recoVtxFOM/D");
    fRecoTree->Branch("recoVtxSteps",&fRecoVtxSteps,"recoVtxSteps/I");  
    fRecoTree->Branch("recoVtxPass",&fRecoVtxPass,"recoVtxPass/I");
    fRecoTree->Branch("recoVtxStatus",&fRecoVtxStatus,"recoVtxStatus/I");
    fRecoTree->Branch("recoVtxTraceFwd",&fRecoVtxTraceFwd,"recoVtxTraceFwd/D");
    fRecoTree->Branch("recoVtxTraceBwd",&fRecoVtxTraceBwd,"recoVtxTraceBwd/D");
    fRecoTree->Branch("recoVtxDistToEdge",&fRecoVtxDistToEdge,"recoVtxDistToEdge/D");

    fRecoTree->Branch("recoRingVtxX",&fRecoRingVtxX,"recoRingVtxX/D");
    fRecoTree->Branch("recoRingVtxY",&fRecoRingVtxY,"recoRingVtxY/D");
    fRecoTree->Branch("recoRingVtxZ",&fRecoRingVtxZ,"recoRingVtxZ/D");  
    fRecoTree->Branch("recoRingDirX",&fRecoRingDirX,"recoRingDirX/D");
    fRecoTree->Branch("recoRingDirY",&fRecoRingDirY,"recoRingDirY/D");
    fRecoTree->Branch("recoRingDirZ",&fRecoRingDirZ,"recoRingDirZ/D");
    fRecoTree->Branch("recoRingAngle",&fRecoRingAngle,"recoRingAngle/D");
    fRecoTree->Branch("recoRingHeight",&fRecoRingHeight,"recoRingHeight/D");
    fRecoTree->Branch("recoRingHeightFrac",&fRecoRingHeightFrac,"recoRingHeightFrac/D");

    fRecoTree->Branch("recoDelta",&fRecoDelta,"recoDelta/D");
    fRecoTree->Branch("recoDeltaTrans",&fRecoDeltaTrans,"recoDeltaTrans/D");
    fRecoTree->Branch("recoDeltaLong",&fRecoDeltaLong,"recoDeltaLong/D");
    fRecoTree->Branch("recoDeltaAngle",&fRecoDeltaAngle,"recoDeltaAngle/D");
    fRecoTree->Branch("recoRingDeltaAngle",&fRecoRingDeltaAngle,"recoRingDeltaAngle/D");

    fRecoTree->Branch("simplePositionX",&fSimplePositionX,"simplePositionX/D");
    fRecoTree->Branch("simplePositionY",&fSimplePositionY,"simplePositionY/D");
    fRecoTree->Branch("simplePositionZ",&fSimplePositionZ,"simplePositionZ/D");
    fRecoTree->Branch("simplePositionDelta",&fSimplePositionDelta,"simplePositionDelta/D");
    fRecoTree->Branch("simplePositionDeltaTrans",&fSimplePositionDeltaTrans,"simplePositionDeltaTrans/D");
    fRecoTree->Branch("simplePositionDeltaLong",&fSimplePositionDeltaLong,"simplePositionDeltaLong/D");

    fRecoTree->Branch("pointPositionX",&fPointPositionX,"pointPositionX/D");
    fRecoTree->Branch("pointPositionY",&fPointPositionY,"pointPositionY/D");
    fRecoTree->Branch("pointPositionZ",&fPointPositionZ,"pointPositionZ/D");
    fRecoTree->Branch("pointPositionFOM",&fPointPositionFOM,"pointPositionFOM/D");  
    fRecoTree->Branch("pointPositionSteps",&fPointPositionSteps,"pointPositionSteps/I");
    fRecoTree->Branch("pointPositionPass",&fPointPositionPass,"pointPositionPass/I");
    fRecoTree->Branch("pointPositionDelta",&fPointPositionDelta,"pointPositionDelta/D");
    fRecoTree->Branch("pointPositionDeltaTrans",&fPointPositionDeltaTrans,"pointPositionDeltaTrans/D");
    fRecoTree->Branch("pointPositionDeltaLong",&fPointPositionDeltaLong,"pointPositionDeltaLong/D");

    fRecoTree->Branch("simpleDirectionX",&fSimpleDirectionX,"simpleDirectionX/D");
    fRecoTree->Branch("simpleDirectionY",&fSimpleDirectionY,"simpleDirectionY/D");
    fRecoTree->Branch("simpleDirectionZ",&fSimpleDirectionZ,"simpleDirectionZ/D");
    fRecoTree->Branch("simpleDirectionDeltaAngle",&fSimpleDirectionDeltaAngle,"simpleDirectionDeltaAngle/D");

    fRecoTree->Branch("pointDirectionX",&fPointDirectionX,"pointDirectionX/D");
    fRecoTree->Branch("pointDirectionY",&fPointDirectionY,"pointDirectionY/D");
    fRecoTree->Branch("pointDirectionZ",&fPointDirectionZ,"pointDirectionZ/D");
    fRecoTree->Branch("pointDirectionFOM",&fPointDirectionFOM,"pointDirectionFOM/D");
    fRecoTree->Branch("pointDirectionSteps",&fPointDirectionSteps,"pointDirSteps/I");
    fRecoTree->Branch("pointDirectionPass",&fPointDirectionPass,"pointDirPass/I");
    fRecoTree->Branch("pointDirectionDeltaAngle",&fPointDirectionDeltaAngle,"pointDirectionDeltaAngle/D");

    fRecoTree->Branch("pointVtxX",&fPointVtxX,"pointVtxX/D");
    fRecoTree->Branch("pointVtxY",&fPointVtxY,"pointVtxY/D");
    fRecoTree->Branch("pointVtxZ",&fPointVtxZ,"pointVtxZ/D");
    fRecoTree->Branch("pointDirX",&fPointDirX,"pointDirX/D");
    fRecoTree->Branch("pointDirY",&fPointDirY,"pointDirY/D");
    fRecoTree->Branch("pointDirZ",&fPointDirZ,"pointDirZ/D");
    fRecoTree->Branch("pointConeAngle",&fPointConeAngle,"pointConeAngle/D");
    fRecoTree->Branch("pointTrackLength",&fPointTrackLength,"pointTrackLength/D");
    fRecoTree->Branch("pointVtxFOM",&fPointVtxFOM,"pointVtxFOM/D");
    fRecoTree->Branch("pointVtxSteps",&fPointVtxSteps,"pointVtxSteps/I");
    fRecoTree->Branch("pointVtxPass",&fPointVtxPass,"pointVtxPass/I");
    fRecoTree->Branch("pointVtxDelta",&fPointVtxDelta,"pointVtxDelta/D");
    fRecoTree->Branch("pointVtxDeltaTrans",&fPointVtxDeltaTrans,"pointVtxDeltaTrans/D");
    fRecoTree->Branch("pointVtxDeltaLong",&fPointVtxDeltaLong,"pointVtxDeltaLong/D");
    fRecoTree->Branch("pointVtxDeltaAngle",&fPointVtxDeltaAngle,"pointVtxDeltaAngle/D");

    fRecoTree->Branch("extendedVtxX",&fExtendedVtxX,"extendedVtxX/D");
    fRecoTree->Branch("extendedVtxY",&fExtendedVtxY,"extendedVtxY/D");
    fRecoTree->Branch("extendedVtxZ",&fExtendedVtxZ,"extendedVtxZ/D");
    fRecoTree->Branch("extendedDirX",&fExtendedDirX,"extendedDirX/D");
    fRecoTree->Branch("extendedDirY",&fExtendedDirY,"extendedDirY/D");
    fRecoTree->Branch("extendedDirZ",&fExtendedDirZ,"extendedDirZ/D"); 
    fRecoTree->Branch("extendedConeAngle",&fExtendedConeAngle,"extendedConeAngle/D");
    fRecoTree->Branch("extendedTrackLength",&fExtendedTrackLength,"extendedTrackLength/D");
    fRecoTree->Branch("extendedVtxFOM",&fExtendedVtxFOM,"extendedVtxFOM/D");
    fRecoTree->Branch("extendedVtxSteps",&fExtendedVtxSteps,"extendedVtxSteps/I");
    fRecoTree->Branch("extendedVtxPass",&fExtendedVtxPass,"extendedVtxPass/I");
    fRecoTree->Branch("extendedVtxDelta",&fExtendedVtxDelta,"extendedVtxDelta/D");
    fRecoTree->Branch("extendedVtxDeltaTrans",&fExtendedVtxDeltaTrans,"extendedVtxDeltaTrans/D");
    fRecoTree->Branch("extendedVtxDeltaLong",&fExtendedVtxDeltaLong,"extendedVtxDeltaLong/D");
    fRecoTree->Branch("extendedVtxDeltaAngle",&fExtendedVtxDeltaAngle,"extendedVtxDeltaAngle/D");

    // --- debug ---
    fRecoTree->Branch("extendedVtxTimeParam0",&fExtendedVtxTimeParam0,"extendedVtxTimeParam0/D");
    fRecoTree->Branch("extendedVtxConeParam0",&fExtendedVtxConeParam0,"extendedVtxConeParam0/D");
    fRecoTree->Branch("extendedVtxConeParam1",&fExtendedVtxConeParam1,"extendedVtxConeParam1/D");
    fRecoTree->Branch("extendedVtxConeParam2",&fExtendedVtxConeParam2,"extendedVtxConeParam2/D");

    gDirectory = tmpd;
  }

  if( fRecoFile ){
    tmpd = gDirectory;
    fRecoFile->cd();
    fRecoTree->Fill();
    gDirectory = tmpd;
  }

  return;
}

void WCSimRecoNtuple::WriteVariables ( WCSimTrueEvent trueEvent,
WCSimRecoEvent recoEvent 
) [private]

Definition at line 197 of file WCSimRecoNtuple.cc.

References WCSimGeometry::BackwardProjectionToEdge(), WCSimGeometry::DistanceToEdge(), WCSimVertexFinder::fConeParam0, WCSimVertexFinder::fConeParam1, WCSimVertexFinder::fConeParam2, fEventNum, fExtendedConeAngle, fExtendedDirX, fExtendedDirY, fExtendedDirZ, fExtendedTrackLength, fExtendedVtxConeParam0, fExtendedVtxConeParam1, fExtendedVtxConeParam2, fExtendedVtxDelta, fExtendedVtxDeltaAngle, fExtendedVtxDeltaLong, fExtendedVtxDeltaTrans, fExtendedVtxFOM, fExtendedVtxPass, fExtendedVtxSteps, fExtendedVtxTimeParam0, fExtendedVtxX, fExtendedVtxY, fExtendedVtxZ, fFoundDirection, fFoundRings, fFoundVertex, fNDigits, fNFilterDigits, fNRings, WCSimGeometry::ForwardProjectionToEdge(), WCSimRecoEvent::FoundDirection(), WCSimRecoEvent::FoundRings(), WCSimRecoEvent::FoundVertex(), fPointConeAngle, fPointDirectionDeltaAngle, fPointDirectionFOM, fPointDirectionPass, fPointDirectionSteps, fPointDirectionX, fPointDirectionY, fPointDirectionZ, fPointDirX, fPointDirY, fPointDirZ, fPointPositionDelta, fPointPositionDeltaLong, fPointPositionDeltaTrans, fPointPositionFOM, fPointPositionPass, fPointPositionSteps, fPointPositionX, fPointPositionY, fPointPositionZ, fPointTrackLength, fPointVtxDelta, fPointVtxDeltaAngle, fPointVtxDeltaLong, fPointVtxDeltaTrans, fPointVtxFOM, fPointVtxPass, fPointVtxSteps, fPointVtxX, fPointVtxY, fPointVtxZ, fRecoConeAngle, fRecoDelta, fRecoDeltaAngle, fRecoDeltaLong, fRecoDeltaTrans, fRecoDirX, fRecoDirY, fRecoDirZ, fRecoRingAngle, fRecoRingDeltaAngle, fRecoRingDirX, fRecoRingDirY, fRecoRingDirZ, fRecoRingHeight, fRecoRingHeightFrac, fRecoRingVtxX, fRecoRingVtxY, fRecoRingVtxZ, fRecoTrackLength, fRecoVtxDistToEdge, fRecoVtxFOM, fRecoVtxPass, fRecoVtxStatus, fRecoVtxSteps, fRecoVtxTime, fRecoVtxTraceBwd, fRecoVtxTraceFwd, fRecoVtxX, fRecoVtxY, fRecoVtxZ, fRunNum, fSimpleDirectionDeltaAngle, fSimpleDirectionX, fSimpleDirectionY, fSimpleDirectionZ, fSimplePositionDelta, fSimplePositionDeltaLong, fSimplePositionDeltaTrans, fSimplePositionX, fSimplePositionY, fSimplePositionZ, WCSimVertexFinder::fTimeParam0, fTriggerNum, fTrueDirX, fTrueDirY, fTrueDirZ, fTrueE, fTrueEndDistToEdge, fTrueEndX, fTrueEndY, fTrueEndZ, fTrueG4EndX, fTrueG4EndY, fTrueG4EndZ, fTrueG4VtxX, fTrueG4VtxY, fTrueG4VtxZ, fTrueLength, fTrueP, fTruePDG, fTrueVtxDistToEdge, fTrueVtxTraceBwd, fTrueVtxTraceFwd, fTrueVtxX, fTrueVtxY, fTrueVtxZ, WCSimRecoRing::GetAngle(), WCSimRecoVertex::GetConeAngle(), WCSimRecoEvent::GetConeAngle(), WCSimRecoVertex::GetDirX(), WCSimRecoRing::GetDirX(), WCSimRecoEvent::GetDirX(), WCSimTrueEvent::GetDirX(), WCSimRecoVertex::GetDirY(), WCSimRecoRing::GetDirY(), WCSimRecoEvent::GetDirY(), WCSimTrueEvent::GetDirY(), WCSimRecoVertex::GetDirZ(), WCSimRecoRing::GetDirZ(), WCSimRecoEvent::GetDirZ(), WCSimTrueEvent::GetDirZ(), WCSimTrueEvent::GetEndX(), WCSimTrueEvent::GetEndY(), WCSimTrueEvent::GetEndZ(), WCSimTrueEvent::GetEnergy(), WCSimRecoEvent::GetEvent(), WCSimVertexFinder::GetExtendedVertex(), WCSimRecoVertex::GetFOM(), WCSimTrueEvent::GetG4EndX(), WCSimTrueEvent::GetG4EndY(), WCSimTrueEvent::GetG4EndZ(), WCSimTrueEvent::GetG4VtxX(), WCSimTrueEvent::GetG4VtxY(), WCSimTrueEvent::GetG4VtxZ(), WCSimRecoRing::GetHeight(), WCSimRecoVertex::GetIterations(), WCSimTrueEvent::GetLength(), WCSimTrueEvent::GetMomentum(), WCSimRecoEvent::GetNDigits(), WCSimRecoEvent::GetNFilterDigits(), WCSimRecoEvent::GetNRings(), WCSimRecoVertex::GetPass(), WCSimTrueEvent::GetPDG(), WCSimVertexFinder::GetPointDirection(), WCSimVertexFinder::GetPointPosition(), WCSimVertexFinder::GetPointVertex(), WCSimRecoEvent::GetPrimaryRing(), WCSimRecoEvent::GetRun(), WCSimVertexFinder::GetSimpleDirection(), WCSimVertexFinder::GetSimplePosition(), WCSimRecoVertex::GetTrackLength(), WCSimRecoEvent::GetTrackLength(), WCSimRecoEvent::GetTrigger(), WCSimRecoEvent::GetVtxFOM(), WCSimRecoEvent::GetVtxIterations(), WCSimRecoEvent::GetVtxPass(), WCSimRecoEvent::GetVtxStatus(), WCSimRecoEvent::GetVtxTime(), WCSimRecoRing::GetVtxX(), WCSimRecoEvent::GetVtxX(), WCSimTrueEvent::GetVtxX(), WCSimRecoRing::GetVtxY(), WCSimRecoEvent::GetVtxY(), WCSimTrueEvent::GetVtxY(), WCSimRecoRing::GetVtxZ(), WCSimRecoEvent::GetVtxZ(), WCSimTrueEvent::GetVtxZ(), WCSimRecoVertex::GetX(), WCSimRecoVertex::GetY(), WCSimRecoVertex::GetZ(), WCSimVertexFinder::Instance(), WCSimGeometry::Instance(), and WriteToFile().

Referenced by Fill().

{
  std::cout << " *** WCSimRecoNtuple::WriteVariables() *** " << std::endl;

  // header information
  // ==================
  fRunNum = fRecoEvent->GetRun();
  fEventNum = fRecoEvent->GetEvent();
  fTriggerNum = fRecoEvent->GetTrigger();

  // truth information
  // =================
  fTruePDG  = fTrueEvent->GetPDG();
  fTrueP     = fTrueEvent->GetMomentum();
  fTrueE     = fTrueEvent->GetEnergy();  

  fTrueG4VtxX  = fTrueEvent->GetG4VtxX();
  fTrueG4VtxY  = fTrueEvent->GetG4VtxY();
  fTrueG4VtxZ  = fTrueEvent->GetG4VtxZ();
  fTrueG4EndX  = fTrueEvent->GetG4EndX();
  fTrueG4EndY  = fTrueEvent->GetG4EndY();
  fTrueG4EndZ  = fTrueEvent->GetG4EndZ();

  fTrueVtxX  = fTrueEvent->GetVtxX();
  fTrueVtxY  = fTrueEvent->GetVtxY();
  fTrueVtxZ  = fTrueEvent->GetVtxZ();
  fTrueEndX  = fTrueEvent->GetEndX();
  fTrueEndY  = fTrueEvent->GetEndY();
  fTrueEndZ  = fTrueEvent->GetEndZ();
  fTrueDirX  = fTrueEvent->GetDirX();
  fTrueDirY  = fTrueEvent->GetDirY();
  fTrueDirZ  = fTrueEvent->GetDirZ();

  fTrueLength = fTrueEvent->GetLength();
  
  if( fTruePDG!=0 ){
    fTrueVtxTraceFwd = WCSimGeometry::Instance()->ForwardProjectionToEdge(fTrueVtxX,fTrueVtxY,fTrueVtxZ,
                                                                          fTrueDirX,fTrueDirY,fTrueDirZ);
    fTrueVtxTraceBwd = WCSimGeometry::Instance()->BackwardProjectionToEdge(fTrueVtxX,fTrueVtxY,fTrueVtxZ,
                                                                           fTrueDirX,fTrueDirY,fTrueDirZ);
    fTrueVtxDistToEdge = WCSimGeometry::Instance()->DistanceToEdge(fTrueVtxX,fTrueVtxY,fTrueVtxZ);

    fTrueEndDistToEdge = WCSimGeometry::Instance()->DistanceToEdge(fTrueEndX,fTrueEndY,fTrueEndZ);
  }

  // reconstructed variables
  // =======================
  fNDigits = fRecoEvent->GetNDigits();
  fNFilterDigits = fRecoEvent->GetNFilterDigits();
  fNRings = fRecoEvent->GetNRings();

  fFoundVertex = fRecoEvent->FoundVertex();
  fRecoVtxX = fRecoEvent->GetVtxX();
  fRecoVtxY = fRecoEvent->GetVtxY();
  fRecoVtxZ = fRecoEvent->GetVtxZ();
  fRecoVtxTime = fRecoEvent->GetVtxTime();
  
  fFoundDirection = fRecoEvent->FoundDirection();
  fRecoDirX = fRecoEvent->GetDirX();
  fRecoDirY = fRecoEvent->GetDirY();
  fRecoDirZ = fRecoEvent->GetDirZ();

  fRecoConeAngle = fRecoEvent->GetConeAngle();
  fRecoTrackLength = fRecoEvent->GetTrackLength();

  fRecoVtxFOM = fRecoEvent->GetVtxFOM(); 
  fRecoVtxSteps = fRecoEvent->GetVtxIterations(); 
  fRecoVtxPass = fRecoEvent->GetVtxPass();
  fRecoVtxStatus = fRecoEvent->GetVtxStatus();

  if( fFoundVertex && fFoundDirection ){
    fRecoVtxTraceFwd = WCSimGeometry::Instance()->ForwardProjectionToEdge(fRecoVtxX,fRecoVtxY,fRecoVtxZ,
                                                                          fRecoDirX,fRecoDirY,fRecoDirZ);
    fRecoVtxTraceBwd = WCSimGeometry::Instance()->BackwardProjectionToEdge(fRecoVtxX,fRecoVtxY,fRecoVtxZ,
                                                                           fRecoDirX,fRecoDirY,fRecoDirZ);
    fRecoVtxDistToEdge = WCSimGeometry::Instance()->DistanceToEdge(fRecoVtxX,fRecoVtxY,fRecoVtxZ);
  }

  fFoundRings = fRecoEvent->FoundRings();
  
  if( fFoundRings ){
    WCSimRecoRing* myPrimaryRing = (WCSimRecoRing*)(fRecoEvent->GetPrimaryRing());
    fRecoRingVtxX = myPrimaryRing->GetVtxX();
    fRecoRingVtxY = myPrimaryRing->GetVtxY();
    fRecoRingVtxZ = myPrimaryRing->GetVtxZ();  
    fRecoRingDirX = myPrimaryRing->GetDirX();
    fRecoRingDirY = myPrimaryRing->GetDirY();
    fRecoRingDirZ = myPrimaryRing->GetDirZ();
    fRecoRingAngle = myPrimaryRing->GetAngle();
    fRecoRingHeight =  myPrimaryRing->GetHeight();
    fRecoRingHeightFrac = 0.0;

    if( fRecoRingHeight>0.0 ){
      fRecoRingHeightFrac = fRecoRingHeight/(double)fNFilterDigits;
    }
  }

  // compare with truth
  // ==================
  if( fTruePDG!=0 
   && fFoundVertex && fFoundDirection ){
    Double_t dx = fRecoVtxX - fTrueVtxX;
    Double_t dy = fRecoVtxY - fTrueVtxY;
    Double_t dz = fRecoVtxZ - fTrueVtxZ;
    Double_t ds = sqrt( dx*dx + dy*dy + dz*dz );
    Double_t px = fTrueDirX;
    Double_t py = fTrueDirY;
    Double_t pz = fTrueDirZ;

    Double_t epsilon = 1.0e-7;

    if( ds>epsilon ){
      px = dx/ds;
      py = dy/ds;
      pz = dz/ds;
    }

    Double_t costh = px*fTrueDirX+py*fTrueDirY+pz*fTrueDirZ; 
    Double_t sinth = 0.0;
    if( costh<1.0-epsilon ) sinth = sqrt(1.0-costh*costh);
    else costh = 1.0;

    Double_t costh2 = fTrueDirX*fRecoDirX + fTrueDirY*fRecoDirY + fTrueDirZ*fRecoDirZ;
    Double_t angle = 0.0;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fRecoDelta = ds;
    fRecoDeltaTrans = ds*sinth;
    fRecoDeltaLong = ds*costh;
    fRecoDeltaAngle = angle;
  }

  if( fTruePDG!=0 
   && fFoundRings ){
    Double_t epsilon = 1.0e-7;
    Double_t costh2 = fTrueDirX*fRecoRingDirX+fTrueDirY*fRecoRingDirY+fTrueDirZ*fRecoRingDirZ;  
    Double_t angle = 0.0;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fRecoRingDeltaAngle = angle;  
  }

  // reconstruction chain
  // =====================
  if( fFoundVertex && fFoundDirection ){
    Double_t dx = 0.0;
    Double_t dy = 0.0;
    Double_t dz = 0.0;
    Double_t ds = 0.0;
    Double_t px = 0.0;
    Double_t py = 0.0;
    Double_t pz = 0.0;  
    Double_t qx = 0.0;
    Double_t qy = 0.0;
    Double_t qz = 0.0;

    Double_t epsilon = 1.0e-7;

    Double_t costh = 0.0;
    Double_t sinth = 0.0;
    Double_t costh2 = 0.0;
    Double_t angle = 0.0;

    // simple position
    WCSimRecoVertex* simplePos = WCSimVertexFinder::Instance()->GetSimplePosition();
    fSimplePositionX = simplePos->GetX();
    fSimplePositionY = simplePos->GetY();
    fSimplePositionZ = simplePos->GetZ();  

    dx = fSimplePositionX - fTrueVtxX;
    dy = fSimplePositionY - fTrueVtxY;
    dz = fSimplePositionZ - fTrueVtxZ;
    ds = sqrt( dx*dx + dy*dy + dz*dz );
    px = fTrueDirX;
    py = fTrueDirY;
    pz = fTrueDirZ;

    if( ds>epsilon ){
      px = dx/ds;
      py = dy/ds;
      pz = dz/ds;
    }

    costh = px*fTrueDirX+py*fTrueDirY+pz*fTrueDirZ; 
    sinth = 0.0;
    if( costh<1.0-epsilon ) sinth = sqrt(1.0-costh*costh);
    else costh = 1.0;

    fSimplePositionDelta = ds;
    fSimplePositionDeltaTrans = ds*sinth;
    fSimplePositionDeltaLong = ds*costh;


    // point position
    WCSimRecoVertex* pointPos = WCSimVertexFinder::Instance()->GetPointPosition();
    fPointPositionX = pointPos->GetX();
    fPointPositionY = pointPos->GetY();
    fPointPositionZ = pointPos->GetZ();
    fPointPositionFOM = pointPos->GetFOM();
    fPointPositionSteps = pointPos->GetIterations();
    fPointPositionPass = pointPos->GetPass();
 
    dx = fPointPositionX - fTrueVtxX;
    dy = fPointPositionY - fTrueVtxY;
    dz = fPointPositionZ - fTrueVtxZ;
    ds = sqrt( dx*dx + dy*dy + dz*dz );
    px = fTrueDirX;
    py = fTrueDirY;
    pz = fTrueDirZ;

    if( ds>epsilon ){
      px = dx/ds;
      py = dy/ds;
      pz = dz/ds;
    }

    costh = px*fTrueDirX+py*fTrueDirY+pz*fTrueDirZ; 
    sinth = 0.0;
    if( costh<1.0-epsilon ) sinth = sqrt(1.0-costh*costh);
    else costh = 1.0;

    fPointPositionDelta = ds;
    fPointPositionDeltaTrans = ds*sinth;
    fPointPositionDeltaLong = ds*costh;

    // simple direction
    WCSimRecoVertex* simpleDir = WCSimVertexFinder::Instance()->GetSimpleDirection();
    fSimpleDirectionX = simpleDir->GetDirX();
    fSimpleDirectionY = simpleDir->GetDirY();
    fSimpleDirectionZ = simpleDir->GetDirZ();
 
    qx = fSimpleDirectionX;
    qy = fSimpleDirectionY;
    qz = fSimpleDirectionZ;
 
    costh2 = qx*fTrueDirX + qy*fTrueDirY + qz*fTrueDirZ;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fSimpleDirectionDeltaAngle = angle;

    // point direction
    WCSimRecoVertex* pointDir = WCSimVertexFinder::Instance()->GetPointDirection();
    fPointDirectionX = pointDir->GetDirX();
    fPointDirectionY = pointDir->GetDirY();
    fPointDirectionZ = pointDir->GetDirZ();
    fPointDirectionFOM = pointDir->GetFOM();
    fPointDirectionSteps = pointDir->GetIterations();
    fPointDirectionPass = pointDir->GetPass();

    qx = fPointDirectionX;
    qy = fPointDirectionY;
    qz = fPointDirectionZ;

    costh2 = qx*fTrueDirX + qy*fTrueDirY + qz*fTrueDirZ;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fPointDirectionDeltaAngle = angle;

    // point vertex
    WCSimRecoVertex* pointVtx = WCSimVertexFinder::Instance()->GetPointVertex();
    fPointVtxX = pointVtx->GetX();
    fPointVtxY = pointVtx->GetY();
    fPointVtxZ = pointVtx->GetZ(); 
    fPointDirX = pointVtx->GetDirX();
    fPointDirY = pointVtx->GetDirY();
    fPointDirZ = pointVtx->GetDirZ();
    fPointConeAngle = pointVtx->GetConeAngle();
    fPointTrackLength = pointVtx->GetTrackLength();
    fPointVtxFOM = pointVtx->GetFOM();
    fPointVtxSteps = pointVtx->GetIterations();
    fPointVtxPass = pointVtx->GetPass();

    dx = fPointVtxX - fTrueVtxX;
    dy = fPointVtxY - fTrueVtxY;
    dz = fPointVtxZ - fTrueVtxZ;
    ds = sqrt( dx*dx + dy*dy + dz*dz );
    qx = fPointDirX;
    qy = fPointDirY;
    qz = fPointDirZ;
    px = fTrueDirX;
    py = fTrueDirY;
    pz = fTrueDirZ;

    if( ds>epsilon ){
      px = dx/ds;
      py = dy/ds;
      pz = dz/ds;
    }

    costh = px*fTrueDirX+py*fTrueDirY+pz*fTrueDirZ; 
    sinth = 0.0;
    if( costh<1.0-epsilon ) sinth = sqrt(1.0-costh*costh);
    else costh = 1.0;

    costh2 = qx*fTrueDirX + qy*fTrueDirY + qz*fTrueDirZ;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fPointVtxDelta = ds;
    fPointVtxDeltaTrans = ds*sinth;
    fPointVtxDeltaLong = ds*costh;
    fPointVtxDeltaAngle = angle;

    // extended
    WCSimRecoVertex* extendedVtx = WCSimVertexFinder::Instance()->GetExtendedVertex();
    fExtendedVtxX = extendedVtx->GetX();
    fExtendedVtxY = extendedVtx->GetY();
    fExtendedVtxZ = extendedVtx->GetZ();
    fExtendedDirX = extendedVtx->GetDirX();
    fExtendedDirY = extendedVtx->GetDirY();
    fExtendedDirZ = extendedVtx->GetDirZ();   
    fExtendedConeAngle = extendedVtx->GetConeAngle();
    fExtendedTrackLength = extendedVtx->GetTrackLength();
    fExtendedVtxFOM = extendedVtx->GetFOM();
    fExtendedVtxSteps = extendedVtx->GetIterations();
    fExtendedVtxPass = extendedVtx->GetPass();   

    dx = fExtendedVtxX - fTrueVtxX;
    dy = fExtendedVtxY - fTrueVtxY;
    dz = fExtendedVtxZ - fTrueVtxZ;
    ds = sqrt( dx*dx + dy*dy + dz*dz );
    qx = fExtendedDirX;
    qy = fExtendedDirY;
    qz = fExtendedDirZ;
    px = fTrueDirX;
    py = fTrueDirY;
    pz = fTrueDirZ;

    if( ds>epsilon ){
      px = dx/ds;
      py = dy/ds;
      pz = dz/ds;
    }

    costh = px*fTrueDirX+py*fTrueDirY+pz*fTrueDirZ; 
    sinth = 0.0;
    if( costh<1.0-epsilon ) sinth = sqrt(1.0-costh*costh);
    else costh = 1.0;

    costh2 = qx*fTrueDirX + qy*fTrueDirY + qz*fTrueDirZ;
    if( costh2<1.0-epsilon ) angle = (180.0/TMath::Pi())*acos(costh2);
    else angle = 0.0;

    fExtendedVtxDelta = ds;
    fExtendedVtxDeltaTrans = ds*sinth;
    fExtendedVtxDeltaLong = ds*costh;
    fExtendedVtxDeltaAngle = angle;

    // --- debug ---
    fExtendedVtxTimeParam0 = WCSimVertexFinder::Instance()->fTimeParam0;
    fExtendedVtxConeParam0 = WCSimVertexFinder::Instance()->fConeParam0;
    fExtendedVtxConeParam1 = WCSimVertexFinder::Instance()->fConeParam1;
    fExtendedVtxConeParam2 = WCSimVertexFinder::Instance()->fConeParam2;
  }

  // write variables
  // ===============
  this->WriteToFile();

  return;
}


Member Data Documentation

Int_t WCSimRecoNtuple::fEventNum [private]

Definition at line 36 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 162 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedDirX [private]

Definition at line 159 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedDirY [private]

Definition at line 160 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedDirZ [private]

Definition at line 161 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 163 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 174 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 175 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 176 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 167 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 170 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 169 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 168 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 164 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 166 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 165 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 173 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedVtxX [private]

Definition at line 156 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedVtxY [private]

Definition at line 157 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fExtendedVtxZ [private]

Definition at line 158 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 70 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 71 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 69 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Int_t WCSimRecoNtuple::fNDigits [private]

Definition at line 65 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 66 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Int_t WCSimRecoNtuple::fNRings [private]

Definition at line 67 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 146 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 138 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 135 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 137 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 136 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 132 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 133 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 134 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointDirX [private]

Definition at line 143 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointDirY [private]

Definition at line 144 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointDirZ [private]

Definition at line 145 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 123 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 125 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 124 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 120 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 122 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 121 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 117 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 118 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 119 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 147 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointVtxDelta [private]

Definition at line 151 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 154 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 153 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 152 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointVtxFOM [private]

Definition at line 148 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 150 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 149 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointVtxX [private]

Definition at line 140 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointVtxY [private]

Definition at line 141 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fPointVtxZ [private]

Definition at line 142 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoConeAngle [private]

Definition at line 80 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoDelta [private]

Definition at line 103 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 106 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoDeltaLong [private]

Definition at line 105 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 104 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoDirX [private]

Definition at line 77 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoDirY [private]

Definition at line 78 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoDirZ [private]

Definition at line 79 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

TFile* WCSimRecoNtuple::fRecoFile [private]

Definition at line 31 of file WCSimRecoNtuple.hh.

Referenced by CloseFile(), Reset(), and WriteToFile().

Double_t WCSimRecoNtuple::fRecoRingAngle [private]

Definition at line 98 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 107 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingDirX [private]

Definition at line 95 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingDirY [private]

Definition at line 96 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingDirZ [private]

Definition at line 97 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 99 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 100 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingVtxX [private]

Definition at line 92 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingVtxY [private]

Definition at line 93 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoRingVtxZ [private]

Definition at line 94 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 81 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

TTree* WCSimRecoNtuple::fRecoTree [private]

Definition at line 32 of file WCSimRecoNtuple.hh.

Referenced by CloseFile(), Reset(), and WriteToFile().

Definition at line 90 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoVtxFOM [private]

Definition at line 83 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 85 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 86 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 84 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoVtxTime [private]

Definition at line 76 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 89 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 88 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoVtxX [private]

Definition at line 73 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoVtxY [private]

Definition at line 74 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fRecoVtxZ [private]

Definition at line 75 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Int_t WCSimRecoNtuple::fRunNum [private]

Definition at line 35 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 130 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 127 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 128 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 129 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 113 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 115 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 114 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 110 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 111 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 112 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 37 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueDirX [private]

Definition at line 54 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueDirY [private]

Definition at line 55 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueDirZ [private]

Definition at line 56 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueE [private]

Definition at line 41 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 62 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueEndX [private]

Definition at line 51 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueEndY [private]

Definition at line 52 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueEndZ [private]

Definition at line 53 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4EndX [private]

Definition at line 45 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4EndY [private]

Definition at line 46 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4EndZ [private]

Definition at line 47 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4VtxX [private]

Definition at line 42 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4VtxY [private]

Definition at line 43 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueG4VtxZ [private]

Definition at line 44 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueLength [private]

Definition at line 57 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueP [private]

Definition at line 40 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Int_t WCSimRecoNtuple::fTruePDG [private]

Definition at line 39 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 61 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 60 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Definition at line 59 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueVtxX [private]

Definition at line 48 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueVtxY [private]

Definition at line 49 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().

Double_t WCSimRecoNtuple::fTrueVtxZ [private]

Definition at line 50 of file WCSimRecoNtuple.hh.

Referenced by ResetVariables(), WriteToFile(), and WriteVariables().


The documentation for this class was generated from the following files: