FairRoot/PandaRoot
Functions | Variables
anaLmdDigi.C File Reference
#include "TCanvas.h"

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gROOT LoadMacro ("Tools.C")
 
 rootlogon ()
 
timer Start ()
 
tree2 SetBranchAddress ("LMDPoint",&point)
 
tree SetBranchAddress ("LMDStripDigis",&digiStrip_array)
 
hisxy SetTitle ("LMD MC Points, X vs Y view;X (cm);X (cm)")
 
hisrz SetTitle ("LMD MC Point, rz view;z / cm;r/ cm")
 
hisde SetTitle ("Lmd MC Energy Loss; X / keV ; Y / count")
 
hisStripTop SetTitle ("FE numbers vs Channels counts; X / FE; Y / channel")
 
hisStripStrip SetTitle ("Strips on Front/Back side; X / channels; Y / count")
 
hisStripChargeTop SetLineColor (kBlue)
 
hisStripChargeBot SetLineColor (kRed)
 
 if (verbose)
 
can1 Divide (a, b)
 
can1 cd (1)
 
 DrawNice2DHisto (hisxy)
 
can1 cd (2)
 
gPad SetLogy ()
 
hisde DrawCopy ()
 
can1 cd (3)
 
 DrawNice2DHisto (hisStripTop)
 
can1 cd (4)
 
 DrawNice2DHisto (hisStripBot)
 
can1 cd (5)
 
can1 cd (6)
 
hisStripChargeTop DrawCopy ("sames")
 
can1 Update ()
 
 BetterStatBox (mypad)
 
timer Stop ()
 

Variables

int nEvents = 1e4
 
bool verbose = false
 
TStopwatch timer
 
std::string inFile = "/private/huagen/simdata/Lmd_DPM_elastic_6.2_1.9mrad_5M_1.root"
 
std::string digiFile = "/private/huagen/simdata/Lmd_Digi_DPM_elastic_6.2_1.9mrad_5M_1.root"
 
std::string parfile = "/private/huagen/simdata/LmdParams.root"
 
TFile * Digis = new TFile(digiFile.c_str(),"READ")
 
TTree * tree =(TTree *) Digis->Get("pndsim")
 
TFile * MCPoint = new TFile(inFile.c_str(),"READ")
 
TTree * tree2 = (TTree*)MCPoint->Get("pndsim")
 
TClonesArray * point =new TClonesArray("PndSdsMCPoint")
 
TClonesArray * digiStrip_array =new TClonesArray("PndSdsDigiStrip")
 
TH2D * hisxy = new TH2D("hisxy","",100,-10.,10.,100,-10.,10.)
 
TH2D * hisrz = new TH2D("hisrz","",100,1070.,1150.,100,1070.,1150.)
 
TH1D * hisde = new TH1D("hisde","LMD MC Points, Energyloss",1000,0.,1000)
 
TH2I * hisStripTop = new TH2I("StripFront","Strip Front channel & front end numbers",20,0,40,130,0,130)
 
TH2I * hisStripBot = new TH2I("StripBack","Strip Back channel & front end numbers",20,0,40,130,0,130)
 
TH1I * hisStripStrip = new TH1I("hisstripstrip","Strip numbers",2330,-10,4650)
 
TH1D * hisStripCharge = new TH1D("StripChargeTotal","Strip Charge content",1000,0.,2.5e5)
 
TH1D * hisStripChargeTop = new TH1D("StripChargeFront","Strip Charge content",1000,0.,2.5e5)
 
TH1D * hisStripChargeBot = new TH1D("StripChargeBack","Strip Charge content",1000,0.,2.5e5)
 
TVector3 vecmc
 
TVector3 mommc
 
Double_t tmpx
 
Double_t tmpy
 
Double_t tmpz
 
TVector2 locals
 
TVector2 localmc
 
TVector2 localdiff
 
int col
 
int row
 
int fe
 
double x
 
double y
 
double X =0
 
double Y =0
 
double Z =0
 
double de =0
 
TFile * parDB = new TFile(parfile.c_str())
 
PndSdsStripDigiParpar = (PndSdsStripDigiPar*)gROOT->FindObject("LmdStripDigiParTrap")
 
int nrFeChannels = 128
 
int nrStrips = 1280
 
Int_t a = 2
 
Int_t b = 3
 
TCanvas * can1 = new TCanvas("Lmd MC point & Digis Plot","MCHit view in LMD",0,0,2*400,2*400)
 
TPad * mypad =0
 
Double_t rtime = timer.RealTime()
 
Double_t ctime = timer.CpuTime()
 

Function Documentation

BetterStatBox ( mypad  )

Referenced by anaclust().

can1 cd ( )
can1 cd ( )
can1 cd ( )
can1 cd ( )
can1 cd ( )
can1 cd ( )
can1 Divide ( a  ,
b   
)
hisde DrawCopy ( )
hisStripChargeBot DrawCopy ( "sames"  )
DrawNice2DHisto ( hisxy  )
DrawNice2DHisto ( hisStripTop  )
DrawNice2DHisto ( hisStripBot  )
if ( verbose  )

Definition at line 77 of file anaLmdDigi.C.

References col, de, PndSdsDigiStrip::GetChannel(), PndSdsDigi::GetCharge(), PndSdsDigi::GetFE(), PndSdsMCPoint::GetPosition(), i, strip, Y, and Z.

77  :"<< nrFeChannels<<","<<nrStrips<<endl;
78 
79  for (Int_t j=0; j<nEvents&&j<tree->GetEntriesFast(); j++)
80  {
81  if(verbose) std::cout<< "the number of "<< j <<"event is been processed"<<std::endl;
82  tree->GetEntry(j);
83  tree2->GetEntry(j);
84  if(verbose) cout<<"Event No "<<j<<endl;
85 
86  // ----- MC Points -----
87  for (Int_t i=0; i<point->GetEntriesFast(); i++)
88  {
89  if(verbose) cout<<"Point No "<<i<<endl;
90  PndSdsMCPoint *Mypoint=(PndSdsMCPoint*)point->At(i);
91  X = Mypoint->GetPosition().X();
92  Y = Mypoint->GetPosition().Y();
93  Z = Mypoint->GetPosition().Z();
94  hisxy->Fill(X,Y);
95  de = Mypoint->GetEnergyLoss()*1000000;
96  // de = Mypoint->GetEnergyLoss();
97  hisde->Fill(de);
98  if(verbose) cout<<"the energy loss is "<<de<<endl;
99  }
100 
101  // ----- STRIP DIGIS -----
102  for (Int_t i=0; i<digiStrip_array->GetEntriesFast(); i++)
103  {
104  PndSdsDigiStrip *stripdigi = digiStrip_array->At(i);
105  fe = stripdigi->GetFE();
106  col = stripdigi->GetChannel();
107  // std::cout<<"the fe and channel are:"<<fe<<","<<col<<std::endl;
108 
109  int strip = fe * nrFeChannels + col;
110  hisStripStrip->Fill(strip);
111  hisStripCharge->Fill(stripdigi->GetCharge());
112  // std::cout<<"the strip charge is :"<<stripdigi->GetCharge()<<std::endl;
113 
114  if (strip <= nrStrips)
115  {
116  hisStripTop->Fill(fe,col);
117  hisStripChargeTop->Fill(stripdigi->GetCharge());
118  } else {
119  hisStripBot->Fill(fe,col);
120  hisStripChargeBot->Fill(stripdigi->GetCharge());
121  }
122  }
123 
124  }// end for j (events)
int strip
Definition: anaMvdDigi.C:135
static int is
Definition: ranlxd.cxx:374
int fe
Definition: anaLmdDigi.C:67
Double_t energy
Definition: plot_dirc.C:15
gROOT LoadMacro ( "Tools.C"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
rootlogon ( )

Definition at line 1 of file outdated/mpiTools/macros/emc/rootlogon.C.

2 {
3  gSystem->AddIncludePath("-I$VMCWORKDIR/emc");
4  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcDigi");
5  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcMC");
6  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcTools");
7  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcReco");
8  gSystem->AddIncludePath("-I$VMCWORKDIR/emc/EmcData");
9  gSystem->AddIncludePath("-I$VMCWORKDIR/pnddata");
10  gSystem->AddIncludePath("-I$VMCWORKDIR/base");
11  gROOT->LoadMacro("$VMCWORKDIR/gconfig/basiclibs.C");
12  basiclibs();
13 
14  gSystem->Load("libDpmEvtGen.so");
15  gSystem->Load("libGeoBase");
16  gSystem->Load("libParBase");
17  gSystem->Load("libBase");
18  gSystem->Load("libTrkBase");
19  gSystem->Load("libPndData");
20  gSystem->Load("libField");
21  gSystem->Load("libPassive");
22  gSystem->Load("libGen");
23  gSystem->Load("libPGen");
24  gSystem->Load("libEmc");
25 
26  delete gRandom;
27  gRandom=new TRandom3(0);
28 }
basiclibs()
tree2 SetBranchAddress ( "LMDPoint"  ,
point 
)
tree SetBranchAddress ( "LMDStripDigis"  ,
digiStrip_array 
)
fHChgFake SetLineColor ( kBlue  )
hisStripChargeBot SetLineColor ( kRed  )
gPad SetLogy ( )
hisxy SetTitle ( "LMD MC  Points,
X vs Y view;X(cm);X(cm)"   
)
hisrz SetTitle ( "LMD MC  Point,
rz view;z/cm;r/cm  
)
hisde SetTitle ( "Lmd MC Energy Loss; X / keV ; Y / count )
hisStripBot SetTitle ( "FE numbers vs Channels counts; X / FE; Y / channel"  )
hisStripStrip SetTitle ( "Strips on Front/Back side; X / channels; Y / count )
timer Start ( )
timer Stop ( )
can1 Update ( )

Variable Documentation

Int_t a = 2

Definition at line 126 of file anaLmdDigi.C.

Referenced by PndGemDigitize::ActivateChannel(), PndStack::AddPoint(), anaclust(), PndTrkTrackFinder::Apollonius(), PndFtsLineApproximator::approxInnerLine(), PndFtsLineApproximator::approxOuterLine(), PndTrkCTGeometryCalculations::CalculateCircleThru3Points(), PndHypGeSpectrumAnalyser::Calibrate(), PndGemMonitor::ChannelLastActiveAt(), PndLmdCalStrip::ChargeDiffusion(), PndMvdRiemannVertexFinderTask::CheckRecoTrack(), PndMvdRiemannTrackFinderTaskEff::CheckRecoTrack(), PndTrkTrackFinder::CircleBy3Points(), PndTrackCombiner::combine(), PndFsmSttPid::compdEdx(), PndFsmMvd::compdEdx(), PndFsmStt::compdEdx(), PndFsmEffTracker::compdEdx(), GeCluster::CreateCluster(), PndFtsLineApproximator::createExpandedTrackCand(), createRootGeometry_DIRC(), createRootGeometry_DIRC_fsEVdroplens_MCPs(), createRootGeometry_DIRC_sepEV_06_2013(), createRootGeometry_DIRC_sepEV_MCPs(), createRootGeometry_DIRC_updated_06_2013(), PndGemMonitor::CreateSensorMonitor(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), PndTrkTrackFinder::CreateSkewHitList(), DrawOriginTrackLipse(), PndFTSCADisplay::DrawTPC(), PndGemMonitor::EnableCluster(), PndGemMonitor::EnableDigi(), PndSttHelixHitProducer::Exec(), PndGemFindHitsQA::Exec(), PndEmcMakeDigi::Exec(), PndTrkTrackFinder::Exec(), PndBarrelTrackFinder::ExtractMeanZ_PFromTrack(), F32vec4::F32vec4(), F64vec1::F64vec1(), PndStack::FillTrackArray(), PndTrkCTGeometryCalculations::FindingParallelTrackAngularRange(), PndTrkCTGeometryCalculations::FindingParallelTrackAngularRange2(), PndBarrelTrackFinder::FindInterestingRegions(), PndTrkCTGeometryCalculations::FindIntersectionsOuterCircle(), PndSttTrackFinderReal::FindIntersectionsOuterCircle(), PndDrcTimeDigiTask::FindOutPoint(), PndDrcHitProducerReal::FindOutPoint(), PndDrcRecoLookupMapS::FindOutPoint(), PndDrcRecoLookupMap::FindOutPoint(), PndDrc::FindOutPoint(), PndTrkCTGeometryCalculations::FindTrackEntranceExitHexagonCircleLeft(), PndSttTrackFinderReal::FindTrackEntranceExitHexagonCircleLeft(), PndTrkCTGeometryCalculations::FindTrackEntranceExitHexagonCircleLeft2(), PndTrkCTGeometryCalculations::FindTrackEntranceExitHexagonCircleRight(), PndSttTrackFinderReal::FindTrackEntranceExitHexagonCircleRight(), PndTrkCTGeometryCalculations::FindTrackEntranceExitHexagonCircleRight2(), PndSttMvdGemTracking::Fit(), fit1(), fit2(), PndWayFollower::followLines(), G__get_sizep2memfuncCbmPlaneDict(), gem_material_ana1(), KFParticle::GetAngle(), KFParticleSIMD::GetAngle(), KFParticle::GetAngleRZ(), KFParticleSIMD::GetAngleRZ(), KFParticle::GetAngleXY(), KFParticleSIMD::GetAngleXY(), PndSttHitProducerIdeal::GetClostestApproachToWire(), PndFtsHitProducerIdeal::GetClostestApproachToWire(), RhoKinVtxFitter::GetCovariance(), RhoKinHyperonVtxFitter::GetCovariance(), PndCATrackParam::GetDCAPoint(), PndCATrackParamVector::GetDCAPoint(), PndFTSCATrackParam::GetDCAPoint(), PndFTSCATrackParamVector::GetDCAPoint(), KFParticleBase::GetDStoParticleBy(), KFParticleBaseSIMD::GetDStoParticleBy(), KFParticleBase::GetDStoParticleBz(), KFParticleBaseSIMD::GetDStoParticleBz(), KFParticleBase::GetDStoPointBy(), KFParticleBaseSIMD::GetDStoPointBy(), KFParticleBase::GetDStoPointBz(), KFParticleBaseSIMD::GetDStoPointBz(), KFParticleBase::GetEta(), KFParticleBaseSIMD::GetEta(), PndSttHelixTrackFitter::GetHoughResponse(), PndSttHelixTrackFitter::GetHoughResponseThroughOrigin(), PndEmcCluster::GetMcList(), PndDrcDigiPar::GetParamsForPixel(), PndTrackCollection::getPndTrack(), RhoVtxPoca::GetPocaChargedToNeutral(), RhoVtxPoca::GetPocaTwoNeutral(), RhoVtxPoca::GetPocaVtx(), PndSdsTotChargeConversion::GetRelativeError(), PndFtsCellTrackletGenerator::getRotationMatrix(), PndFtsLineApproximator::getRotationMatrix(), PndAnalysis::GetTrack(), PndSttTrackFinderIdeal::GetTrackletCircular(), PndFtsHoughTrackCand::getXLabForParabola(), PndFsmTrack::HelixRep(), PndSttHelixTrackFitter::Hough(), PndSttHelixTrackFitter::HoughThroughOrigin(), PndTrkCTGeometryCalculations::IntersectionCircle_Segment(), PndSttTrackFinderReal::IntersectionCircle_Segment(), PndTrkCTGeometryCalculations::IntersectionCircle_Segment_forScitil(), PndTrkCTGeometryCalculations::IntersectionsWithClosedbiHexagonLeft(), PndSttTrackFinderReal::IntersectionsWithClosedbiHexagonLeft(), PndTrkCTGeometryCalculations::IntersectionsWithClosedbiHexagonRight(), PndSttTrackFinderReal::IntersectionsWithClosedbiHexagonRight(), PndTrkCTGeometryCalculations::IntersectionsWithClosedPolygon(), PndSttTrackFinderReal::IntersectionsWithClosedPolygon(), PndLineApproximation::linearRegression(), MakeHoughParabolaFitwithBfield(), PndGemFindHits::MakeSets(), PndBarrelTrackFinder::MatchSkewedSttHitTT(), materialana(), mz_linear_extrapolation(), mz_pp_to_pipi_get_costheta_lattice_site(), mz_pp_to_pipi_sigma(), mzrnd(), novosibirsk_fcn(), TTracksCatCounters< int >::operator+(), operator<<(), PndCAInternal::ArrayBase< T, 2 >::operator[](), PndFTSInternal::ArrayBase< T, 2 >::operator[](), PndFTSInternal::ArrayBase< T, 3 >::operator[](), PndCAInternal::ArrayBase< T, 3 >::operator[](), RhoCalculationTools::P6FromTrajectory(), PndDpmDirect::PndDpmDirect(), PndMvdCalcTot::PndMvdCalcTot(), PndMvdRecoCharge::PndMvdRecoCharge(), PndSttTrackFinderReal::PndSttFindingParallelTrackAngularRange(), PndSttTrackFinderReal::PndSttTrkFindCircles(), PndMvdDigiAna::PrintHistograms(), propagate(), PndFsmTrack::Propagate(), PndEmcPSAFPGAIntegratingAnalyser::put(), PndEmcPSAFPGADigitalFilterAnalyser::put(), PndEmcPSAFPGAPileupAnalyser::put(), QAmacro_mvd_ana(), PndRiemannTrack::r(), PndRestGas::ReadDD(), RhoKinVtxFitter::ReadKinMatrix(), RhoKinHyperonVtxFitter::ReadKinMatrix(), RhoKinVtxFitter::ReadMassKinMatrix(), RhoKinFitter::ReadMassKinMatrix(), RhoKinHyperonVtxFitter::ReadMassKinMatrix(), PndTrackCollection::refitAllTracks(), PndAnalysis::ResetDaughters(), RhoSimpleVertexSelector::RhoSimpleVertexSelector(), PndForwardTrackFinderTask::saveTrackCollection(), PndStack::SelectTracks(), PndPmtPoormantracks::SetDTheta(), KFParticleBase::SetMassConstraint(), KFParticleBaseSIMD::SetMassConstraint(), PndFtsLineComparator::setMaxAngle(), PndPmtPoormantracks::SetNumTrk(), RhoKinVtxFitter::SetOutput(), RhoKinFitter::SetOutput(), RhoKinHyperonVtxFitter::SetOutput(), PndMvdCalcTot::SetParameter(), PndPmtPoormantracks::SetPid(), PndPmtPoormantracks::SetSeed(), PndPmtPoormantracks::SetSigP(), PndPmtPoormantracks::SetSigV(), PndSttMvdGemTracking::SetupGEMPlanes(), PndPmtPoormantracks::SetVerbose(), PndRiemannHit::setXYZ(), RhoError::Similarity(), RhoKinHyperonVtxFitter::TransportToPoca(), RhoKinVtxFitter::TransportToVertex(), RhoKinHyperonVtxFitter::TransportToVertex(), RhoCalculationTools::TransportToZ(), VarCorrP(), PndLmdAlignManager::verboseLevel(), PndSttHelixTrackFitter::XYFit(), PndSttHelixTrackFitter::ZFinder(), and PndSttHelixTrackFitter::ZFinderThroughOrigin().

Int_t b = 3

Definition at line 126 of file anaLmdDigi.C.

TCanvas* can1 = new TCanvas("Lmd MC point & Digis Plot","MCHit view in LMD",0,0,2*400,2*400)

Definition at line 128 of file anaLmdDigi.C.

int col

Definition at line 67 of file anaLmdDigi.C.

Referenced by PndSdsCalcFePixel::CalcFEHits(), PndSdsCalcPixel::CalcStartPixel(), RhoTuple::ClearData(), confgraph(), PndSdsCalcPixel::ConvertPixels(), DecayTreeFitter::FitParams::cov(), PndRiemannHit::covX(), createRootGeoFileFwEndCap_2011(), PndEmcStructure::crystal_name_analysis(), PndFTSCADisplay::DrawGBHits(), DrawText(), RhoTuple::DumpData(), emc_module4_StraightGeo24_ste(), PndMvdDigiPixelDraw::Exec(), PndLmdNoiseProducer::Exec(), PndMvdNoiseProducer::Exec(), PndSdsNoiseProducer::Exec(), PndMQSdsChargeWeightedPixelMapping::GetCluster(), PndSdsChargeWeightedPixelMapping::GetCluster(), PndMvdTopixHitProducer::GetHit(), PndMQTopixHitProducer::GetHit(), PndLmdPairFinderTask::getPixelHitFromSdsHit(), PndSdsCalcPixel::GetPixels(), PndSdsCalcPixelDif::GetPixels(), TRepMat::GetSet(), if(), DecayTreeFitter::KalmanCalculator::init(), DecayTreeFitter::InteractionPoint::initCov(), MatrixOutput(), operator>>(), PndEmcMapperGeo3RootV2::PndEmcMapperGeo3RootV2(), ReadMainzProto60v4::PrintEvent(), ReadMainzProto60v6::PrintEvent(), PndEmc::ProcessHits(), DecayTreeFitter::InteractionPoint::projectBeamConstraint(), DecayTreeFitter::InteractionPoint::projectIPConstraint(), DecayTreeFitter::RecoComposite::projectRecoComposite(), DecayTreeFitter::RecoTrack::projectRecoConstraint(), DecayTreeFitter::FitParams::resetCov(), PndMvdEventAna::SetCanvasColumns(), PndSdsPixel::SetCol(), PndMvdTopixClusterFinder::SetMaxCols(), PndMvdPixelClusterFinder::SetMaxCols(), PndSdsSimplePixelClusterFinder::SetMaxCols(), PndSdsDigiPixel::SetPixelColumn(), PndSimpleAnalysis::SetupAnalysis(), RhoLorentzVectorErr::Transform(), DecayTreeFitter::Fitter::updateCand(), DecayTreeFitter::KalmanCalculator::updateCov(), and DecayTreeFitter::Projection::Vfast().

Double_t ctime = timer.CpuTime()

Definition at line 181 of file anaLmdDigi.C.

double de =0
std::string digiFile = "/private/huagen/simdata/Lmd_Digi_DPM_elastic_6.2_1.9mrad_5M_1.root"

Definition at line 19 of file anaLmdDigi.C.

TFile* Digis = new TFile(digiFile.c_str(),"READ")

Definition at line 22 of file anaLmdDigi.C.

TClonesArray* digiStrip_array =new TClonesArray("PndSdsDigiStrip")

Definition at line 32 of file anaLmdDigi.C.

Referenced by anaclust(), and QAmacro_mvd_ana().

int fe
TH1D* hisde = new TH1D("hisde","LMD MC Points, Energyloss",1000,0.,1000)

Definition at line 44 of file anaLmdDigi.C.

Referenced by ana_MCOpt(), ana_MCpid(), anaclust(), and anaGemPointrate().

TH2D* hisrz = new TH2D("hisrz","",100,1070.,1150.,100,1070.,1150.)
TH2I* hisStripBot = new TH2I("StripBack","Strip Back channel & front end numbers",20,0,40,130,0,130)

Definition at line 50 of file anaLmdDigi.C.

TH1D* hisStripCharge = new TH1D("StripChargeTotal","Strip Charge content",1000,0.,2.5e5)

Definition at line 56 of file anaLmdDigi.C.

TH1D* hisStripChargeBot = new TH1D("StripChargeBack","Strip Charge content",1000,0.,2.5e5)

Definition at line 60 of file anaLmdDigi.C.

TH1D* hisStripChargeTop = new TH1D("StripChargeFront","Strip Charge content",1000,0.,2.5e5)

Definition at line 58 of file anaLmdDigi.C.

TH1I* hisStripStrip = new TH1I("hisstripstrip","Strip numbers",2330,-10,4650)

Definition at line 53 of file anaLmdDigi.C.

TH2I* hisStripTop = new TH2I("StripFront","Strip Front channel & front end numbers",20,0,40,130,0,130)

Definition at line 48 of file anaLmdDigi.C.

TH2D* hisxy = new TH2D("hisxy","",100,-10.,10.,100,-10.,10.)
std::string inFile = "/private/huagen/simdata/Lmd_DPM_elastic_6.2_1.9mrad_5M_1.root"

Definition at line 18 of file anaLmdDigi.C.

TVector2 localdiff

Definition at line 66 of file anaLmdDigi.C.

Referenced by QAmacro_mvd_ana().

TVector2 localmc

Definition at line 66 of file anaLmdDigi.C.

Referenced by QAmacro_mvd_ana().

TVector2 locals

Definition at line 66 of file anaLmdDigi.C.

Referenced by QAmacro_mvd_ana().

TFile* MCPoint = new TFile(inFile.c_str(),"READ")
TVector3 mommc

Definition at line 64 of file anaLmdDigi.C.

Referenced by anaclust(), PndPmtTask::Exec(), poormantracks(), and QAmacro_mvd_ana().

mypad =0

Definition at line 130 of file anaLmdDigi.C.

int nEvents = 1e4

Definition at line 5 of file anaLmdDigi.C.

int nrFeChannels = 128

Definition at line 75 of file anaLmdDigi.C.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

int nrStrips = 1280

Definition at line 76 of file anaLmdDigi.C.

Referenced by PndLmdCalStrip::PndLmdCalStrip().

PndSdsStripDigiPar* par = (PndSdsStripDigiPar*)gROOT->FindObject("LmdStripDigiParTrap")

Definition at line 71 of file anaLmdDigi.C.

TFile* parDB = new TFile(parfile.c_str())

Definition at line 70 of file anaLmdDigi.C.

std::string parfile = "/private/huagen/simdata/LmdParams.root"

Definition at line 20 of file anaLmdDigi.C.

TClonesArray* point =new TClonesArray("PndSdsMCPoint")

Definition at line 29 of file anaLmdDigi.C.

int row

Definition at line 67 of file anaLmdDigi.C.

Referenced by PndSdsNoiseProducer::AddDigiPixel(), PndSttTubeIdMap::AddTube(), PndSdsCalcFePixel::CalcFEHits(), PndSdsCalcPixel::CalcStartPixel(), PndEmcApd::ConstructASCIIGeometry(), PndEmc::ConstructASCIIGeometry(), PndSdsCalcPixel::ConvertPixels(), DecayTreeFitter::FitParams::cov(), PndRiemannHit::covX(), createRootGeoFileFwEndCap_2011(), PndSttTubeIdMapCreatorRoot::CreateTubeMap(), PndSttTubeMapCreatorRoot::CreateTubeMap(), PndEmcStructure::crystal_name_analysis(), PndLmdDim::Decode_hit(), emc_module4_StraightGeo24_ste(), PndMvdDigiPixelDraw::Exec(), PndLmdNoiseProducer::Exec(), PndMvdNoiseProducer::Exec(), PndSdsNoiseProducer::Exec(), PndSttStrawMap::GenerateStrawMap(), PndSttGeometryMap::GenerateStrawMapAngleGeoType1(), PndMQSdsChargeWeightedPixelMapping::GetCluster(), PndSdsChargeWeightedPixelMapping::GetCluster(), PndEmcMapper::GetDetId(), PndMvdTopixHitProducer::GetHit(), PndMQTopixHitProducer::GetHit(), PndSttNeighborhoodCreator::GetListOfSectorRowsToCompare(), PndEmcReader::GetMaxRows(), PndEmcReader::GetMinRows(), PndSttTubeIdMap::GetNTubesInRow(), PndLmdPairFinderTask::getPixelHitFromSdsHit(), PndSdsCalcPixel::GetPixels(), PndSdsCalcPixelDif::GetPixels(), PndSttTubeIdMap::GetRowInSector(), TRepMat::GetSet(), PndSttTubeIdMap::GetTube(), DecayTreeFitter::KalmanCalculator::init(), DecayTreeFitter::RecoPhoton::initCov(), DecayTreeFitter::InteractionPoint::initCov(), DecayTreeFitter::RecoTrack::initCov(), DecayTreeFitter::ParticleBase::initCov(), DecayTreeFitter::RecoResonance::initPar1(), DecayTreeFitter::InternalParticle::initPar1(), DecayTreeFitter::RecoComposite::initPar1(), DecayTreeFitter::InteractionPoint::initPar1(), PndSttTubeIdMap::IsSkewed(), MatrixOutput(), operator>>(), DecayTreeFitter::FitParams::par(), PndEmcMapperGeo12Dat::PndEmcMapperGeo12Dat(), PndEmcMapperGeo12Root::PndEmcMapperGeo12Root(), PndEmcMapperGeo3Dat::PndEmcMapperGeo3Dat(), PndEmcMapperGeo3Root::PndEmcMapperGeo3Root(), PndEmcMapperGeo3RootV2::PndEmcMapperGeo3RootV2(), PndEmcMapperGeo4Dat::PndEmcMapperGeo4Dat(), PndEmcMapperGeo4Root::PndEmcMapperGeo4Root(), PndEmcMapperGeo4RootV2::PndEmcMapperGeo4RootV2(), PndEmcMapperGeo5Dat::PndEmcMapperGeo5Dat(), PndEmcMapperGeo5Root::PndEmcMapperGeo5Root(), PndEmcMapperGeo6Dat::PndEmcMapperGeo6Dat(), PndEmcMapperGeoProto60Root::PndEmcMapperGeoProto60Root(), PndEmcStructure::PndEmcStructure(), DecayTreeFitter::FitParams::print(), ReadMainzProto60v6::PrintEvent(), ReadMainzProto60v4::PrintEvent(), DecayTreeFitter::InteractionPoint::projectBeamConstraint(), DecayTreeFitter::ParticleBase::projectGeoConstraint(), DecayTreeFitter::InteractionPoint::projectIPConstraint(), DecayTreeFitter::RecoComposite::projectRecoComposite(), DecayTreeFitter::RecoTrack::projectRecoConstraint(), PndFTSCAClusterData::readEvent(), DecayTreeFitter::FitParams::resetCov(), DecayTreeFitter::FitParams::resetPar(), PndMvdPixelClusterFinder::SetMaxRows(), PndMvdTopixClusterFinder::SetMaxRows(), PndSdsSimplePixelClusterFinder::SetMaxRows(), PndSdsDigiPixel::SetPixelRow(), PndSdsPixel::SetRow(), PndEmcApdPoint::SetRow(), PndEmcPoint::SetRow(), DecayTreeFitter::FitParams::testCov(), RhoLorentzVectorErr::Transform(), DecayTreeFitter::Fitter::updateCand(), and DecayTreeFitter::KalmanCalculator::updateCov().

Double_t rtime = timer.RealTime()

Definition at line 180 of file anaLmdDigi.C.

TStopwatch timer

Definition at line 15 of file anaLmdDigi.C.

Double_t tmpx

Definition at line 65 of file anaLmdDigi.C.

Referenced by PndBarrelTrackFinder::CalcZ_P().

Double_t tmpy

Definition at line 65 of file anaLmdDigi.C.

Referenced by PndBarrelTrackFinder::CalcZ_P().

Double_t tmpz

Definition at line 65 of file anaLmdDigi.C.

TTree* tree =(TTree *) Digis->Get("pndsim")

Definition at line 23 of file anaLmdDigi.C.

TTree* tree2 = (TTree*)MCPoint->Get("pndsim")

Definition at line 26 of file anaLmdDigi.C.

TVector3 vecmc

Definition at line 64 of file anaLmdDigi.C.

bool verbose = false

Definition at line 6 of file anaLmdDigi.C.

double x

Definition at line 68 of file anaLmdDigi.C.

double X =0

Definition at line 68 of file anaLmdDigi.C.

Referenced by PndLmdStripClusterTask::AddMSErr(), PndRadMapBoxMesh::CalcFluence(), RhoFindOmittedParticle::ClosestFit(), PndFsmSttPid::compdEdx(), PndFsmStt::compdEdx(), PndFsmMvd::compdEdx(), PndFsmEffTracker::compdEdx(), PndTrkCluster::ComputeCircle(), ConvertTrackParamToVector(), CreateAlveoleShapesAndMatricesZ(), PndTrkLegendreSecTask::CreateSkewHitList(), PndTrkLegendreTask::CreateSkewHitList(), PndTrkLegendreSecTask2::CreateSkewHitList(), RhoVector3Err::DetermineChisq(), RhoLorentzVectorErr::DetermineChisq(), GFMaterialEffects::effects(), GFMaterialEffects::energyLossBrems(), PndMvdDigiPixelDraw::Exec(), RKTrackRep::extrapolate(), PndTrkCTFindTrackInXY::FindTrackInXYProjection(), PndSttTrackFinderReal::FindTrackInXYProjection(), fixForMctester(), PndFsmTrack::HelixRep(), PndFTSCAGBTracker::IdealTrackFinder(), PndFTSCAGBTracker::InitialTrackApproximation(), PndFtsTube::IsSkew(), makeIni4Vector(), online_monitoring_studies(), PlotMCTracks(), PlotMCTracksPrintBField(), PndCAFixedArray< T, Size, alignment >::PndCAFixedArray(), PndEmcApdHit::PndEmcApdHit(), PndEmcHit::PndEmcHit(), PndFTSFixedArray< T, Size, alignment >::PndFTSFixedArray(), PndSttTrackFinderReal::PndSttTrkFindCircles(), RhoLorentzVectorErr::PrintOn(), prod_ana(), prod_fsim(), prod_sim(), quickana(), quickfsimana(), ReadLines(), runMC_dpm(), chigen::models::ColorSingletPartonicModel::setKin(), chigen::models::ColorSingletPartonicModel::setTrialKin(), PndSimpleAnalysis::SetupAnalysis(), simfast_dpm(), simfast_dpm_cmp(), GFMaterialEffects::stepper(), PndTrkCleanup::Track_Crosses_MvdMiniDisk_withMargin(), PndRadMapBoxMesh::Transform(), tut_fastsim(), PndGiBuuGenerator::WriteoutDecayParticle(), ZeeAnalysis(), ZmumuAnalysis(), and ZtautauAnalysis().

double Y =0
double y

Definition at line 68 of file anaLmdDigi.C.

double Z =0

Definition at line 68 of file anaLmdDigi.C.

Referenced by analyse_etac1(), analyse_etac1_slc(), analyse_J(), analyse_J_slc(), analyse_phi_base(), PndRadMapBoxMesh::CalcFluence(), RhoFindOmittedParticle::ClosestFit(), PndFsmSttPid::compdEdx(), PndFsmMvd::compdEdx(), PndFsmStt::compdEdx(), PndFsmEffTracker::compdEdx(), CreateAlveoleShapesAndMatricesZ(), RhoVector3Err::DetermineChisq(), RhoLorentzVectorErr::DetermineChisq(), PndGemTrackFinderIdeal::DoFind(), PndSttTrackFinderReal::DoFind(), PndTrkTracking2::EliminateSpuriousSZ_bis(), PndTrkTracking2::EliminateSpuriousSZ_ter(), PndMvdDigiPixelDraw::Exec(), PndFtsDataAccessor::Exec(), PndTrkLegendreSecTask::Exec(), PndTrkLegendreTask::Exec(), PndTrkLegendreSecTask2::Exec(), PndTrkTracking2::Exec(), RKTrackRep::extrapolate(), for(), PndSciTAnaIdeal::GetChargeIon(), PndHypIdealPRTask::GetChargeIon(), PndHypDPatternRecoTask::GetChargeIon(), HypStatDecay::GetFragment(), PndHypSimpleAna::GetIonCharge(), PndHypFullAna::GetIonCharge(), PndHypFullIdealAna::GetIonCharge(), PndFTSCAGBTracker::IdealTrackFinder(), if(), PndFTSCAGBTracker::InitialTrackApproximation(), PndSttTube::IsParallel(), MeanExcEnergy_get(), PndFtsCATracking::NonReconstructableEvent(), PlotMCTracks(), PlotMCTracksPrintBField(), PndCAFixedArray< T, Size, alignment >::PndCAFixedArray(), PndEmcApdHit::PndEmcApdHit(), PndEmcHit::PndEmcHit(), PndFTSFixedArray< T, Size, alignment >::PndFTSFixedArray(), RhoLorentzVectorErr::PrintOn(), ReadHCal(), PndFtfDirect::Setup(), THParticle::THParticle(), PndRadMapBoxMesh::Transform(), PndGiBuuGenerator::WriteoutDecayParticle(), ZeeAnalysis(), ZmumuAnalysis(), and ZtautauAnalysis().