/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 | Public Attributes | Private Attributes
ValidationTree Class Reference

#include <ValidationTree.h>

List of all members.

Public Member Functions

 ValidationTree ()
 ~ValidationTree ()
int create ()
int reset ()
int fill ()
int close ()

Public Attributes

int SimHitsEntries
 quantities
double hitTime [MaxSimHitEntries]
double hitx [MaxSimHitEntries]
double hity [MaxSimHitEntries]
double hitz [MaxSimHitEntries]
int sensID [MaxSimHitEntries]
int ancestorPdg [MaxSimHitEntries]
double wavelength [MaxSimHitEntries]
double polx [MaxSimHitEntries]
double poly [MaxSimHitEntries]
double polz [MaxSimHitEntries]
double px [MaxSimHitEntries]
double py [MaxSimHitEntries]
double pz [MaxSimHitEntries]
float weight [MaxSimHitEntries]
double MuonPx
double MuonPy
double MuonPz
double MuonX
double MuonY
double MuonZ
double MuonTime
double MuonE
double MuonTrkLengthInOws
double MuonTrkLengthInIws
double MuonTrkLengthInLS
double MuonTrkLengthInGdLS
double dEInn
double dEOut
int StopFlag
int trk1_pdgId
double trk1_t
double trk1_x
double trk1_y
double trk1_z
double trk1_e
double trk1_px
double trk1_py
double trk1_pz
double trk1_ke
double trk1_ve
double trk1_TrkLength_GD
double trk1_TrkLength_iAV
double trk1_TrkLength_LS
double trk1_TrkLength_oAV
double trk1_TrkLength_Oil
int trk2_pdgId
double trk2_t
double trk2_x
double trk2_y
double trk2_z
double trk2_e
double trk2_px
double trk2_py
double trk2_pz
double trk2_ke
double trk2_ve
double trk2_TrkLength_GD
double trk2_TrkLength_iAV
double trk2_TrkLength_LS
double trk2_TrkLength_oAV
double trk2_TrkLength_Oil
int number_opti_pho
double wavelength_opti_pho [MaxOpticalPhoton]
int n
int execKine
int execDets
int execElec
int execTrig
int execSing
double time
int adc [8][24]
int tdc [8][24]
double adc_sum

Private Attributes

TFile * m_file
TTree * m_tree

Detailed Description

Definition at line 19 of file ValidationTree.h.


Constructor & Destructor Documentation

ValidationTree::ValidationTree ( )

Definition at line 12 of file ValidationTree.cc.

{}
ValidationTree::~ValidationTree ( )

Definition at line 15 of file ValidationTree.cc.

{}

Member Function Documentation

int ValidationTree::create ( )

create tree

SimHits

muon track length

MC truth for the first primary track

MC truth for () the second primary track

Definition at line 18 of file ValidationTree.cc.

{
  m_file=new TFile("monitor.root","recreate");
  m_tree=new TTree("t","Analysis Tree");    

  m_tree->Branch("nhits",&SimHitsEntries,"SimHitsEntries/I");
  m_tree->Branch("hitTime",hitTime,"hitTime[SimHitsEntries]/D");
  m_tree->Branch("hitx",hitx,"hitx[SimHitsEntries]/D");
  m_tree->Branch("hity",hity,"hity[SimHitsEntries]/D");
  m_tree->Branch("hitz",hitz,"hitz[SimHitsEntries]/D");
  m_tree->Branch("sensID",sensID,"sensID[SimHitsEntries]/I");
  m_tree->Branch("ancestor",ancestorPdg,"ancestor[SimHitsEntries]/I");
  m_tree->Branch("wavelength",wavelength,"wavelength[SimHitsEntries]/D");
  m_tree->Branch("polx",polx,"polx[SimHitsEntries]/D");
  m_tree->Branch("poly",poly,"poly[SimHitsEntries]/D");
  m_tree->Branch("polz",polz,"polz[SimHitsEntries]/D");
  m_tree->Branch("px",px,"px[SimHitsEntries]/D");
  m_tree->Branch("py",py,"py[SimHitsEntries]/D");
  m_tree->Branch("pz",pz,"pz[SimHitsEntries]/D");
  m_tree->Branch("weight",weight,"weight[SimHitsEntries]/F");

  //Muon vertex Info
  m_tree->Branch("MuonE",&MuonE,"MuonE/D");
  m_tree->Branch("MuonX",&MuonX,"MuonX/D");
  m_tree->Branch("MuonY",&MuonY,"MuonY/D");
  m_tree->Branch("MuonZ",&MuonZ,"MuonZ/D");
  m_tree->Branch("MuonPx",&MuonPx,"MuonPx/D");
  m_tree->Branch("MuonPy",&MuonPy,"MuonPy/D");
  m_tree->Branch("MuonPz",&MuonPz,"MuonPz/D");
  m_tree->Branch("MuonTime",&MuonTime,"MuonTime/D");
  m_tree->Branch("StopFlag",&StopFlag,"StopFlag/I");


  m_tree->Branch("MuonTrkLengthInOws",&MuonTrkLengthInOws,"MuonTrkLengthInOws/D");
  m_tree->Branch("MuonTrkLengthInIws",&MuonTrkLengthInIws,"MuonTrkLengthInIws/D");
  m_tree->Branch("MuonTrkLengthInLS",&MuonTrkLengthInLS,"MuonTrkLengthInLS/D");
  m_tree->Branch("MuonTrkLengthInGdLS",&MuonTrkLengthInGdLS,"MuonTrkLengthInGdLS/D");
  m_tree->Branch("dEInn",&dEInn,"dEInn/D");
  m_tree->Branch("dEOut",&dEOut,"dEOut/D");

  m_tree->Branch("trk1_pdgId",  &trk1_pdgId, "trk1_pdgId/I");  
                                                                              
  m_tree->Branch("trk1_t",   &trk1_t,  "trk1_t/D");   
  m_tree->Branch("trk1_x",   &trk1_x,  "trk1_x/D");   
  m_tree->Branch("trk1_y",   &trk1_y,  "trk1_y/D");   
  m_tree->Branch("trk1_z",   &trk1_z,  "trk1_z/D");   
                                                                              
  m_tree->Branch("trk1_e",   &trk1_e,  "trk1_e/D");   
  m_tree->Branch("trk1_px",  &trk1_px, "trk1_px/D");  
  m_tree->Branch("trk1_py",  &trk1_py, "trk1_py/D");  
  m_tree->Branch("trk1_pz",  &trk1_pz, "trk1_pz/D");  
                                                                              
  m_tree->Branch("trk1_ke",  &trk1_ke, "trk1_ke/D");   // kinematic energy
  m_tree->Branch("trk1_ve",  &trk1_ve, "trk1_ve/D");   // visible energy
                                                                              
  m_tree->Branch("trk1_TrkLength_GD", &trk1_TrkLength_GD, "trk1_TrkLength_GD/D");  // pathlength in GDLS
  m_tree->Branch("trk1_TrkLength_iAV",&trk1_TrkLength_iAV,"trk1_TrkLength_iAV/D"); // pathlength in inner AV
  m_tree->Branch("trk1_TrkLength_LS", &trk1_TrkLength_LS, "trk1_TrkLength_LS/D");  // pathlength in LS
  m_tree->Branch("trk1_TrkLength_oAV",&trk1_TrkLength_oAV,"trk1_TrkLength_oAV/D"); // pathlength in outer AV
  m_tree->Branch("trk1_TrkLength_Oil",&trk1_TrkLength_Oil,"trk1_TrkLength_Oil/D"); // pathlength in oil

  m_tree->Branch("trk2_pdgId",  &trk2_pdgId,  "trk2_pdgId/I");

  m_tree->Branch("trk2_t",   &trk2_t,   "trk2_t/D");
  m_tree->Branch("trk2_x",   &trk2_x,   "trk2_x/D");
  m_tree->Branch("trk2_y",   &trk2_y,   "trk2_y/D");
  m_tree->Branch("trk2_z",   &trk2_z,   "trk2_z/D");

  m_tree->Branch("trk2_e",   &trk2_e,   "trk2_e/D");
  m_tree->Branch("trk2_px",  &trk2_px,  "trk2_px/D");
  m_tree->Branch("trk2_py",  &trk2_py,  "trk2_py/D");
  m_tree->Branch("trk2_pz",  &trk2_pz,  "trk2_pz/D");

  m_tree->Branch("trk2_ke",  &trk2_ke,  "trk2_ke/D");   // kinematic energy
  m_tree->Branch("trk2_ve",  &trk2_ve,  "trk2_ve/D");   // visible energy

  m_tree->Branch("trk2_TrkLength_GD", &trk2_TrkLength_GD, "trk2_TrkLength_GD/D");  // pathlength in GDLS
  m_tree->Branch("trk2_TrkLength_iAV",&trk2_TrkLength_iAV,"trk2_TrkLength_iAV/D"); // pathlength in inner AV
  m_tree->Branch("trk2_TrkLength_LS", &trk2_TrkLength_LS, "trk2_TrkLength_LS/D");  // pathlength in LS
  m_tree->Branch("trk2_TrkLength_oAV",&trk2_TrkLength_oAV,"trk2_TrkLength_oAV/D"); // pathlength in outer AV
  m_tree->Branch("trk2_TrkLength_Oil",&trk2_TrkLength_Oil,"trk2_TrkLength_Oil/D"); // pathlength in oil

  // initial optical photons
  m_tree->Branch("number_opti_pho", &number_opti_pho, "number_opti_pho/I");
  m_tree->Branch("wavelength_opti_pho",wavelength_opti_pho,",wavelength_opti_pho[number_opti_pho]/D");

  //
  m_tree->Branch("n",       &n,       "n/I");
  m_tree->Branch("execKine",&execKine,"execKine/I");   // execution number in kinematic
  m_tree->Branch("execDets",&execDets,"execDets/I");   // in DetSim                    
  m_tree->Branch("execElec",&execElec,"execElec/I");   // in ElecSim                   
  m_tree->Branch("execTrig",&execTrig,"execTrig/I");   // in TrigRead                  
  m_tree->Branch("execSing",&execSing,"execSing/I");   // in SingleLoader              

  m_tree->Branch("time",&time,"time/D"); // arrival time in second

  // readout 
  m_tree->Branch("adc",adc,"adc[8][24]/I");   // adc
  m_tree->Branch("tdc",tdc,"tdc[8][24]/I");   // tdc

  m_tree->Branch("adc_sum",&adc_sum,"adc_sum/D");   // adc_sum


  return  1; // 1 for SUCCESS;
}
int ValidationTree::reset ( )

reset all quantities

muon track length

Definition at line 128 of file ValidationTree.cc.

{
  SimHitsEntries=0;

  //muon vertex information.
  MuonE=0;
  MuonX=0;
  MuonY=0;
  MuonZ=0;
  MuonPx=0;
  MuonPy=0;
  MuonPz=0;
  MuonTime=0;
  StopFlag=0;
  
  MuonTrkLengthInOws=0;
  MuonTrkLengthInIws=0;
  MuonTrkLengthInLS=0;
  MuonTrkLengthInGdLS=0;
  dEInn=0;
  dEOut=0;
  

  trk1_pdgId=0;

  trk1_t=0;
  trk1_x=0;
  trk1_y=0;
  trk1_z=0;

  trk1_e=0;
  trk1_px=0;
  trk1_py=0;
  trk1_pz=0;

  trk1_ke=0;  // kinematic energy
  trk1_ve=0;  // visible energy

  trk1_TrkLength_GD=0;  // pathlength in GDLS
  trk1_TrkLength_iAV=0; //            in inner AV
  trk1_TrkLength_LS=0;  //            in LS
  trk1_TrkLength_oAV=0; //            in outer AV
  trk1_TrkLength_Oil=0; //            in oil

  // MC truth for the second primary track ///////////
  trk2_pdgId=0;

  trk2_t=0;
  trk2_x=0;
  trk2_y=0;
  trk2_z=0;

  trk2_e=0;
  trk2_px=0;
  trk2_py=0;
  trk2_pz=0;

  trk2_ke=0;  // kinematic energy
  trk2_ve=0;  // visible energy

  trk2_TrkLength_GD=0;  // pathlength in GDLS
  trk2_TrkLength_iAV=0; //            in inner AV
  trk2_TrkLength_LS=0;  //            in LS
  trk2_TrkLength_oAV=0; //            in outer AV
  trk2_TrkLength_Oil=0; //            in oil


  number_opti_pho=0;

  n=0;
  execKine=0;
  execDets=0;
  execElec=0;
  execTrig=0;
  execSing=0;

  time =0;

  adc_sum=0;

  return 1;  // 1 for SUCCESS;
}
int ValidationTree::fill ( )

Definition at line 214 of file ValidationTree.cc.

{
  m_tree->Fill();

  return  1; // 1 for SUCCESS;
}
int ValidationTree::close ( )

Definition at line 221 of file ValidationTree.cc.

{
  m_file->Write();
  return  1; // 1 for SUCCESS;
}

Member Data Documentation

quantities

simHit ///////// There is an array for every quantity in SimHit

Definition at line 36 of file ValidationTree.h.

double ValidationTree::hitTime[MaxSimHitEntries]

Definition at line 38 of file ValidationTree.h.

double ValidationTree::hitx[MaxSimHitEntries]

Definition at line 39 of file ValidationTree.h.

double ValidationTree::hity[MaxSimHitEntries]

Definition at line 40 of file ValidationTree.h.

double ValidationTree::hitz[MaxSimHitEntries]

Definition at line 41 of file ValidationTree.h.

int ValidationTree::sensID[MaxSimHitEntries]

Definition at line 42 of file ValidationTree.h.

int ValidationTree::ancestorPdg[MaxSimHitEntries]

Definition at line 43 of file ValidationTree.h.

double ValidationTree::wavelength[MaxSimHitEntries]

Definition at line 44 of file ValidationTree.h.

double ValidationTree::polx[MaxSimHitEntries]

Definition at line 45 of file ValidationTree.h.

double ValidationTree::poly[MaxSimHitEntries]

Definition at line 46 of file ValidationTree.h.

double ValidationTree::polz[MaxSimHitEntries]

Definition at line 47 of file ValidationTree.h.

double ValidationTree::px[MaxSimHitEntries]

Definition at line 48 of file ValidationTree.h.

double ValidationTree::py[MaxSimHitEntries]

Definition at line 49 of file ValidationTree.h.

double ValidationTree::pz[MaxSimHitEntries]

Definition at line 50 of file ValidationTree.h.

float ValidationTree::weight[MaxSimHitEntries]

Definition at line 51 of file ValidationTree.h.

Definition at line 54 of file ValidationTree.h.

Definition at line 54 of file ValidationTree.h.

Definition at line 54 of file ValidationTree.h.

Definition at line 55 of file ValidationTree.h.

Definition at line 55 of file ValidationTree.h.

Definition at line 55 of file ValidationTree.h.

Definition at line 56 of file ValidationTree.h.

Definition at line 57 of file ValidationTree.h.

Definition at line 58 of file ValidationTree.h.

Definition at line 59 of file ValidationTree.h.

Definition at line 60 of file ValidationTree.h.

Definition at line 61 of file ValidationTree.h.

Definition at line 62 of file ValidationTree.h.

Definition at line 63 of file ValidationTree.h.

Definition at line 64 of file ValidationTree.h.

Definition at line 67 of file ValidationTree.h.

Definition at line 69 of file ValidationTree.h.

Definition at line 70 of file ValidationTree.h.

Definition at line 71 of file ValidationTree.h.

Definition at line 72 of file ValidationTree.h.

Definition at line 74 of file ValidationTree.h.

Definition at line 75 of file ValidationTree.h.

Definition at line 76 of file ValidationTree.h.

Definition at line 77 of file ValidationTree.h.

Definition at line 79 of file ValidationTree.h.

Definition at line 80 of file ValidationTree.h.

Definition at line 82 of file ValidationTree.h.

Definition at line 83 of file ValidationTree.h.

Definition at line 84 of file ValidationTree.h.

Definition at line 85 of file ValidationTree.h.

Definition at line 86 of file ValidationTree.h.

Definition at line 89 of file ValidationTree.h.

Definition at line 91 of file ValidationTree.h.

Definition at line 92 of file ValidationTree.h.

Definition at line 93 of file ValidationTree.h.

Definition at line 94 of file ValidationTree.h.

Definition at line 96 of file ValidationTree.h.

Definition at line 97 of file ValidationTree.h.

Definition at line 98 of file ValidationTree.h.

Definition at line 99 of file ValidationTree.h.

Definition at line 101 of file ValidationTree.h.

Definition at line 102 of file ValidationTree.h.

Definition at line 104 of file ValidationTree.h.

Definition at line 105 of file ValidationTree.h.

Definition at line 106 of file ValidationTree.h.

Definition at line 107 of file ValidationTree.h.

Definition at line 108 of file ValidationTree.h.

Definition at line 111 of file ValidationTree.h.

double ValidationTree::wavelength_opti_pho[MaxOpticalPhoton]

Definition at line 112 of file ValidationTree.h.

Definition at line 115 of file ValidationTree.h.

Definition at line 116 of file ValidationTree.h.

Definition at line 117 of file ValidationTree.h.

Definition at line 118 of file ValidationTree.h.

Definition at line 119 of file ValidationTree.h.

Definition at line 120 of file ValidationTree.h.

Definition at line 121 of file ValidationTree.h.

int ValidationTree::adc[8][24]

Definition at line 124 of file ValidationTree.h.

int ValidationTree::tdc[8][24]

Definition at line 125 of file ValidationTree.h.

Definition at line 127 of file ValidationTree.h.

TFile* ValidationTree::m_file [private]

Definition at line 130 of file ValidationTree.h.

TTree* ValidationTree::m_tree [private]

Definition at line 131 of file ValidationTree.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 10:07:33 for Stage by doxygen 1.7.4