FairRoot/PandaRoot
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PndFtsHoughTrackerTaskQA Class Reference

For automatic parameter optimization. This class tries numerous parameters and prints out good combinations. More...

#include <PndFtsHoughTrackerTaskQA.h>

Inheritance diagram for PndFtsHoughTrackerTaskQA:
PndFtsHoughTrackerTask PndPersistencyTask

Public Types

enum  DebugLevelMultiplicators {
  kHoughSpaces =2, kAllFoundPeaksTogether =3, kEachFoundPeakSeparately =5, kMcTruthPeaksExclusively =7,
  kMcTruthPeaksProjected =11, kHitCurvesExclusively =13, kHitCurvesProjected =17
}
 

Public Member Functions

 PndFtsHoughTrackerTaskQA (Int_t verbose=0)
 Constructor with flags. Can also be used as standard constructor. More...
 
 ~PndFtsHoughTrackerTaskQA ()
 Destructor. More...
 
virtual InitStatus Init ()
 Initialization of task at the beginning of a run. More...
 
virtual InitStatus ReInit ()
 ReInitiliazation of task when the runID changes. More...
 
virtual void Exec (Option_t *opt)
 Executed for each event. More...
 
virtual void FinishEvent ()
 When is this executed? After each event? More...
 
virtual void Finish ()
 Writes output to root file, I guess. Called at the end of the run. More...
 
Int_t getNEvtsWithEnoughParabolas () const
 
void setNParabolasToFind (Int_t nParabolasToFind)
 
void OverwriteTrackFinderParams (PndFtsHoughTrackFinderParams newParams)
 
virtual void SetParContainers ()
 Loads the parameter container from the runtime database. More...
 
void SetVerbose (Int_t verbose)
 
void SetPersistence (Bool_t val)
 
void SetSaveDebugInfo (Int_t saveDebugInfo)
 
Int_t GetVerbose () const
 
Int_t GetSaveDebugInfo () const
 Returns the verbosity level. More...
 
UInt_t GetEventNr () const
 Returns the save debug flag. More...
 
Int_t GetNFtsHits () const
 Returns the event number. More...
 
const PndFtsHitGetFtsHit (UInt_t hitId) const
 Returns pointer to the hit with index hitId in the FTS hit array. More...
 
Int_t getMcTruthIdForHitId (UInt_t hitId) const
 
const PndFtsTubeGetFtsTube (const PndFtsHit *const myHit) const
 Returns pointer to the FTS tube corresponding to input FTS hit. More...
 
const TVector3 GetFtsHitPosErrors (const PndFtsHit *const ftsHit) const
 Returns the position error (based on FTS straw geometry) for the hit with index hitId in the FTS hit array. More...
 
const TMatrixT< Double_tGetFtsHitCovMatrix (const PndFtsHit *const ftsHit) const
 Returns the position covariance matrix (based on FTS straw geometry) for the hit with index hitId in the FTS hit array. More...
 
Int_t getFtsBranchId () const
 Returns detector Id of FTS. Try not to use it. More...
 
TClonesArray * getFtsHitArrayPtr () const
 Returns pointer to the hit array in which FTS hits are saved as PndFtsHit. Try not to use it. More...
 
FairField * getMagneticFieldPtr () const
 
void SetPersistency (Bool_t val=kTRUE)
 
Bool_t GetPersistency ()
 

Public Attributes

FairLogger * fLogger
 Returns pointer to the B field. More...
 

Protected Member Functions

void throwError (const TString s) const
 For error reporting. More...
 
void CheckForDuplicateFtsHits ()
 
 ClassDef (PndFtsHoughTrackerTask, 1)
 

Protected Attributes

Int_t fFtsBranchId
 Detector Id of FTS. More...
 
TClonesArray * fFtsHitArray
 Input array of PndFtsHit. More...
 
TClonesArray * fFtsMcPoints
 Input array of McPoints. More...
 
PndGeoFtsParfFtsParameters
 Needed for FTS map creator. More...
 
TClonesArray * fFtsTubeArray
 Input array of PndFtsTube (map of FTS tubes). More...
 
FairField * fField
 For B field access. More...
 
TString fTracksArrayName
 Branch name where to store the Track candidates. More...
 
TClonesArray * fTrackCands
 Array of found track candidates in PndTrackCand (for output) More...
 
TClonesArray * fTracks
 Array of found tracks in PndTrack (for output) More...
 
Int_t fSaveDebugInfo
 Debug information will be created if >0. More...
 
UInt_t fEventNr
 Event number for debugging purposes. More...
 

Private Member Functions

 PndFtsHoughTrackerTaskQA (const PndFtsHoughTrackerTaskQA &)
 
PndFtsHoughTrackerTaskQA operator= (const PndFtsHoughTrackerTaskQA &)
 
 ClassDef (PndFtsHoughTrackerTaskQA, 1)
 

Private Attributes

PndFtsHoughTrackFinderParams fTrackFinderParams
 
Int_t fNParabolasToFind
 
Int_t fNEvtsWithEnoughParabolas
 

Detailed Description

For automatic parameter optimization. This class tries numerous parameters and prints out good combinations.

Author
Martin J. Galuska <martin [dot] j [dot] galuska (at) physik [dot] uni (minus) giessen [dot] de>

Created: 09.02.2014

Definition at line 42 of file PndFtsHoughTrackerTaskQA.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

PndFtsHoughTrackerTaskQA::PndFtsHoughTrackerTaskQA ( Int_t  verbose = 0)

Constructor with flags. Can also be used as standard constructor.

Parameters
[in]verboseVerbosity level: 0 least, higher -> more output.
[in]persistencekFALSE does not write track candidates from PR to output root file.
[in]saveDebugInfokTRUE will write internal representation of track(let) candidates to output root file.

Definition at line 78 of file PndFtsHoughTrackerTaskQA.cxx.

References fVerbose.

83 {
84  if(3<fVerbose) std::cout << "PndFtsHoughTrackerTaskQA is the tracker ptr " << this << '\n';
85 }
int fVerbose
Definition: poormantracks.C:24
#define verbose
PndFtsHoughTrackFinderParams fTrackFinderParams
PndFtsHoughTrackerTask(Int_t verbose=0, Bool_t persistence=kTRUE)
Constructor with flags. Can also be used as standard constructor.
PndFtsHoughTrackerTaskQA::~PndFtsHoughTrackerTaskQA ( )

Destructor.

Definition at line 88 of file PndFtsHoughTrackerTaskQA.cxx.

References PndFtsHoughTrackerTask::fLogger, and fVerbose.

89 {
90  if(fVerbose>3) fLogger->Info(MESSAGE_ORIGIN,"Destructor of PndFtsHoughTrackerTaskQA");
91 }
int fVerbose
Definition: poormantracks.C:24
FairLogger * fLogger
Returns pointer to the B field.
PndFtsHoughTrackerTaskQA::PndFtsHoughTrackerTaskQA ( const PndFtsHoughTrackerTaskQA )
private

Member Function Documentation

void PndFtsHoughTrackerTask::CheckForDuplicateFtsHits ( )
inlineprotectedinherited

Definition at line 227 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::GetEventNr(), PndFtsHoughTrackerTask::GetFtsHit(), PndFtsHoughTrackerTask::GetNFtsHits(), and PndFtsHit::GetTubeID().

Referenced by PndFtsHoughTrackerTask::Exec().

228  {
229  for (int iHit1 = 0; iHit1 < GetNFtsHits(); ++iHit1)
230  {
231  const PndFtsHit *const myHit1 = GetFtsHit(iHit1);
232 
233  const Int_t tubeIdHit1 = myHit1->GetTubeID();
234 
235  for (int iHit2 = iHit1+1; iHit2 < GetNFtsHits(); ++iHit2)
236  {
237  const PndFtsHit *const myHit2 = GetFtsHit(iHit2);
238 
239  const Int_t tubeIdHit2 = myHit2->GetTubeID();
240 
241  if ( tubeIdHit1 == tubeIdHit2 ) std::cout << "Event " << GetEventNr() << "tubeID1="<<tubeIdHit1<<" tubeID2="<<tubeIdHit2 <<": HitIdx " << iHit1 << " and HitIdx " << iHit2 << " are duplicate!\n";
242  }
243 
244  } // for loop over all hits
245  };
Int_t GetTubeID() const
Definition: PndFtsHit.h:70
Int_t GetNFtsHits() const
Returns the event number.
const PndFtsHit * GetFtsHit(UInt_t hitId) const
Returns pointer to the hit with index hitId in the FTS hit array.
UInt_t GetEventNr() const
Returns the save debug flag.
PndFtsHoughTrackerTaskQA::ClassDef ( PndFtsHoughTrackerTaskQA  ,
 
)
private
PndFtsHoughTrackerTask::ClassDef ( PndFtsHoughTrackerTask  ,
 
)
protectedinherited
void PndFtsHoughTrackerTaskQA::Exec ( Option_t *  opt)
virtual

Executed for each event.

Parameters
optNot used.

Reimplemented from PndFtsHoughTrackerTask.

Definition at line 118 of file PndFtsHoughTrackerTaskQA.cxx.

References PndFtsHoughTrackerTask::fEventNr, PndFtsHoughTrackFinder::FindTracks(), fNEvtsWithEnoughParabolas, fNParabolasToFind, fTrackFinderParams, fVerbose, PndFtsHoughTrackFinder::getNParabolasFound(), PndFtsHoughTrackFinder::OverwriteTrackFinderParams(), and trackFinder.

119 {
120  if(1<fVerbose) Info("Exec","Exec of PndFtsHoughTrackerTaskQA on event %i", fEventNr);
121 
122  if(3<fVerbose) std::cout << "PndFtsHoughTrackFinder::Exec tracker ptr " << this << '\n';
123 
124 
125  // determine how many parabolas should be found (by performing ideal track finding)
126 
127 
128 
129  // run track finder
131  trackFinder.OverwriteTrackFinderParams(fTrackFinderParams);
132  trackFinder.FindTracks();
133 
134 
135 
136 
137  // check if we found correct number of parabolas
138  if (fNParabolasToFind <= trackFinder.getNParabolasFound()) ++fNEvtsWithEnoughParabolas;
139 
140 
141 
142 
143 
144 
145 
146  if(3<fVerbose) Info("Exec","End eventloop.");
147  ++fEventNr;
148 }
int fVerbose
Definition: poormantracks.C:24
UInt_t fEventNr
Event number for debugging purposes.
PndFtsHoughTrackFinderParams fTrackFinderParams
Implementation of the Hough transform based FTS PR. Creates Hough spaces, finds peaks (=tracklets) an...
PndLheTrackFinder * trackFinder
void PndFtsHoughTrackerTaskQA::Finish ( )
virtual

Writes output to root file, I guess. Called at the end of the run.

Reimplemented from PndFtsHoughTrackerTask.

Definition at line 158 of file PndFtsHoughTrackerTaskQA.cxx.

References fNEvtsWithEnoughParabolas, fNParabolasToFind, PndFtsHoughTrackerTask::fTrackCands, and fVerbose.

159 {
160  if(3<fVerbose) Info("Finish","Found %i tracks.",fTrackCands->GetEntriesFast());
161 
162  // print parameters to screen if we have found enough parabolas
163  std::cout << fNEvtsWithEnoughParabolas << " events have >= " << fNParabolasToFind << " parabola.\n";
164  std::cout << " \n";
165 }
int fVerbose
Definition: poormantracks.C:24
TClonesArray * fTrackCands
Array of found track candidates in PndTrackCand (for output)
void PndFtsHoughTrackerTaskQA::FinishEvent ( )
virtual

When is this executed? After each event?

Reimplemented from PndFtsHoughTrackerTask.

Definition at line 152 of file PndFtsHoughTrackerTaskQA.cxx.

153 {
154 }
UInt_t PndFtsHoughTrackerTask::GetEventNr ( ) const
inlineinherited
Int_t PndFtsHoughTrackerTask::getFtsBranchId ( ) const
inlineinherited

Returns detector Id of FTS. Try not to use it.

See also
GetFtsHit
GetNHits
Returns
Detector Id of FTS.

Definition at line 152 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsBranchId.

152 { return fFtsBranchId; };
Int_t fFtsBranchId
Detector Id of FTS.
const PndFtsHit* PndFtsHoughTrackerTask::GetFtsHit ( UInt_t  hitId) const
inlineinherited

Returns pointer to the hit with index hitId in the FTS hit array.

Parameters
[in]hitIdIndex (in FTS hit array) of the hit which should be returned.
Returns
Pointer to hit with index hitId in FTS hit array.

Definition at line 110 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsHitArray, PndFtsHoughTrackerTask::GetNFtsHits(), and PndFtsHoughTrackerTask::throwError().

Referenced by PndFtsHoughSpace::AddHitToHS(), PndFtsHoughTrackerTask::CheckForDuplicateFtsHits(), PndFtsHoughSpace::filterInputHits(), PndFtsHoughSpace::getHitFromHS(), PndFtsHoughTrackerTask::getMcTruthIdForHitId(), and PndFtsHoughTrackCand::getTrackParPForHit().

110  {
111  if ( hitId >= (UInt_t)GetNFtsHits() ) throwError("GetFtsHit: hitId is too large.");
112  // TClonesArray *ftsHitArray= (TClonesArray *)FairRootManager::Instance()->GetObject("FTSHit");
113  const PndFtsHit *myHit = (PndFtsHit*) fFtsHitArray->At(hitId);
114  if (0 == myHit) throwError("GetFtsHit was not able to get the hit.");
115  return myHit;
116  };
TClonesArray * fFtsHitArray
Input array of PndFtsHit.
void throwError(const TString s) const
For error reporting.
Int_t GetNFtsHits() const
Returns the event number.
TClonesArray* PndFtsHoughTrackerTask::getFtsHitArrayPtr ( ) const
inlineinherited

Returns pointer to the hit array in which FTS hits are saved as PndFtsHit. Try not to use it.

See also
GetFtsHit
GetNHits
Returns
Pointer to the hit array in which hits are saved as PndFtsHit.

Definition at line 159 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsHitArray.

159 { return fFtsHitArray; };
TClonesArray * fFtsHitArray
Input array of PndFtsHit.
const TMatrixT< Double_t > PndFtsHoughTrackerTask::GetFtsHitCovMatrix ( const PndFtsHit *const  ftsHit) const
inherited

Returns the position covariance matrix (based on FTS straw geometry) for the hit with index hitId in the FTS hit array.

Parameters
[in]ftsHitpointer to hit for which the error should be returned.
Returns
Error in cm.

Definition at line 266 of file PndFtsHoughTrackerTask.cxx.

References Double_t, PndFtsHoughTrackerTask::GetFtsTube(), PndFtsTube::GetHalfLength(), PndFtsTube::GetRadIn(), and PndFtsTube::GetRotationMatrix().

267 {
268  const PndFtsTube *const tube = GetFtsTube(ftsHit);
269 
270  const Double_t sizeSigmaCoeff = 1.5; // TODO Check value
271  const Double_t rhoError = tube->GetRadIn()/sizeSigmaCoeff;
272  const Double_t zError = tube->GetHalfLength()/sizeSigmaCoeff; // TODO might need additional factor
273  TMatrixT<Double_t> rotationMatrix = tube->GetRotationMatrix();
274 
275  TMatrixT<Double_t> unrotatedCovMatrix(3,3);
276  // initialize with 0
277  for (Int_t firstIdx=0; firstIdx < 3; ++firstIdx){
278  for (Int_t secondIdx=0; secondIdx < 3; ++secondIdx){
279  unrotatedCovMatrix[firstIdx][secondIdx] = 0;
280  }
281  }
282  unrotatedCovMatrix[0][0] = pow(rhoError, 2);
283  unrotatedCovMatrix[1][1] = pow(rhoError, 2);
284  unrotatedCovMatrix[2][2] = pow(zError, 2);
285 
286  TMatrixT<Double_t> rotatedCovMatrix = rotationMatrix*unrotatedCovMatrix;
287  rotatedCovMatrix *= rotationMatrix.Transpose(rotationMatrix);
288 
289  return rotatedCovMatrix;
290 }
Double_t
TMatrixT< Double_t > GetRotationMatrix() const
Definition: PndFtsTube.cxx:71
Double_t GetHalfLength() const
Definition: PndFtsTube.cxx:80
Double_t GetRadIn() const
Definition: PndFtsTube.cxx:74
const PndFtsTube * GetFtsTube(const PndFtsHit *const myHit) const
Returns pointer to the FTS tube corresponding to input FTS hit.
const TVector3 PndFtsHoughTrackerTask::GetFtsHitPosErrors ( const PndFtsHit *const  ftsHit) const
inherited

Returns the position error (based on FTS straw geometry) for the hit with index hitId in the FTS hit array.

Parameters
[in]pointerto hit for which the error should be returned.
Returns
Error in cm.

Definition at line 253 of file PndFtsHoughTrackerTask.cxx.

References Double_t, PndFtsHoughTrackerTask::GetFtsTube(), PndFtsTube::GetHalfLength(), and PndFtsTube::GetRadIn().

Referenced by PndFtsHoughTrackCand::getTrackParPForHit().

254 {
255  const PndFtsTube *const tube = GetFtsTube(ftsHit);
256 
257  const Double_t sizeSigmaCoeff = 1.5; // TODO Check value
258  const Double_t rhoError = tube->GetRadIn()/sizeSigmaCoeff;
259  const Double_t zError = tube->GetHalfLength()/sizeSigmaCoeff; // TODO might need additional factor
260 
261  TVector3 hitPosErrors(rhoError,rhoError,zError);
262 
263  return hitPosErrors;
264 }
Double_t
Double_t GetHalfLength() const
Definition: PndFtsTube.cxx:80
Double_t GetRadIn() const
Definition: PndFtsTube.cxx:74
const PndFtsTube * GetFtsTube(const PndFtsHit *const myHit) const
Returns pointer to the FTS tube corresponding to input FTS hit.
const PndFtsTube* PndFtsHoughTrackerTask::GetFtsTube ( const PndFtsHit *const  myHit) const
inlineinherited

Returns pointer to the FTS tube corresponding to input FTS hit.

Parameters
[in]myHitFTS hit for which the tube should be returned.
Returns
Pointer to tube corresponding to myHit.

Definition at line 131 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsTubeArray, and PndFtsHit::GetTubeID().

Referenced by PndFtsHoughSpace::CalculateHitPosFromIntersectionsWithZxTrackModel(), PndFtsHoughTrackerTask::GetFtsHitCovMatrix(), and PndFtsHoughTrackerTask::GetFtsHitPosErrors().

131  {
132  Int_t tubeID = myHit->GetTubeID();
133  const PndFtsTube *tube = (PndFtsTube*) fFtsTubeArray->At(tubeID);
134  return tube;
135  }
Int_t GetTubeID() const
Definition: PndFtsHit.h:70
TClonesArray * fFtsTubeArray
Input array of PndFtsTube (map of FTS tubes).
FairField* PndFtsHoughTrackerTask::getMagneticFieldPtr ( ) const
inlineinherited

Definition at line 166 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fField.

166 { return fField; };
FairField * fField
For B field access.
Int_t PndFtsHoughTrackerTask::getMcTruthIdForHitId ( UInt_t  hitId) const
inlineinherited

Definition at line 117 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsMcPoints, PndFtsHoughTrackerTask::GetFtsHit(), and PndFtsHoughTrackerTask::throwError().

Referenced by PndFtsHoughSpace::WriteHistoOfAllPathsForEachMcTruthTrack().

117  {
118  const PndFtsHit *const ftsHit = GetFtsHit(hitId);
119  Int_t mcPointId=ftsHit->GetRefIndex();
120  if(0 > mcPointId) throwError("getMcTruthIdForHitId: negative mcPointId.");
121  FairMCPoint* myPoint = (FairMCPoint*)(fFtsMcPoints->At(mcPointId));
122  if(0==myPoint) throwError("getMcTruthIdForHitId: Could not get point belonging to hit.");
123  Int_t mcTrackId = myPoint->GetTrackID();
124  if(mcTrackId<0) throwError("getMcTruthIdForHitId: negative mcTrackId.");
125  return mcTrackId;
126  }
void throwError(const TString s) const
For error reporting.
TClonesArray * fFtsMcPoints
Input array of McPoints.
const PndFtsHit * GetFtsHit(UInt_t hitId) const
Returns pointer to the hit with index hitId in the FTS hit array.
Int_t PndFtsHoughTrackerTaskQA::getNEvtsWithEnoughParabolas ( ) const
inline

Definition at line 70 of file PndFtsHoughTrackerTaskQA.h.

References fNEvtsWithEnoughParabolas.

Int_t PndFtsHoughTrackerTask::GetNFtsHits ( ) const
inlineinherited

Returns the event number.

Returns the number of FTS hits.

Returns
Number of FTS hits.

Definition at line 105 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fFtsHitArray.

Referenced by PndFtsHoughTrackerTask::CheckForDuplicateFtsHits(), PndFtsHoughSpace::filterInputHits(), PndFtsHoughTrackFinder::FindTracks(), and PndFtsHoughTrackerTask::GetFtsHit().

105 { return fFtsHitArray->GetEntriesFast(); };
TClonesArray * fFtsHitArray
Input array of PndFtsHit.
Bool_t PndPersistencyTask::GetPersistency ( )
inlineinherited

Definition at line 32 of file PndPersistencyTask.h.

References PndPersistencyTask::fPersistency.

Referenced by PndLmdPixelHitProducerFast::GetPersistance(), PndMdtDigitization::Init(), PndMdtHitProducerIdeal::Init(), PndMdtClusterTask::Init(), PndFtsHitProducerRealFast::Init(), PndSttHitProducerRealFast::Init(), PndDiscTaskReconstruction::Init(), PndRichHitProducer::Init(), PndSttHelixHitProducer::Init(), PndDiscTaskPID::Init(), PndIdealTrackFinder::Init(), PndSttMvdGemTracking::Init(), PndMdtTrkProducer::Init(), PndFtsHitProducerRealFull::Init(), PndLmdPixelClusterTask::Init(), PndSttHitProducerRealFull::Init(), PndLmdStripClusterTask::Init(), PndEmcApdHitProducer::Init(), PndMissingPzCleanerTask::Init(), PndEmcMakeRecoHit::Init(), PndEmcMakeClusterOnline::Init(), PndTrackSmearTask::Init(), PndEmcFWEndcapTimebasedWaveforms::Init(), PndSttHitProducerIdeal::Init(), PndEmcFWEndcapDigi::Init(), PndFtsHitProducerIdeal::Init(), PndEmcMakeCluster::Init(), PndMdtPointsToWaveform::Init(), PndDiscTaskDigitization::Init(), PndEmcMakeDigi::Init(), PndSdsTimeWalkCorrTask::Init(), PndLmdPixelHitProducerFast::Init(), PndDrcHitFinder::Init(), PndRichHitFinder::Init(), PndEmcMakeCorr::Init(), PndFtofHitProducerIdeal::Init(), PndEmcHitsToWaveform::Init(), PndSciTDigiTask::Init(), PndDrcHitProducerIdeal::Init(), PndSdsHitProducerIdeal::Init(), PndSciTHitProducerIdeal::Init(), PndRecoMultiKalmanTask2::Init(), PndEmcHitProducer::Init(), PndDrcHitProducerReal::Init(), PndDskFLGHitProducerIdeal::Init(), PndEmcTmpWaveformToDigi::Init(), PndDrcDigiTask::Init(), PndEmcWaveformToDigi::Init(), PndSttMatchTracks::Init(), PndEmcWaveformToCalibratedDigi::Init(), PndTrkTracking2::Init(), PndSttFindTracks::Init(), PndEmcMultiWaveformToCalibratedDigi::Init(), PndRecoKalmanTask2::Init(), PndDrcTimeDigiTask::Init(), PndEmcExpClusterSplitter::Init(), PndFtsHoughTrackerTask::Init(), PndSdsNoiseProducer::Init(), PndEmcPhiBumpSplitter::Init(), PndSdsIdealRecoTask::Init(), PndSdsHybridHitProducer::Init(), PndRecoMultiKalmanTask::Init(), PndSdsIdealClusterTask::Init(), PndRecoKalmanTask::Init(), PndSdsStripHitProducerDif::Init(), PndGemDigitize::Init(), PndSdsStripHitProducer::Init(), PndGemFindHits::Init(), PndSdsPixelClusterTask::Init(), PndSdsStripClusterTask::Init(), PndMvdGemTrackFinderOnHits::Init(), PndBarrelTrackFinder::Init(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcMakeBump::PndEmcMakeBump(), PndUnassignedHitsTask::RegisterBranches(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndEmcMakeBump::SetStorageOfData(), and PndEmcFullDigiTask::StoreDigi().

32 { return fPersistency; }
Int_t PndFtsHoughTrackerTask::GetSaveDebugInfo ( ) const
inlineinherited
Int_t PndFtsHoughTrackerTask::GetVerbose ( ) const
inlineinherited
InitStatus PndFtsHoughTrackerTaskQA::Init ( )
virtual

Initialization of task at the beginning of a run.

Reimplemented from PndFtsHoughTrackerTask.

Definition at line 97 of file PndFtsHoughTrackerTaskQA.cxx.

References fVerbose, and PndFtsHoughTrackerTask::Init().

98 {
99  if(fVerbose>3) Info("Init","Initilization of PndFtsHoughTrackerTaskQA");
100 
102 }
int fVerbose
Definition: poormantracks.C:24
virtual InitStatus Init()
Initialization of task at the beginning of a run.
PndFtsHoughTrackerTaskQA PndFtsHoughTrackerTaskQA::operator= ( const PndFtsHoughTrackerTaskQA )
private
void PndFtsHoughTrackerTaskQA::OverwriteTrackFinderParams ( PndFtsHoughTrackFinderParams  newParams)
inline

Definition at line 73 of file PndFtsHoughTrackerTaskQA.h.

References fTrackFinderParams.

73 { fTrackFinderParams = newParams; };
PndFtsHoughTrackFinderParams fTrackFinderParams
InitStatus PndFtsHoughTrackerTaskQA::ReInit ( )
virtual

ReInitiliazation of task when the runID changes.

Reimplemented from PndFtsHoughTrackerTask.

Definition at line 106 of file PndFtsHoughTrackerTaskQA.cxx.

References PndFtsHoughTrackerTask::fLogger, fVerbose, and PndFtsHoughTrackerTask::ReInit().

107 {
108  InitStatus stat=kSUCCESS;
109  if(3<fVerbose) fLogger->Info(MESSAGE_ORIGIN,"Re- Initilization of PndFtsHoughTrackerTaskQA");
111  return stat;
112 }
virtual InitStatus ReInit()
ReInitiliazation of task when the runID changes.
int fVerbose
Definition: poormantracks.C:24
FairLogger * fLogger
Returns pointer to the B field.
void PndFtsHoughTrackerTaskQA::setNParabolasToFind ( Int_t  nParabolasToFind)
inline

Definition at line 71 of file PndFtsHoughTrackerTaskQA.h.

References fNParabolasToFind.

71 { fNParabolasToFind = nParabolasToFind; };
void PndFtsHoughTrackerTask::SetParContainers ( )
virtualinherited

Loads the parameter container from the runtime database.

Definition at line 114 of file PndFtsHoughTrackerTask.cxx.

References PndFtsHoughTrackerTask::fFtsParameters, PndFtsHoughTrackerTask::fLogger, fVerbose, and rtdb.

115 {
116  if(fVerbose>3) fLogger->Info(MESSAGE_ORIGIN,"SetParContainers of PndFtsHoughTrackerTask");
117 
118  // FTS parameters
119  FairRuntimeDb *rtdb= FairRun::Instance()->GetRuntimeDb();
120  fFtsParameters=(PndGeoFtsPar*)(rtdb->getContainer("PndGeoFtsPar"));
121 }
int fVerbose
Definition: poormantracks.C:24
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
FairLogger * fLogger
Returns pointer to the B field.
PndGeoFtsPar * fFtsParameters
Needed for FTS map creator.
void PndFtsHoughTrackerTask::SetPersistence ( Bool_t  val)
inlineinherited

Definition at line 86 of file PndFtsHoughTrackerTask.h.

References PndPersistencyTask::SetPersistency().

86 { SetPersistency(val);};
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
void SetPersistency(Bool_t val=kTRUE)
void PndPersistencyTask::SetPersistency ( Bool_t  val = kTRUE)
inlineinherited

Definition at line 31 of file PndPersistencyTask.h.

References PndPersistencyTask::fPersistency, and val.

Referenced by barrelTrackFinder(), digi_complete(), digi_complete_newSTT(), digiOnly_complete(), PndBarrelTrackFinder::PndBarrelTrackFinder(), PndCATracking::PndCATracking(), PndDrcHitFinder::PndDrcHitFinder(), PndEmc2DLocMaxFinder::PndEmc2DLocMaxFinder(), PndEmcExpClusterSplitter::PndEmcExpClusterSplitter(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcFWEndcapDigi::PndEmcFWEndcapDigi(), PndEmcFWEndcapTimebasedWaveforms::PndEmcFWEndcapTimebasedWaveforms(), PndEmcHitProducer::PndEmcHitProducer(), PndEmcHitsToWaveform::PndEmcHitsToWaveform(), PndEmcMakeBump::PndEmcMakeBump(), PndEmcMakeCluster::PndEmcMakeCluster(), PndEmcMakeClusterOnline::PndEmcMakeClusterOnline(), PndEmcMakeDigi::PndEmcMakeDigi(), PndEmcMakeRecoHit::PndEmcMakeRecoHit(), PndEmcMultiWaveformToCalibratedDigi::PndEmcMultiWaveformToCalibratedDigi(), PndEmcPhiBumpSplitter::PndEmcPhiBumpSplitter(), PndEmcTmpWaveformToDigi::PndEmcTmpWaveformToDigi(), PndEmcWaveformToCalibratedDigi::PndEmcWaveformToCalibratedDigi(), PndEmcWaveformToDigi::PndEmcWaveformToDigi(), PndFtofHitProducerIdeal::PndFtofHitProducerIdeal(), PndFtsCATracking::PndFtsCATracking(), PndFtsHitProducerIdeal::PndFtsHitProducerIdeal(), PndFtsHitProducerRealFast::PndFtsHitProducerRealFast(), PndFtsHitProducerRealFull::PndFtsHitProducerRealFull(), PndFtsHoughTrackerTask::PndFtsHoughTrackerTask(), PndGemDigitize::PndGemDigitize(), PndGemFindHits::PndGemFindHits(), PndIdealTrackFinder::PndIdealTrackFinder(), PndLmdPixelClusterTask::PndLmdPixelClusterTask(), PndLmdPixelHitProducerFast::PndLmdPixelHitProducerFast(), PndMdtClusterTask::PndMdtClusterTask(), PndMdtDigitization::PndMdtDigitization(), PndMdtHitProducerIdeal::PndMdtHitProducerIdeal(), PndMdtPointsToWaveform::PndMdtPointsToWaveform(), PndMdtTrkProducer::PndMdtTrkProducer(), PndMissingPzCleanerTask::PndMissingPzCleanerTask(), PndMvdGemTrackFinderOnHits::PndMvdGemTrackFinderOnHits(), PndMvdHitProducerIdeal::PndMvdHitProducerIdeal(), PndMvdPixelClusterTask::PndMvdPixelClusterTask(), PndMvdTimeWalkCorrTask::PndMvdTimeWalkCorrTask(), PndMvdToPix4ClusterTask::PndMvdToPix4ClusterTask(), PndRecoKalmanTask::PndRecoKalmanTask(), PndRecoKalmanTask2::PndRecoKalmanTask2(), PndRecoMultiKalmanTask::PndRecoMultiKalmanTask(), PndRecoMultiKalmanTask2::PndRecoMultiKalmanTask2(), PndRichHitFinder::PndRichHitFinder(), PndRichHitProducer::PndRichHitProducer(), PndSciTDigiTask::PndSciTDigiTask(), PndSciTHitProducerIdeal::PndSciTHitProducerIdeal(), PndSdsHitProducerIdeal::PndSdsHitProducerIdeal(), PndSdsHybridHitProducer::PndSdsHybridHitProducer(), PndSdsIdealClusterTask::PndSdsIdealClusterTask(), PndSdsIdealRecoTask::PndSdsIdealRecoTask(), PndSdsNoiseProducer::PndSdsNoiseProducer(), PndSdsPixelClusterTask::PndSdsPixelClusterTask(), PndSdsStripClusterTask::PndSdsStripClusterTask(), PndSdsStripHitProducer::PndSdsStripHitProducer(), PndSdsTimeWalkCorrTask::PndSdsTimeWalkCorrTask(), PndSttFindTracks::PndSttFindTracks(), PndSttHelixHitProducer::PndSttHelixHitProducer(), PndSttHitProducerIdeal::PndSttHitProducerIdeal(), PndSttHitProducerRealFast::PndSttHitProducerRealFast(), PndSttHitProducerRealFull::PndSttHitProducerRealFull(), PndSttMatchTracks::PndSttMatchTracks(), PndSttMvdGemTracking::PndSttMvdGemTracking(), PndTrackSmearTask::PndTrackSmearTask(), PndTrkTracking2::PndTrkTracking2(), reco(), reco_complete(), reco_complete_gf2(), reco_complete_newSTT(), reco_complete_sec(), recoideal_complete(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndLmdPixelHitProducerFast::SetPersistance(), PndSdsHitProducerIdeal::SetPersistance(), PndSttMvdGemTracking::SetPersistenc(), PndMdtClusterTask::SetPersistence(), PndSttHelixHitProducer::SetPersistence(), PndMissingPzCleanerTask::SetPersistence(), PndFtsHitProducerRealFast::SetPersistence(), PndFtsHitProducerRealFull::SetPersistence(), PndSttHitProducerRealFull::SetPersistence(), PndSttHitProducerIdeal::SetPersistence(), PndSttHitProducerRealFast::SetPersistence(), PndFtsHitProducerIdeal::SetPersistence(), PndTrackSmearTask::SetPersistence(), PndSciTHitProducerIdeal::SetPersistence(), PndIdealTrackFinder::SetPersistence(), PndSttMatchTracks::SetPersistence(), PndSttFindTracks::SetPersistence(), PndFtsHoughTrackerTask::SetPersistence(), PndTrkTracking2::SetPersistence(), PndEmcMakeRecoHit::SetStorageOfData(), PndEmcFWEndcapDigi::SetStorageOfData(), PndEmcMakeClusterOnline::SetStorageOfData(), PndEmcFWEndcapTimebasedWaveforms::SetStorageOfData(), PndEmcMakeDigi::SetStorageOfData(), PndMdtPointsToWaveform::SetStorageOfData(), PndEmc2DLocMaxFinder::SetStorageOfData(), PndEmcMakeCluster::SetStorageOfData(), PndEmcHitsToWaveform::SetStorageOfData(), PndEmcMakeBump::SetStorageOfData(), PndEmcTmpWaveformToDigi::SetStorageOfData(), PndEmcWaveformToDigi::SetStorageOfData(), PndEmcWaveformToCalibratedDigi::SetStorageOfData(), PndEmcMultiWaveformToCalibratedDigi::SetStorageOfData(), PndEmcExpClusterSplitter::SetStorageOfData(), PndEmcPhiBumpSplitter::SetStorageOfData(), standard_tracking(), and PndEmcFullDigiTask::StoreDigi().

31 { fPersistency = val; }
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
void PndFtsHoughTrackerTask::SetSaveDebugInfo ( Int_t  saveDebugInfo)
inlineinherited

Definition at line 87 of file PndFtsHoughTrackerTask.h.

References PndFtsHoughTrackerTask::fSaveDebugInfo.

Referenced by reco().

87 { fSaveDebugInfo = saveDebugInfo;};
Int_t fSaveDebugInfo
Debug information will be created if >0.
void PndFtsHoughTrackerTask::SetVerbose ( Int_t  verbose)
inlineinherited

Definition at line 85 of file PndFtsHoughTrackerTask.h.

References fVerbose, and verbose.

Referenced by reco(), and reco_fts().

85 { fVerbose = verbose;};
int fVerbose
Definition: poormantracks.C:24
#define verbose
void PndFtsHoughTrackerTask::throwError ( const TString  s) const
inlineprotectedinherited

For error reporting.

Definition at line 225 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::GetFtsHit(), and PndFtsHoughTrackerTask::getMcTruthIdForHitId().

225 { throw std::runtime_error(s.Data()); };
TLorentzVector s
Definition: Pnd2DStar.C:50

Member Data Documentation

UInt_t PndFtsHoughTrackerTask::fEventNr
protectedinherited

Event number for debugging purposes.

Definition at line 223 of file PndFtsHoughTrackerTask.h.

Referenced by Exec(), PndFtsHoughTrackerTask::Exec(), and PndFtsHoughTrackerTask::GetEventNr().

FairField* PndFtsHoughTrackerTask::fField
protectedinherited

For B field access.

Definition at line 202 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::getMagneticFieldPtr(), and PndFtsHoughTrackerTask::Init().

Int_t PndFtsHoughTrackerTask::fFtsBranchId
protectedinherited

Detector Id of FTS.

Definition at line 185 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::getFtsBranchId(), and PndFtsHoughTrackerTask::Init().

TClonesArray* PndFtsHoughTrackerTask::fFtsHitArray
protectedinherited
TClonesArray* PndFtsHoughTrackerTask::fFtsMcPoints
protectedinherited

Input array of McPoints.

Definition at line 187 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::getMcTruthIdForHitId(), and PndFtsHoughTrackerTask::Init().

PndGeoFtsPar* PndFtsHoughTrackerTask::fFtsParameters
protectedinherited

Needed for FTS map creator.

I don't really know what that does...

Definition at line 194 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::Init(), and PndFtsHoughTrackerTask::SetParContainers().

TClonesArray* PndFtsHoughTrackerTask::fFtsTubeArray
protectedinherited

Input array of PndFtsTube (map of FTS tubes).

Is filled by map creator

Definition at line 199 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::GetFtsTube(), and PndFtsHoughTrackerTask::Init().

FairLogger* PndFtsHoughTrackerTask::fLogger
inherited
Int_t PndFtsHoughTrackerTaskQA::fNEvtsWithEnoughParabolas
private

Definition at line 80 of file PndFtsHoughTrackerTaskQA.h.

Referenced by Exec(), Finish(), and getNEvtsWithEnoughParabolas().

Int_t PndFtsHoughTrackerTaskQA::fNParabolasToFind
private

Definition at line 79 of file PndFtsHoughTrackerTaskQA.h.

Referenced by Exec(), Finish(), and setNParabolasToFind().

Int_t PndFtsHoughTrackerTask::fSaveDebugInfo
protectedinherited

Debug information will be created if >0.

Definition at line 222 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::GetSaveDebugInfo(), and PndFtsHoughTrackerTask::SetSaveDebugInfo().

TClonesArray* PndFtsHoughTrackerTask::fTrackCands
protectedinherited
PndFtsHoughTrackFinderParams PndFtsHoughTrackerTaskQA::fTrackFinderParams
private

Definition at line 73 of file PndFtsHoughTrackerTaskQA.h.

Referenced by Exec(), and OverwriteTrackFinderParams().

TClonesArray* PndFtsHoughTrackerTask::fTracks
protectedinherited
TString PndFtsHoughTrackerTask::fTracksArrayName
protectedinherited

Branch name where to store the Track candidates.

Definition at line 208 of file PndFtsHoughTrackerTask.h.

Referenced by PndFtsHoughTrackerTask::Init().


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