Hall C ROOT/C++ Analyzer (hcana)
Loading...
Searching...
No Matches
THcDC Class Reference

Analyze a package of horizontal drift chambers. More...

#include <THcDC.h>

Inheritance diagram for THcDC:
Collaboration diagram for THcDC:

Public Member Functions

virtual Int_t ApplyCorrections (void)
 
virtual Int_t CoarseTrack (TClonesArray &tracks)
 
virtual Int_t Decode (const THaEvData &)
 
virtual Int_t End (THaRunBase *run=0)
 
virtual Int_t FineTrack (TClonesArray &tracks)
 
Double_t GetAlphaAngle (Int_t plane) const
 
Double_t GetBetaAngle (Int_t plane) const
 
Double_t GetCenter (Int_t plane) const
 
Double_t GetCentralTime (Int_t plane) const
 
Double_t GetCentralWire (Int_t plane) const
 
Int_t GetDriftTimeSign (Int_t plane) const
 
Int_t GetFixPropagationCorrectionFlag () const
 
Double_t GetGammaAngle (Int_t plane) const
 
Int_t GetMaxHits (Int_t chamber) const
 
Int_t GetMinCombos (Int_t chamber) const
 
Int_t GetMinHits (Int_t chamber) const
 
Int_t GetNChamber (Int_t plane) const
 
Double_t GetNSperChan () const
 
Int_t GetNWires (Int_t plane) const
 
Double_t GetPitch (Int_t plane) const
 
Double_t GetPlaneTimeZero (Int_t plane) const
 
Int_t GetReadoutLR (Int_t plane) const
 
Int_t GetReadoutTB (Int_t plane) const
 
Double_t GetSigma (Int_t plane) const
 
Double_t GetSpacePointCriterion (Int_t chamber) const
 
Int_t GetTdcWinMax (Int_t plane) const
 
Int_t GetTdcWinMin (Int_t plane) const
 
Int_t GetVersion () const
 
Int_t GetWireOrder (Int_t plane) const
 
Double_t GetXPos (Int_t plane) const
 
Double_t GetYPos (Int_t plane) const
 
Double_t GetZPos (Int_t plane) const
 
virtual EStatus Init (const TDatime &run_time)
 
void SetFocalPlaneBestTrack (Int_t golden_track_index)
 
 THcDC ()
 
 THcDC (const char *name, const char *description="", THaApparatus *a=NULL)
 
virtual ~THcDC ()
 
- Public Member Functions inherited from THaTrackingDetector
virtual Int_t FindVertices (TClonesArray &)
 
Bool_t IsPid ()
 
Bool_t IsTracking ()
 
 THaTrackingDetector ()
 
virtual ~THaTrackingDetector ()
 
- Public Member Functions inherited from THaSpectrometerDetector
Bool_t CalcInterceptCoords (THaTrack *track, Double_t &x, Double_t &y)
 
Bool_t CalcPathLen (THaTrack *track, Double_t &t)
 
Bool_t CalcTrackIntercept (THaTrack *track, Double_t &pathl, Double_t &xdet, Double_t &ydet)
 
Bool_t CalcTrackIntercept (THaTrack *track, TVector3 &icept, Double_t &pathl)
 
Bool_t CheckIntercept (THaTrack *track)
 
 THaSpectrometerDetector ()=default
 
virtual ~THaSpectrometerDetector ()=default
 
- Public Member Functions inherited from THaDetector
THaApparatusGetApparatus () const
 
virtual void SetApparatus (THaApparatus *)
 
 THaDetector ()
 
virtual ~THaDetector ()
 
- Public Member Functions inherited from THaDetectorBase
virtual void Clear (Option_t *="")
 
TVector3 DetToTrackCoord (const TVector3 &point) const
 
TVector3 DetToTrackCoord (Double_t x, Double_t y) const
 
Int_t FillDetMap (const std::vector< Int_t > &values, UInt_t flags=0, const char *here="FillDetMap")
 
VecDetData_tGetDetectorData ()
 
THaDetMapGetDetMap () const
 
Int_t GetNelem () const
 
Int_t GetNviews () const
 
const TVector3GetOrigin () const
 
const Double_tGetSize () const
 
virtual Int_t GetView (const DigitizerHitInfo_t &hitinfo) const
 
const TVector3GetXax () const
 
Double_t GetXSize () const
 
const TVector3GetYax () const
 
Double_t GetYSize () const
 
const TVector3GetZax () const
 
Double_t GetZSize () const
 
virtual Bool_t IsInActiveArea (const TVector3 &point) const
 
virtual Bool_t IsInActiveArea (Double_t x, Double_t y) const
 
void PrintDetMap (Option_t *opt="") const
 
virtual void Reset (Option_t *opt="")
 
 THaDetectorBase ()
 
TVector3 TrackToDetCoord (const TVector3 &point) const
 
virtual ~THaDetectorBase ()
 
- Public Member Functions inherited from THaAnalysisObject
virtual Int_t Begin (THaRunBase *r=nullptr)
 
const char * GetClassName () const
 
const char * GetConfig () const
 
virtual const char * GetDBFileName () const
 
Int_t GetDebug () const
 
TDatime GetInitDate () const
 
const char * GetPrefix () const
 
TString GetPrefixName () const
 
EStatus Init ()
 
virtual Int_t InitOutput (THaOutput *)
 
Bool_t IsInit () const
 
Bool_t IsOK () const
 
Bool_t IsOKOut () const
 
virtual FILE * OpenFile (const TDatime &date)
 
virtual FILE * OpenRunDBFile (const TDatime &date)
 
THaAnalysisObjectoperator= (const THaAnalysisObject &&)=delete
 
THaAnalysisObjectoperator= (const THaAnalysisObject &)=delete
 
virtual void Print (Option_t *opt="") const
 
void SetConfig (const char *label)
 
virtual void SetDebug (Int_t level)
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
EStatus Status () const
 
 THaAnalysisObject ()
 
 THaAnalysisObject (const THaAnalysisObject &&)=delete
 
 THaAnalysisObject (const THaAnalysisObject &)=delete
 
virtual ~THaAnalysisObject ()
 
- Public Member Functions inherited from TNamed
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
- Public Member Functions inherited from TObject
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
virtual void Browse (TBrowser *b)
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
virtual void RecursiveRemove (TObject *obj)
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
 TObject ()
 
 TObject (const TObject &object)
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 
virtual ~TObject ()
 
- Public Member Functions inherited from THcHitList
void CreateMissReportParms (const char *prefix) const
 
virtual Int_t DecodeToHitList (const THaEvData &evdata, Bool_t suppress=kFALSE)
 Populate the hitlist from the raw event data.
 
void DisableSlipCorrection ()
 
TClonesArrayGetHitList () const
 
void InitHitList (THaDetMap *detmap, const char *hitclass, Int_t maxhits, Int_t tdcref_cut=0, Int_t adcref_cut=0)
 Save the electronics module to detector mapping and initialize a hit array of hits of class hitclass.
 
void MissReport (const char *name) const
 
 THcHitList ()
 
virtual ~THcHitList ()
 

Protected Member Functions

void ClearEvent ()
 
virtual Int_t DefineVariables (EMode mode=kDefine)
 
void DeleteArrays ()
 
Double_t DpsiFun (Double_t ray[4], Int_t plane)
 
void Eff ()
 
void EfficiencyPerWire (Int_t golden_track_index)
 
void EffInit ()
 
void FitLineToTrack (Int_t TrackHits, Double_t coords[], Int_t planes[], Double_t wiresigma[], Double_t TrackCoord[], Double_t save_ray[])
 
void LinkStubs ()
 
void NewLinkStubs ()
 
void NewTrackFit (UInt_t TrackIndex)
 
void PrintSpacePoints ()
 
void PrintStubs ()
 
void PrintTrack ()
 
virtual Int_t ReadDatabase (const TDatime &date)
 
void Setup (const char *name, const char *description)
 
void TrackFit ()
 
- Protected Member Functions inherited from THaTrackingDetector
virtual THaTrackAddTrack (TClonesArray &tracks, Double_t x, Double_t y, Double_t theta, Double_t phi, THaTrackID *ID=nullptr)
 
 THaTrackingDetector (const char *name, const char *description, THaApparatus *a=nullptr)
 
- Protected Member Functions inherited from THaSpectrometerDetector
 THaSpectrometerDetector (const char *name, const char *description, THaApparatus *a=nullptr)
 
- Protected Member Functions inherited from THaDetector
virtual void MakePrefix ()
 
 THaDetector (const char *name, const char *description, THaApparatus *apparatus=nullptr)
 
- Protected Member Functions inherited from THaDetectorBase
void DataLoadWarning (const DigitizerHitInfo_t &hitinfo, const char *here)
 
void DebugWarning (const char *here, const char *msg, UInt_t evnum)
 
virtual void DefineAxes (Double_t rotation_angle)
 
virtual OptUInt_t LoadData (const THaEvData &evdata, const DigitizerHitInfo_t &hitinfo)
 
void MultipleHitWarning (const DigitizerHitInfo_t &hitinfo, const char *here)
 
virtual void PrintDecodedData (const THaEvData &evdata) const
 
virtual Int_t ReadGeometry (FILE *file, const TDatime &date, Bool_t required=false)
 
virtual Int_t StoreHit (const DigitizerHitInfo_t &hitinfo, UInt_t data)
 
 THaDetectorBase (const char *name, const char *description)
 
- Protected Member Functions inherited from THaAnalysisObject
virtual const char * ClassNameHere (const char *) const
 
Int_t DefineVarsFromList (const RVarDef *list, EMode mode, const char *def_prefix="", const char *comment_subst="") const
 
Int_t DefineVarsFromList (const VarDef *list, EMode mode=kDefine, const char *def_prefix="", const char *comment_subst="") const
 
Int_t DefineVarsFromList (const void *list, EType type, EMode mode, const char *def_prefix="", const char *comment_subst="") const
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
THaAnalysisObjectFindModule (const char *name, const char *classname, bool do_error=true)
 
virtual const char * Here (const char *) const
 
Int_t LoadDB (FILE *f, const TDatime &date, const DBRequest *req, Int_t search=0) const
 
void MakePrefix (const char *basename)
 
virtual Int_t ReadRunDatabase (const TDatime &date)
 
Int_t RemoveVariables ()
 
 THaAnalysisObject (const char *name, const char *description)
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
- Protected Member Functions inherited from THcHitList
 ClassDef (THcHitList, 0)
 

Protected Attributes

Double_tfAlphaAngle
 
Double_tfBetaAngle
 
Double_tfCentralTime
 
Double_tfCentralWire
 
std::vector< THcDriftChamber * > fChambers
 
Double_t fChisq_best
 
TClonesArrayfDCTracks
 
Int_t fdebugflagpr
 
Int_t fdebugflagstubs
 
Int_t fdebuglinkstubs
 
Int_t fdebugprintdecodeddc
 
Int_t fdebugprintrawdc
 
Int_t fdebugtrackprint
 
Double_tfDist_best
 
Int_tfDriftTimeSign
 
Int_t fFixLR
 
Int_t fFixPropagationCorrection
 
Double_tfGammaAngle
 
Int_t fHMSStyleChambers
 
Bool_t fInSideDipoleExit_best
 
Double_tfLR_best
 
Int_tfMaxHits
 
Int_tfMinCombos
 
Int_tfMinHits
 
Int_t fN_True_RawHits
 
Int_tfNChamber
 
UInt_t fNChambers
 
Int_tfNChamHits
 
UInt_t fNDCTracks
 
Int_t fNhits
 
Int_t fNPlanes
 
Int_t fNSp
 
Int_t fNsp_best
 
Double_t fNSperChan
 
Int_t fNthits
 
Int_t fNTracksMaxFP
 
Int_tfNWires
 
Double_tfPitch
 
Double_t ** fPlaneCoeffs
 
Int_tfPlaneEvents
 
char ** fPlaneNames
 
std::vector< THcDriftChamberPlane * > fPlanes
 
Double_tfPlaneTimeZero
 
Double_tfPos_best
 
char fPrefix [2]
 
Bool_tfPresentP
 
Int_t fProjectToChamber
 
Int_tfReadoutLR
 
Int_tfReadoutTB
 
Double_tfResiduals
 
Double_tfResidualsExclPlane
 
Double_tfSigma
 
Int_t fSingleStub
 
Int_t fSp1_ID_best
 
Int_t fSp2_ID_best
 
Double_tfSpace_Point_Criterion
 
Int_t fStubTest
 
Int_t fTDC_RefTimeCut
 
Int_tfTdcWinMax
 
Int_tfTdcWinMin
 
Int_t fTotEvents
 
Double_t fTrackLargeResidCut
 
TClonesArrayfTrackProj
 
Int_t fUseNewFindSpacePoints
 
Int_t fUseNewLinkStubs
 
Int_t fUseNewTrackFit
 
Int_t fVersion
 
Double_tfWire_hit_did
 
Double_tfWire_hit_should
 
Int_tfWireOrder
 
Double_t fWireVelocity
 
Double_t fX_fp_best
 
Double_tfXCenter
 
Double_t fXp_fp_best
 
Double_tfXPos
 
Double_t fXptTrCriterion
 
Double_t fXtTrCriterion
 
Double_t fY_fp_best
 
Double_tfYCenter
 
Double_t fYp_fp_best
 
Double_tfYPos
 
Double_t fYptTrCriterion
 
Double_t fYtTrCriterion
 
Double_tfZPos
 
- Protected Attributes inherited from THaDetectorBase
VecDetData_t fDetectorData
 
THaDetMapfDetMap
 
Int_t fNelem
 
Int_t fNviews
 
TVector3 fOrigin
 
Double_t fSize [3]
 
TVector3 fXax
 
TVector3 fYax
 
TVector3 fZax
 
- Protected Attributes inherited from THaAnalysisObject
TString fConfig
 
Int_t fDebug
 
TObjectfExtra
 
TDatime fInitDate
 
Bool_t fIsInit
 
Bool_t fIsSetup
 
std::map< std::string, UInt_tfMessages
 
UInt_t fNEventsWithWarnings
 
Bool_t fOKOut
 
char * fPrefix
 
UInt_t fProperties
 
EStatus fStatus
 
 kConfigOverride
 
 kNeedsRunDB
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 
- Protected Attributes inherited from THcHitList
Bool_t fDisableSlipCorrection
 
std::map< UInt_t, Decoder::Fadc250Module * > fFADCSlotMap
 
Bool_t fHaveFADCInfo
 
Decoder::THaCrateMapfMap
 
Int_t fNADCRef_miss
 
Int_t fNPED
 
Int_t fNRefIndex
 
Int_t fNSA
 
Int_t fNSB
 
UInt_t fNSignals
 
Int_t fNTDCRef_miss
 
THcConfigEvtHandlerfPSE125
 
std::vector< UInt_tfRefIdxDefined
 
std::vector< RefIndexMapfRefIndexMaps
 
THcRawHit::ESignalTypefSignalTypes
 
Int_t fTICrate
 
Int_t fTISlot
 
std::map< UInt_t, Int_tfTrigTimeShiftMap
 

Static Protected Attributes

static const UInt_t MAXTRACKS = 100
 

Additional Inherited Members

- Public Types inherited from THaDetectorBase
typedef std::vector< std::unique_ptr< Podd::DetectorData > > VecDetData_t
 
- Public Types inherited from THaAnalysisObject
enum  EMode
 
enum  EStatus
 
enum  EType
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from THaAnalysisObject
static Int_t DefineVarsFromList (const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="")
 
static void GeoToSph (Double_t th_geo, Double_t ph_geo, Double_t &th_sph, Double_t &ph_sph)
 
static Bool_t IntersectPlaneWithRay (const TVector3 &xax, const TVector3 &yax, const TVector3 &org, const TVector3 &ray_start, const TVector3 &ray_vect, Double_t &length, TVector3 &intersect)
 
static Int_t LoadDB (FILE *file, const TDatime &date, const DBRequest *request, const char *prefix, Int_t search=0, const char *here="THaAnalysisObject::LoadDB")
 
static void PrintObjects (Option_t *opt="")
 
static void SphToGeo (Double_t th_sph, Double_t ph_sph, Double_t &th_geo, Double_t &ph_geo)
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from THaAnalysisObject
 kDefine
 
 kDelete
 
 kFileError
 
 kInitError
 
 kNotinit
 
 kOK
 
 kRVarDef
 
 kVarDef
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Public Attributes inherited from THcHitList
Bool_t fADC_RefTimeBest
 
Int_t fADC_RefTimeCut
 
THaDetMapfdMap
 
Int_t fNMaxRawHits
 
UInt_t fNRawHits
 
TClassfRawHitClass
 
TClonesArrayfRawHitList
 
Bool_t fTDC_RefTimeBest
 
Int_t fTDC_RefTimeCut
 
- Protected Types inherited from THaAnalysisObject
enum  EProperties
 

Detailed Description

Analyze a package of horizontal drift chambers.

Uses the first letter of the apparatus name as a prefix to parameter names. The paramters, read in the Setup method, determine the number of chambers and the number of parameters per plane.

Author
S. A. Wood, based on Fortran ENGINE

Definition at line 23 of file THcDC.h.

Constructor & Destructor Documentation

◆ THcDC() [1/2]

THcDC::THcDC ( const char *  name,
const char *  description = "",
THaApparatus a = NULL 
)

Definition at line 41 of file THcDC.cxx.

◆ ~THcDC()

THcDC::~THcDC ( )
virtual

Definition at line 447 of file THcDC.cxx.

◆ THcDC() [2/2]

THcDC::THcDC ( )

Definition at line 188 of file THcDC.cxx.

Member Function Documentation

◆ ApplyCorrections()

Int_t THcDC::ApplyCorrections ( void  )
virtual

Definition at line 601 of file THcDC.cxx.

◆ ClearEvent()

void THcDC::ClearEvent ( )
inlineprotected

Definition at line 519 of file THcDC.cxx.

◆ CoarseTrack()

Int_t THcDC::CoarseTrack ( TClonesArray tracks)
virtual

Find a set of tracks through the drift chambers and put them into the tracks TClonesArray. Tracks are in the detector coordinate system.

Implements THaTrackingDetector.

Definition at line 607 of file THcDC.cxx.

◆ Decode()

Int_t THcDC::Decode ( const THaEvData evdata)
virtual

Decode event into hit list. Pass hit list to the planes. Load hits from planes into chamber objects

Reimplemented from THaDetectorBase.

Definition at line 552 of file THcDC.cxx.

◆ DefineVariables()

Int_t THcDC::DefineVariables ( EMode  mode = kDefine)
protectedvirtual

Initialize global variables for histograms and Root tree

Reimplemented from THaDetectorBase.

Definition at line 398 of file THcDC.cxx.

◆ DeleteArrays()

void THcDC::DeleteArrays ( )
protected

Definition at line 467 of file THcDC.cxx.

◆ DpsiFun()

Double_t THcDC::DpsiFun ( Double_t  ray[4],
Int_t  plane 
)
protected

this function calculates the psi coordinate of the intersection of a ray (defined by ray) with a hms wire chamber plane. the geometry of the plane is contained in the coeff array calculated in the array hplane_coeff Note it is call by MINUIT via H_FCNCHISQ and so uses double precision variables

the ray is defined by x = (z-zt)*tan(xp) + xt y = (z-zt)*tan(yp) + yt at some fixed value of zt* ray(1) = xt ray(2) = yt ray(3) = tan(xp) ray(4) = tan(yp)

Definition at line 1570 of file THcDC.cxx.

◆ Eff()

void THcDC::Eff ( )
protected

Accumulate statistics for efficiency calculations

Definition at line 1643 of file THcDC.cxx.

◆ EfficiencyPerWire()

void THcDC::EfficiencyPerWire ( Int_t  golden_track_index)
protected

Definition at line 725 of file THcDC.cxx.

◆ EffInit()

void THcDC::EffInit ( )
protected

Create, and initialize counters used to calculate efficiencies. Register the counters in gHcParms so that the variables can be used in end of run reports.

Definition at line 1619 of file THcDC.cxx.

◆ End()

Int_t THcDC::End ( THaRunBase run = 0)
virtual

Reimplemented from THaDetector.

Definition at line 1611 of file THcDC.cxx.

◆ FineTrack()

Int_t THcDC::FineTrack ( TClonesArray tracks)
virtual

Implements THaTrackingDetector.

Definition at line 695 of file THcDC.cxx.

◆ FitLineToTrack()

void THcDC::FitLineToTrack ( Int_t  TrackHits,
Double_t  coords[],
Int_t  planes[],
Double_t  wiresigma[],
Double_t  TrackCoord[],
Double_t  save_ray[] 
)
protected

Definition at line 1071 of file THcDC.cxx.

◆ GetAlphaAngle()

Double_t THcDC::GetAlphaAngle ( Int_t  plane) const
inline

Definition at line 55 of file THcDC.h.

◆ GetBetaAngle()

Double_t THcDC::GetBetaAngle ( Int_t  plane) const
inline

Definition at line 56 of file THcDC.h.

◆ GetCenter()

Double_t THcDC::GetCenter ( Int_t  plane) const
inline

Definition at line 76 of file THcDC.h.

◆ GetCentralTime()

Double_t THcDC::GetCentralTime ( Int_t  plane) const
inline

Definition at line 63 of file THcDC.h.

◆ GetCentralWire()

Double_t THcDC::GetCentralWire ( Int_t  plane) const
inline

Definition at line 48 of file THcDC.h.

◆ GetDriftTimeSign()

Int_t THcDC::GetDriftTimeSign ( Int_t  plane) const
inline

Definition at line 64 of file THcDC.h.

◆ GetFixPropagationCorrectionFlag()

Int_t THcDC::GetFixPropagationCorrectionFlag ( ) const
inline

Definition at line 72 of file THcDC.h.

◆ GetGammaAngle()

Double_t THcDC::GetGammaAngle ( Int_t  plane) const
inline

Definition at line 57 of file THcDC.h.

◆ GetMaxHits()

Int_t THcDC::GetMaxHits ( Int_t  chamber) const
inline

Definition at line 60 of file THcDC.h.

◆ GetMinCombos()

Int_t THcDC::GetMinCombos ( Int_t  chamber) const
inline

Definition at line 61 of file THcDC.h.

◆ GetMinHits()

Int_t THcDC::GetMinHits ( Int_t  chamber) const
inline

Definition at line 59 of file THcDC.h.

◆ GetNChamber()

Int_t THcDC::GetNChamber ( Int_t  plane) const
inline

Definition at line 45 of file THcDC.h.

◆ GetNSperChan()

Double_t THcDC::GetNSperChan ( ) const
inline

Definition at line 74 of file THcDC.h.

◆ GetNWires()

Int_t THcDC::GetNWires ( Int_t  plane) const
inline

Definition at line 44 of file THcDC.h.

◆ GetPitch()

Double_t THcDC::GetPitch ( Int_t  plane) const
inline

Definition at line 47 of file THcDC.h.

◆ GetPlaneTimeZero()

Double_t THcDC::GetPlaneTimeZero ( Int_t  plane) const
inline

Definition at line 70 of file THcDC.h.

◆ GetReadoutLR()

Int_t THcDC::GetReadoutLR ( Int_t  plane) const
inline

Definition at line 65 of file THcDC.h.

◆ GetReadoutTB()

Int_t THcDC::GetReadoutTB ( Int_t  plane) const
inline

Definition at line 66 of file THcDC.h.

◆ GetSigma()

Double_t THcDC::GetSigma ( Int_t  plane) const
inline

Definition at line 71 of file THcDC.h.

◆ GetSpacePointCriterion()

Double_t THcDC::GetSpacePointCriterion ( Int_t  chamber) const
inline

Definition at line 62 of file THcDC.h.

◆ GetTdcWinMax()

Int_t THcDC::GetTdcWinMax ( Int_t  plane) const
inline

Definition at line 50 of file THcDC.h.

◆ GetTdcWinMin()

Int_t THcDC::GetTdcWinMin ( Int_t  plane) const
inline

Definition at line 49 of file THcDC.h.

◆ GetVersion()

Int_t THcDC::GetVersion ( ) const
inline

Definition at line 67 of file THcDC.h.

◆ GetWireOrder()

Int_t THcDC::GetWireOrder ( Int_t  plane) const
inline

Definition at line 46 of file THcDC.h.

◆ GetXPos()

Double_t THcDC::GetXPos ( Int_t  plane) const
inline

Definition at line 52 of file THcDC.h.

◆ GetYPos()

Double_t THcDC::GetYPos ( Int_t  plane) const
inline

Definition at line 53 of file THcDC.h.

◆ GetZPos()

Double_t THcDC::GetZPos ( Int_t  plane) const
inline

Definition at line 54 of file THcDC.h.

◆ Init()

THaAnalysisObject::EStatus THcDC::Init ( const TDatime run_time)
virtual

Reimplemented from THaAnalysisObject.

Definition at line 195 of file THcDC.cxx.

◆ LinkStubs()

void THcDC::LinkStubs ( )
protected

The logic is 0) Put all space points in a single list 1) loop over all space points as seeds isp1 2) Check if this space point is all ready in a track 3) loop over all succeeding space pointss isp2 4) check if there is a track-criterion match either add to existing track or if there is another point in same chamber make a copy containing isp2 rather than other point in same chamber 5) If hsingle_stub is set, make a track of all single stubs.

Definition at line 859 of file THcDC.cxx.

◆ NewLinkStubs()

void THcDC::NewLinkStubs ( )
protected

Definition at line 778 of file THcDC.cxx.

◆ NewTrackFit()

void THcDC::NewTrackFit ( UInt_t  TrackIndex)
protected

Definition at line 1111 of file THcDC.cxx.

◆ PrintSpacePoints()

void THcDC::PrintSpacePoints ( )
protected

Definition at line 744 of file THcDC.cxx.

◆ PrintStubs()

void THcDC::PrintStubs ( )
protected

Definition at line 763 of file THcDC.cxx.

◆ PrintTrack()

void THcDC::PrintTrack ( )
protected

Definition at line 1534 of file THcDC.cxx.

◆ ReadDatabase()

Int_t THcDC::ReadDatabase ( const TDatime date)
protectedvirtual

Read this detector's parameters from the ThcParmList This function is called by THaDetectorBase::Init() once at the beginning of the analysis.

Reimplemented from THaDetectorBase.

Definition at line 269 of file THcDC.cxx.

◆ SetFocalPlaneBestTrack()

void THcDC::SetFocalPlaneBestTrack ( Int_t  golden_track_index)

Definition at line 700 of file THcDC.cxx.

◆ Setup()

void THcDC::Setup ( const char *  name,
const char *  description 
)
protected

Definition at line 94 of file THcDC.cxx.

◆ TrackFit()

void THcDC::TrackFit ( )
protected

Primary track fitting routine

Definition at line 1241 of file THcDC.cxx.

Member Data Documentation

◆ fAlphaAngle

Double_t* THcDC::fAlphaAngle
protected

Definition at line 170 of file THcDC.h.

◆ fBetaAngle

Double_t* THcDC::fBetaAngle
protected

Definition at line 171 of file THcDC.h.

◆ fCentralTime

Double_t* THcDC::fCentralTime
protected

Definition at line 158 of file THcDC.h.

◆ fCentralWire

Double_t* THcDC::fCentralWire
protected

Definition at line 174 of file THcDC.h.

◆ fChambers

std::vector<THcDriftChamber*> THcDC::fChambers
protected

Definition at line 203 of file THcDC.h.

◆ fChisq_best

Double_t THcDC::fChisq_best
protected

Definition at line 183 of file THcDC.h.

◆ fDCTracks

TClonesArray* THcDC::fDCTracks
protected

Definition at line 100 of file THcDC.h.

◆ fdebugflagpr

Int_t THcDC::fdebugflagpr
protected

Definition at line 91 of file THcDC.h.

◆ fdebugflagstubs

Int_t THcDC::fdebugflagstubs
protected

Definition at line 92 of file THcDC.h.

◆ fdebuglinkstubs

Int_t THcDC::fdebuglinkstubs
protected

Definition at line 89 of file THcDC.h.

◆ fdebugprintdecodeddc

Int_t THcDC::fdebugprintdecodeddc
protected

Definition at line 94 of file THcDC.h.

◆ fdebugprintrawdc

Int_t THcDC::fdebugprintrawdc
protected

Definition at line 90 of file THcDC.h.

◆ fdebugtrackprint

Int_t THcDC::fdebugtrackprint
protected

Definition at line 93 of file THcDC.h.

◆ fDist_best

Double_t* THcDC::fDist_best
protected

Definition at line 125 of file THcDC.h.

◆ fDriftTimeSign

Int_t* THcDC::fDriftTimeSign
protected

Definition at line 162 of file THcDC.h.

◆ fFixLR

Int_t THcDC::fFixLR
protected

Definition at line 108 of file THcDC.h.

◆ fFixPropagationCorrection

Int_t THcDC::fFixPropagationCorrection
protected

Definition at line 110 of file THcDC.h.

◆ fGammaAngle

Double_t* THcDC::fGammaAngle
protected

Definition at line 172 of file THcDC.h.

◆ fHMSStyleChambers

Int_t THcDC::fHMSStyleChambers
protected

Definition at line 95 of file THcDC.h.

◆ fInSideDipoleExit_best

Bool_t THcDC::fInSideDipoleExit_best
protected

Definition at line 186 of file THcDC.h.

◆ fLR_best

Double_t* THcDC::fLR_best
protected

Definition at line 126 of file THcDC.h.

◆ fMaxHits

Int_t* THcDC::fMaxHits
protected

Definition at line 149 of file THcDC.h.

◆ fMinCombos

Int_t* THcDC::fMinCombos
protected

Definition at line 150 of file THcDC.h.

◆ fMinHits

Int_t* THcDC::fMinHits
protected

Definition at line 148 of file THcDC.h.

◆ fN_True_RawHits

Int_t THcDC::fN_True_RawHits
protected

Definition at line 122 of file THcDC.h.

◆ fNChamber

Int_t* THcDC::fNChamber
protected

Definition at line 160 of file THcDC.h.

◆ fNChambers

UInt_t THcDC::fNChambers
protected

Definition at line 107 of file THcDC.h.

◆ fNChamHits

Int_t* THcDC::fNChamHits
protected

Definition at line 189 of file THcDC.h.

◆ fNDCTracks

UInt_t THcDC::fNDCTracks
protected

Definition at line 99 of file THcDC.h.

◆ fNhits

Int_t THcDC::fNhits
protected

Definition at line 120 of file THcDC.h.

◆ fNPlanes

Int_t THcDC::fNPlanes
protected

Definition at line 105 of file THcDC.h.

◆ fNSp

Int_t THcDC::fNSp
protected

Definition at line 123 of file THcDC.h.

◆ fNsp_best

Int_t THcDC::fNsp_best
protected

Definition at line 124 of file THcDC.h.

◆ fNSperChan

Double_t THcDC::fNSperChan
protected

Definition at line 133 of file THcDC.h.

◆ fNthits

Int_t THcDC::fNthits
protected

Definition at line 121 of file THcDC.h.

◆ fNTracksMaxFP

Int_t THcDC::fNTracksMaxFP
protected

Definition at line 136 of file THcDC.h.

◆ fNWires

Int_t* THcDC::fNWires
protected

Definition at line 159 of file THcDC.h.

◆ fPitch

Double_t* THcDC::fPitch
protected

Definition at line 173 of file THcDC.h.

◆ fPlaneCoeffs

Double_t** THcDC::fPlaneCoeffs
protected

Definition at line 177 of file THcDC.h.

◆ fPlaneEvents

Int_t* THcDC::fPlaneEvents
protected

Definition at line 190 of file THcDC.h.

◆ fPlaneNames

char** THcDC::fPlaneNames
protected

Definition at line 106 of file THcDC.h.

◆ fPlanes

std::vector<THcDriftChamberPlane*> THcDC::fPlanes
protected

Definition at line 202 of file THcDC.h.

◆ fPlaneTimeZero

Double_t* THcDC::fPlaneTimeZero
protected

Definition at line 175 of file THcDC.h.

◆ fPos_best

Double_t* THcDC::fPos_best
protected

Definition at line 127 of file THcDC.h.

◆ fPrefix

char THcDC::fPrefix[2]
protected

Definition at line 104 of file THcDC.h.

◆ fPresentP

Bool_t* THcDC::fPresentP
protected

Definition at line 194 of file THcDC.h.

◆ fProjectToChamber

Int_t THcDC::fProjectToChamber
protected

Definition at line 114 of file THcDC.h.

◆ fReadoutLR

Int_t* THcDC::fReadoutLR
protected

Definition at line 164 of file THcDC.h.

◆ fReadoutTB

Int_t* THcDC::fReadoutTB
protected

Definition at line 163 of file THcDC.h.

◆ fResiduals

Double_t* THcDC::fResiduals
protected

Definition at line 128 of file THcDC.h.

◆ fResidualsExclPlane

Double_t* THcDC::fResidualsExclPlane
protected

Definition at line 129 of file THcDC.h.

◆ fSigma

Double_t* THcDC::fSigma
protected

Definition at line 176 of file THcDC.h.

◆ fSingleStub

Int_t THcDC::fSingleStub
protected

Definition at line 135 of file THcDC.h.

◆ fSp1_ID_best

Int_t THcDC::fSp1_ID_best
protected

Definition at line 184 of file THcDC.h.

◆ fSp2_ID_best

Int_t THcDC::fSp2_ID_best
protected

Definition at line 185 of file THcDC.h.

◆ fSpace_Point_Criterion

Double_t* THcDC::fSpace_Point_Criterion
protected

Definition at line 151 of file THcDC.h.

◆ fStubTest

Int_t THcDC::fStubTest
protected

Definition at line 119 of file THcDC.h.

◆ fTDC_RefTimeCut

Int_t THcDC::fTDC_RefTimeCut
protected

Definition at line 96 of file THcDC.h.

◆ fTdcWinMax

Int_t* THcDC::fTdcWinMax
protected

Definition at line 157 of file THcDC.h.

◆ fTdcWinMin

Int_t* THcDC::fTdcWinMin
protected

Definition at line 156 of file THcDC.h.

◆ fTotEvents

Int_t THcDC::fTotEvents
protected

Definition at line 188 of file THcDC.h.

◆ fTrackLargeResidCut

Double_t THcDC::fTrackLargeResidCut
protected

Definition at line 97 of file THcDC.h.

◆ fTrackProj

TClonesArray* THcDC::fTrackProj
protected

Definition at line 205 of file THcDC.h.

◆ fUseNewFindSpacePoints

Int_t THcDC::fUseNewFindSpacePoints
protected

Definition at line 88 of file THcDC.h.

◆ fUseNewLinkStubs

Int_t THcDC::fUseNewLinkStubs
protected

Definition at line 141 of file THcDC.h.

◆ fUseNewTrackFit

Int_t THcDC::fUseNewTrackFit
protected

Definition at line 142 of file THcDC.h.

◆ fVersion

Int_t THcDC::fVersion
protected

Definition at line 143 of file THcDC.h.

◆ fWire_hit_did

Double_t* THcDC::fWire_hit_did
protected

Definition at line 130 of file THcDC.h.

◆ fWire_hit_should

Double_t* THcDC::fWire_hit_should
protected

Definition at line 131 of file THcDC.h.

◆ fWireOrder

Int_t* THcDC::fWireOrder
protected

Definition at line 161 of file THcDC.h.

◆ fWireVelocity

Double_t THcDC::fWireVelocity
protected

Definition at line 134 of file THcDC.h.

◆ fX_fp_best

Double_t THcDC::fX_fp_best
protected

Definition at line 179 of file THcDC.h.

◆ fXCenter

Double_t* THcDC::fXCenter
protected

Definition at line 146 of file THcDC.h.

◆ fXp_fp_best

Double_t THcDC::fXp_fp_best
protected

Definition at line 181 of file THcDC.h.

◆ fXPos

Double_t* THcDC::fXPos
protected

Definition at line 167 of file THcDC.h.

◆ fXptTrCriterion

Double_t THcDC::fXptTrCriterion
protected

Definition at line 139 of file THcDC.h.

◆ fXtTrCriterion

Double_t THcDC::fXtTrCriterion
protected

Definition at line 137 of file THcDC.h.

◆ fY_fp_best

Double_t THcDC::fY_fp_best
protected

Definition at line 180 of file THcDC.h.

◆ fYCenter

Double_t* THcDC::fYCenter
protected

Definition at line 147 of file THcDC.h.

◆ fYp_fp_best

Double_t THcDC::fYp_fp_best
protected

Definition at line 182 of file THcDC.h.

◆ fYPos

Double_t* THcDC::fYPos
protected

Definition at line 168 of file THcDC.h.

◆ fYptTrCriterion

Double_t THcDC::fYptTrCriterion
protected

Definition at line 140 of file THcDC.h.

◆ fYtTrCriterion

Double_t THcDC::fYtTrCriterion
protected

Definition at line 138 of file THcDC.h.

◆ fZPos

Double_t* THcDC::fZPos
protected

Definition at line 169 of file THcDC.h.

◆ MAXTRACKS

const UInt_t THcDC::MAXTRACKS = 100
staticprotected

Definition at line 200 of file THcDC.h.


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