/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
double EDepInGdLS
double EDepInLS
double EDepInIAV
double EDepInOAV
double EDepInOIL
double QEDepInGdLS
double QEDepInLS
double QEDepInIAV
double QEDepInOAV
double QEDepInOIL
double tQESumGdLS
double xQESumGdLS
double yQESumGdLS
double zQESumGdLS
double tQESumLS
double xQESumLS
double yQESumLS
double zQESumLS
double tQESumMO
double xQESumMO
double yQESumMO
double zQESumMO
double tCtrQE
double xCtrQE
double yCtrQE
double zCtrQE
double t_gen
double x_gen
double y_gen
double z_gen
double t_cap
double x_cap
double y_cap
double z_cap
int capTarget
int pdgId_Trk1
double t_Trk1
double x_Trk1
double y_Trk1
double z_Trk1
double e_Trk1
double px_Trk1
double py_Trk1
double pz_Trk1
double ke_Trk1
double tEnd_Trk1
double xEnd_Trk1
double yEnd_Trk1
double zEnd_Trk1
double TrkLength_GD_Trk1
double TrkLength_iAV_Trk1
double TrkLength_LS_Trk1
double TrkLength_oAV_Trk1
double TrkLength_Oil_Trk1
int pdgId_Trk2
double t_Trk2
double x_Trk2
double y_Trk2
double z_Trk2
double e_Trk2
double px_Trk2
double py_Trk2
double pz_Trk2
double ke_Trk2
double tEnd_Trk2
double xEnd_Trk2
double yEnd_Trk2
double zEnd_Trk2
double TrkLength_GD_Trk2
double TrkLength_iAV_Trk2
double TrkLength_LS_Trk2
double TrkLength_oAV_Trk2
double TrkLength_Oil_Trk2
int number_opti_pho
double wavelength_opti_pho [MaxOpticalPhoton]
double tBuff1
double xBuff1
double yBuff1
double zBuff1
double tBuff2
double xBuff2
double yBuff2
double zBuff2

Private Attributes

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

Energy information

MC truth for the first primary track

MC truth for the second primary track

Definition at line 18 of file ValidationTree.cc.

{

  m_tree=new TTree("DetSimValiTree","DetSim Validation Tree");    

  m_tree->Branch("SimHitsEntries",&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("EDepInGdLS",   &EDepInGdLS,    "EDepInGdLS/D");
  m_tree->Branch("EDepInLS",   &EDepInLS,    "EDepInLS/D");
  m_tree->Branch("EDepInIAV",   &EDepInIAV,    "EDepInIAV/D");
  m_tree->Branch("EDepInOAV",   &EDepInOAV,    "EDepInOAV/D");
  m_tree->Branch("EDepInOIL",   &EDepInOIL,    "EDepInOIL/D");
  
  m_tree->Branch("QEDepInGdLS",   &QEDepInGdLS,    "QEDepInGdLS/D");
  m_tree->Branch("QEDepInLS",   &QEDepInLS,    "QEDepInLS/D");
  m_tree->Branch("QEDepInIAV",   &QEDepInIAV,    "QEDepInIAV/D");
  m_tree->Branch("QEDepInOAV",   &QEDepInOAV,    "QEDepInOAV/D");
  m_tree->Branch("QEDepInOIL",   &QEDepInOIL,    "QEDepInOIL/D");
  
  m_tree->Branch("tQESumGdLS", &tQESumGdLS, "tQESumGdLS/D");
  m_tree->Branch("xQESumGdLS", &xQESumGdLS, "xQESumGdLS/D");
  m_tree->Branch("yQESumGdLS", &yQESumGdLS, "yQESumGdLS/D");
  m_tree->Branch("zQESumGdLS", &zQESumGdLS, "zQESumGdLS/D");

  m_tree->Branch("tQESumLS", &tQESumLS, "tQESumLS/D");
  m_tree->Branch("xQESumLS", &xQESumLS, "xQESumLS/D");
  m_tree->Branch("yQESumLS", &yQESumLS, "yQESumLS/D");
  m_tree->Branch("zQESumLS", &zQESumLS, "zQESumLS/D");

  m_tree->Branch("tQESumMO", &tQESumMO, "tQESumMO/D");
  m_tree->Branch("xQESumMO", &xQESumMO, "xQESumMO/D");
  m_tree->Branch("yQESumMO", &yQESumMO, "yQESumMO/D");
  m_tree->Branch("zQESumMO", &zQESumMO, "zQESumMO/D");

  m_tree->Branch("tCtrQE", &tCtrQE, "tCtrQE/D");
  m_tree->Branch("xCtrQE", &xCtrQE, "xCtrQE/D");
  m_tree->Branch("yCtrQE", &yCtrQE, "yCtrQE/D");
  m_tree->Branch("zCtrQE", &zCtrQE, "zCtrQE/D");
  
  // generation and capture information
  
  m_tree->Branch("t_gen", &t_gen, "t_gen/D");
  m_tree->Branch("x_gen", &x_gen, "x_gen/D");
  m_tree->Branch("y_gen", &y_gen, "y_gen/D");
  m_tree->Branch("z_gen", &z_gen, "z_gen/D");

  m_tree->Branch("t_cap", &t_cap, "t_cap/D");
  m_tree->Branch("x_cap", &x_cap, "x_cap/D");
  m_tree->Branch("y_cap", &y_cap, "y_cap/D");
  m_tree->Branch("z_cap", &z_cap, "z_cap/D");

  m_tree->Branch("capTarget", &capTarget, "capTarget/I");
  
  m_tree->Branch("pdgId_Trk1",  &pdgId_Trk1,   "pdgId_Trk1/I");  
  
  m_tree->Branch("t_Trk1",   &t_Trk1,    "t_Trk1/D");   
  m_tree->Branch("x_Trk1",   &x_Trk1,    "x_Trk1/D");   
  m_tree->Branch("y_Trk1",   &y_Trk1,    "y_Trk1/D");   
  m_tree->Branch("z_Trk1",   &z_Trk1,    "z_Trk1/D");   
                                                                              
  m_tree->Branch("e_Trk1",   &e_Trk1,    "e_Trk1/D");   
  m_tree->Branch("px_Trk1",  &px_Trk1,   "px_Trk1/D");  
  m_tree->Branch("py_Trk1",  &py_Trk1,   "py_Trk1/D");  
  m_tree->Branch("pz_Trk1",  &pz_Trk1,   "pz_Trk1/D");  
                                                                              
  m_tree->Branch("ke_Trk1",  &ke_Trk1,   "ke_Trk1/D");   // kinematic energy
                                                                              
  m_tree->Branch("tEnd_Trk1",   &tEnd_Trk1,    "tEnd_Trk1/D");   
  m_tree->Branch("xEnd_Trk1",   &xEnd_Trk1,    "xEnd_Trk1/D");   
  m_tree->Branch("yEnd_Trk1",   &yEnd_Trk1,    "yEnd_Trk1/D");   
  m_tree->Branch("zEnd_Trk1",   &zEnd_Trk1,    "zEnd_Trk1/D");   

  m_tree->Branch("TrkLength_GD_Trk1", &TrkLength_GD_Trk1,  "TrkLength_GD_Trk1/D");  // pathlength in GDLS
  m_tree->Branch("TrkLength_iAV_Trk1",&TrkLength_iAV_Trk1, "TrkLength_iAV_Trk1/D"); // pathlength in inner AV
  m_tree->Branch("TrkLength_LS_Trk1", &TrkLength_LS_Trk1,  "TrkLength_LS_Trk1/D");  // pathlength in LS
  m_tree->Branch("TrkLength_oAV_Trk1",&TrkLength_oAV_Trk1, "TrkLength_oAV_Trk1/D"); // pathlength in outer AV
  m_tree->Branch("TrkLength_Oil_Trk1",&TrkLength_Oil_Trk1, "TrkLength_Oil_Trk1/D"); // pathlength in oil

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

  m_tree->Branch("t_Trk2",   &t_Trk2,    "t_Trk2/D");
  m_tree->Branch("x_Trk2",   &x_Trk2,    "x_Trk2/D");
  m_tree->Branch("y_Trk2",   &y_Trk2,    "y_Trk2/D");
  m_tree->Branch("z_Trk2",   &z_Trk2,    "z_Trk2/D");

  m_tree->Branch("e_Trk2",   &e_Trk2,    "e_Trk2/D");
  m_tree->Branch("px_Trk2",  &px_Trk2,   "px_Trk2/D");
  m_tree->Branch("py_Trk2",  &py_Trk2,   "py_Trk2/D");
  m_tree->Branch("pz_Trk2",  &pz_Trk2,   "pz_Trk2/D");

  m_tree->Branch("ke_Trk2",  &ke_Trk2,   "ke_Trk2/D");   // kinematic energy

  m_tree->Branch("tEnd_Trk2",   &tEnd_Trk2,    "tEnd_Trk2/D");   
  m_tree->Branch("xEnd_Trk2",   &xEnd_Trk2,    "xEnd_Trk2/D");   
  m_tree->Branch("yEnd_Trk2",   &yEnd_Trk2,    "yEnd_Trk2/D");   
  m_tree->Branch("zEnd_Trk2",   &zEnd_Trk2,    "zEnd_Trk2/D");   

  m_tree->Branch("TrkLength_GD_Trk2", &TrkLength_GD_Trk2,  "TrkLength_GD_Trk2/D");  // pathlength in GDLS
  m_tree->Branch("TrkLength_iAV_Trk2",&TrkLength_iAV_Trk2, "TrkLength_iAV_Trk2/D"); // pathlength in inner AV
  m_tree->Branch("TrkLength_LS_Trk2", &TrkLength_LS_Trk2,  "TrkLength_LS_Trk2/D");  // pathlength in LS
  m_tree->Branch("TrkLength_oAV_Trk2",&TrkLength_oAV_Trk2, "TrkLength_oAV_Trk2/D"); // pathlength in outer AV
  m_tree->Branch("TrkLength_Oil_Trk2",&TrkLength_Oil_Trk2, "TrkLength_Oil_Trk2/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("tBuff1",   &tBuff1,    "tBuff1/D");   
  m_tree->Branch("xBuff1",   &xBuff1,    "xBuff1/D");   
  m_tree->Branch("yBuff1",   &yBuff1,    "yBuff1/D");   
  m_tree->Branch("zBuff1",   &zBuff1,    "zBuff1/D");   

  m_tree->Branch("tBuff2",   &tBuff2,    "tBuff2/D");   
  m_tree->Branch("xBuff2",   &xBuff2,    "xBuff2/D");   
  m_tree->Branch("yBuff2",   &yBuff2,    "yBuff2/D");   
  m_tree->Branch("zBuff2",   &zBuff2,    "zBuff2/D");   

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

reset all quantities

muon track length

MC truth for the first primary track

MC truth for the second primary track

Definition at line 176 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;
  
  pdgId_Trk1=0;

  t_Trk1=0;
  x_Trk1=0;
  y_Trk1=0;
  z_Trk1=0;

  e_Trk1=0;
  px_Trk1=0;
  py_Trk1=0;
  pz_Trk1=0;

  ke_Trk1=0;  // kinematic energy

  TrkLength_GD_Trk1=0;  // pathlength in GDLS
  TrkLength_iAV_Trk1=0; //            in inner AV
  TrkLength_LS_Trk1=0;  //            in LS
  TrkLength_oAV_Trk1=0; //            in outer AV
  TrkLength_Oil_Trk1=0; //            in oil

  pdgId_Trk2=0;

  t_Trk2=0;
  x_Trk2=0;
  y_Trk2=0;
  z_Trk2=0;

  e_Trk2=0;
  px_Trk2=0;
  py_Trk2=0;
  pz_Trk2=0;

  ke_Trk2=0;  // kinematic energy

  TrkLength_GD_Trk2=0;  // pathlength in GDLS
  TrkLength_iAV_Trk2=0; //            in inner AV
  TrkLength_LS_Trk2=0;  //            in LS
  TrkLength_oAV_Trk2=0; //            in outer AV
  TrkLength_Oil_Trk2=0; //            in oil

  number_opti_pho=0;

  // generation and capture info

  t_gen = 0.;
  x_gen = 0.;
  y_gen = 0.;
  z_gen = 0.;

  t_cap = 0.;
  x_cap = 0.;
  y_cap = 0.;
  z_cap = 0.;

  capTarget = 0;

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

Definition at line 261 of file ValidationTree.cc.

{
  m_tree->Fill();

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

Definition at line 268 of file ValidationTree.cc.

{
  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 68 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 78 of file ValidationTree.h.

Definition at line 80 of file ValidationTree.h.

Definition at line 81 of file ValidationTree.h.

Definition at line 82 of file ValidationTree.h.

Definition at line 83 of file ValidationTree.h.

Definition at line 85 of file ValidationTree.h.

Definition at line 86 of file ValidationTree.h.

Definition at line 87 of file ValidationTree.h.

Definition at line 88 of file ValidationTree.h.

Definition at line 90 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 95 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 102 of file ValidationTree.h.

Definition at line 103 of file ValidationTree.h.

Definition at line 104 of file ValidationTree.h.

Definition at line 105 of file ValidationTree.h.

Definition at line 107 of file ValidationTree.h.

Definition at line 108 of file ValidationTree.h.

Definition at line 109 of file ValidationTree.h.

Definition at line 110 of file ValidationTree.h.

Definition at line 112 of file ValidationTree.h.

Definition at line 115 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 122 of file ValidationTree.h.

Definition at line 123 of file ValidationTree.h.

Definition at line 124 of file ValidationTree.h.

Definition at line 125 of file ValidationTree.h.

Definition at line 127 of file ValidationTree.h.

Definition at line 129 of file ValidationTree.h.

Definition at line 130 of file ValidationTree.h.

Definition at line 131 of file ValidationTree.h.

Definition at line 132 of file ValidationTree.h.

Definition at line 134 of file ValidationTree.h.

Definition at line 135 of file ValidationTree.h.

Definition at line 136 of file ValidationTree.h.

Definition at line 137 of file ValidationTree.h.

Definition at line 138 of file ValidationTree.h.

Definition at line 141 of file ValidationTree.h.

Definition at line 143 of file ValidationTree.h.

Definition at line 144 of file ValidationTree.h.

Definition at line 145 of file ValidationTree.h.

Definition at line 146 of file ValidationTree.h.

Definition at line 148 of file ValidationTree.h.

Definition at line 149 of file ValidationTree.h.

Definition at line 150 of file ValidationTree.h.

Definition at line 151 of file ValidationTree.h.

Definition at line 153 of file ValidationTree.h.

Definition at line 155 of file ValidationTree.h.

Definition at line 156 of file ValidationTree.h.

Definition at line 157 of file ValidationTree.h.

Definition at line 158 of file ValidationTree.h.

Definition at line 160 of file ValidationTree.h.

Definition at line 161 of file ValidationTree.h.

Definition at line 162 of file ValidationTree.h.

Definition at line 163 of file ValidationTree.h.

Definition at line 164 of file ValidationTree.h.

Definition at line 167 of file ValidationTree.h.

double ValidationTree::wavelength_opti_pho[MaxOpticalPhoton]

Definition at line 168 of file ValidationTree.h.

Definition at line 171 of file ValidationTree.h.

Definition at line 172 of file ValidationTree.h.

Definition at line 173 of file ValidationTree.h.

Definition at line 174 of file ValidationTree.h.

Definition at line 176 of file ValidationTree.h.

Definition at line 177 of file ValidationTree.h.

Definition at line 178 of file ValidationTree.h.

Definition at line 179 of file ValidationTree.h.

TTree* ValidationTree::m_tree [private]

Definition at line 182 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:19:12 for DetSimValidation by doxygen 1.7.4