FairRoot/PandaRoot
Macros | Functions
PndRadMapBoxMesh.cxx File Reference
#include "PndRadMapBoxMesh.h"
#include <TMath.h>
#include <TFile.h>
#include <TObjArray.h>
#include <TObjString.h>
#include <iostream>
#include <iomanip>
#include <utility>
#include <G4UnitsTable.hh>
#include "PndRadMapPlane.h"

Go to the source code of this file.

Macros

#define verbose   true
 

Functions

bool momentumfilter (TVector3 mom, TVector3 diff)
 
void InvMatVecProd (TMatrixD mat, TVector3 vec, TVector3 &res)
 

Macro Definition Documentation

#define verbose   true

Definition at line 15 of file PndRadMapBoxMesh.cxx.

Referenced by AllNeutronAnalysis(), AllNeutronAnalysis_job(), AllNeutronAnalysis_job_edit(), ana_MCOpt(), ana_MCpid(), anaclust(), anaDMesonsCharged(), anaGemPointrate(), anaGemSmearing(), AnalyseThetaRadiusCorrelation(), anaRadLength(), PndRadMapBoxMesh::CalcFluence(), CheckCRC(), CheckFrameCount(), CheckHitCount(), digi(), DrawField(), DrawHits::DrawHits(), emc_reco(), PndLmdPerformanceTask::Exec(), GammaSpectraAnalysis_CableTest(), GammaSpectraAnalysis_NoH(), GammaSpectraAnalysis_NoH_Split(), gem_material_ana1(), hit(), MakeHoughParabolaFitwithBfield(), materialana(), PndAnalysis::MctMatch(), NeutronAnalysis(), NeutronAnalysis_COSY(), NeutronAnalysis_COSY_CrossSec(), NeutronAnalysis_COSY_edit(), PastaTBRawToRoot(), PlotMCTracks(), PlotMCTracksPrintBField(), PndDrcDigiTask::PndDrcDigiTask(), PndDrcHitProducerIdeal::PndDrcHitProducerIdeal(), PndDrcLutFill::PndDrcLutFill(), PndDrcLutReco::PndDrcLutReco(), PndDrcRecoLookupMap::PndDrcRecoLookupMap(), PndDrcRecoLookupMapS::PndDrcRecoLookupMapS(), PndDrcTimeDigiTask::PndDrcTimeDigiTask(), PndDskFLGHitProducerIdeal::PndDskFLGHitProducerIdeal(), PndEmcMultiWaveformToCalibratedDigi::PndEmcMultiWaveformToCalibratedDigi(), PndEmcTmpWaveformToDigi::PndEmcTmpWaveformToDigi(), PndEmcWaveformToCalibratedDigi::PndEmcWaveformToCalibratedDigi(), PndEvtGenDirect::PndEvtGenDirect(), PndLmdChargeWeightedPixelMapping::PndLmdChargeWeightedPixelMapping(), PndLmdSimplePixelClusterFinder::PndLmdSimplePixelClusterFinder(), PndMixBackgroundEvents::PndMixBackgroundEvents(), PndMQMvdChargeWeightedPixelMapping::PndMQMvdChargeWeightedPixelMapping(), PndMvdChargeWeightedPixelMapping::PndMvdChargeWeightedPixelMapping(), PndMvdSimplePixelClusterFinder::PndMvdSimplePixelClusterFinder(), PndPhoGunShort::PndPhoGunShort(), PndPhoGunShortP::PndPhoGunShortP(), PndSttFindTracks::PndSttFindTracks(), PndSttHelixHitProducer::PndSttHelixHitProducer(), PndSttHelixTrackFitter::PndSttHelixTrackFitter(), PndSttMatchTracks::PndSttMatchTracks(), PndSttMvdGemTracking::PndSttMvdGemTracking(), PndSttTrackFinderIdeal::PndSttTrackFinderIdeal(), PndSttTrackFitterQATask::PndSttTrackFitterQATask(), PndTrkTracking2::PndTrkTracking2(), ProcessFrame(), QAmacro_drc_2(), QAmacro_drc_4(), QAmacro_mvd_ana(), PndEvtGenDirect::ReadEvent(), reco(), run_reco(), run_reco_timebased(), PndRadMapBoxMesh::SetOrientation(), PndEmcPSAFPGAPileupAnalyser::SetVerbose(), PndMvdRiemannVertexFinderTask::SetVerbose(), PndEmcHighLowPSA::SetVerbose(), PndSttSkewedCombineTask::SetVerbose(), PndUnassignedHitsTask::SetVerbose(), PndMvdRiemannTrackFinderTaskEff::SetVerbose(), PndMQStraightLineTrackFinder::SetVerbose(), PndMvdRiemannTrackFinderTaskCutPar::SetVerbose(), PndSttCellTrackFinderAnalysisTask::SetVerbose(), PndSttHitCorrector::SetVerbose(), PndLmdTrackFinderTask::SetVerbose(), PndEmcAbsCrystalCalibrator::SetVerbose(), PndStraightLineTrackFinderTask::SetVerbose(), PndLmdTrackFinderCATask::SetVerbose(), PndMvdSttGemRiemannTrackFinderTask::SetVerbose(), PndSttCellTrackFinderTask::SetVerbose(), PndHypIdealTrackFinderTask::SetVerbose(), PndMvdRiemannTrackFinderTask::SetVerbose(), PndMvdIdealTrackFinderTask::SetVerbose(), PndGemTrackFinderQA::SetVerbose(), PndGemFindHitsQA::SetVerbose(), PndGemFindHitsAna::SetVerbose(), PndGemDigiAna::SetVerbose(), PndGemTrackFinderIdeal::SetVerbose(), PndMvdGemTrackFinderOnHits::SetVerbose(), PndGemTrackFinderOnHits::SetVerbose(), PndSttTrackFinder::SetVerbose(), PndGemTrackFinderOnHitsTB::SetVerbose(), FairEvtFilter::SetVerbose(), PndFtsHoughTrackerTask::SetVerbose(), PndFilteredPrimaryGenerator::SetVerbose(), PndFtsHoughSpace::setVerbose(), FairFilteredPrimaryGenerator::SetVerbose(), PndLmdTrksFilterTask::SetVerboseLevel(), PndLmdQATask::SetVerboseLevel(), and PndLmdAlignManager::verboseLevel().

Function Documentation

void InvMatVecProd ( TMatrixD  mat,
TVector3  vec,
TVector3 &  res 
)

Definition at line 1191 of file PndRadMapBoxMesh.cxx.

References i, and val.

1191  {
1192  TMatrixD imat = mat.Invert();
1193  double val;
1194  double resl[3];
1195  for(int i = 0; i < 3; i++){
1196  val = 0;
1197  for(int j = 0; j < 3; j++){
1198  val+=imat[i][j]*vec[j];
1199  }
1200  resl[i] = val;
1201  }
1202  res = TVector3(resl[0], resl[1], resl[2]);
1203 }
Int_t res
Definition: anadigi.C:166
Int_t i
Definition: run_full.C:25
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
dble_vec_t vec[12]
Definition: ranlxd.cxx:380
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:52
bool momentumfilter ( TVector3  mom,
TVector3  diff 
)

Definition at line 17 of file PndRadMapBoxMesh.cxx.

References i, and mom.

Referenced by PndRadMapBoxMesh::CalcFluence().

17  {
18  bool back = true;
19  for(int i = 0; i < 3; i++) if(mom(i)*diff(i) < 0) back = false;
20  return back;
21 }
Int_t i
Definition: run_full.C:25
Double_t mom
Definition: plot_dirc.C:14