class THaVDC: public THaTrackingDetector


THaVDC

High precision wire chamber class.

Units used:
For X, Y, and Z coordinates of track    -  meters
For Theta and Phi angles of track       -  tan(angle)


Function Members (Methods)

public:
THaVDC(const char* name, const char* description = "", THaApparatus* a = 0)
virtual~THaVDC()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Int_tTHaAnalysisObject::Begin(THaRunBase* r = 0)
virtual voidTObject::Browse(TBrowser* b)
boolTHaSpectrometerDetector::CalcInterceptCoords(THaTrack* track, Double_t& x, Double_t& y)
boolTHaSpectrometerDetector::CalcPathLen(THaTrack* track, Double_t& t)
boolTHaSpectrometerDetector::CheckIntercept(THaTrack* track)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* opt = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tCoarseTrack(TClonesArray& tracks)
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual Int_tDecode(const THaEvData&)
static Int_tTHaAnalysisObject::DefineVarsFromList(const void* list, THaAnalysisObject::EType type, THaAnalysisObject::EMode mode, const char* var_prefix, const TObject* obj, const char* prefix, const char* here)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual Int_tTHaAnalysisObject::End(THaRunBase* r = 0)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
Int_tTHaDetectorBase::FillDetMap(const vector<Int_t>& values, UInt_t flags = 0, const char* here = "FillDetMap")
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Int_tFindVertices(TClonesArray& tracks)
virtual Int_tFineTrack(TClonesArray& tracks)
static voidTHaAnalysisObject::GeoToSph(Double_t th_geo, Double_t ph_geo, Double_t& th_sph, Double_t& ph_sph)
THaApparatus*THaDetector::GetApparatus() const
const char*THaAnalysisObject::GetConfig() const
virtual const char*THaAnalysisObject::GetDBFileName() const
Int_tTHaAnalysisObject::GetDebug() const
THaDetMap*THaDetectorBase::GetDetMap() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
TDatimeTHaAnalysisObject::GetInitDate() const
virtual THaVDCUVPlane*GetLower()
virtual const char*TNamed::GetName() const
Int_tTHaDetectorBase::GetNelem() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const TVector3&THaDetectorBase::GetOrigin() const
const char*THaAnalysisObject::GetPrefix() const
const Float_t*THaDetectorBase::GetSize() const
virtual Double_tGetSpacing()
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual THaVDCUVPlane*GetUpper()
virtual Double_tGetVDCAngle()
Float_tTHaDetectorBase::GetXSize() const
Float_tTHaDetectorBase::GetYSize() const
Float_tTHaDetectorBase::GetZSize() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual THaAnalysisObject::EStatusInit(const TDatime& date)
virtual Int_tTHaAnalysisObject::InitOutput(THaOutput*)
virtual voidTObject::Inspect() constMENU
static Bool_tTHaAnalysisObject::IntersectPlaneWithRay(const TVector3& xax, const TVector3& yax, const TVector3& org, const TVector3& ray_start, const TVector3& ray_vect, Double_t& length, TVector3& intersect)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTHaAnalysisObject::IsInit() const
Bool_tTHaAnalysisObject::IsOK() const
Bool_tTHaAnalysisObject::IsOKOut()
Bool_tTObject::IsOnHeap() const
virtual Bool_tTHaTrackingDetector::IsPid()
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTHaTrackingDetector::IsTracking()
Bool_tTObject::IsZombie() const
static Int_tTHaAnalysisObject::LoadDB(FILE* file, const TDatime& date, const DBRequest* request, const char* prefix = "", Int_t search = 0)
static Int_tTHaAnalysisObject::LoadDB(FILE* file, const TDatime& date, const TagDef* tags, const char* prefix = "", Int_t search = 0)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, Double_t& value)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, Int_t& value)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, string& text)
static Int_tTHaAnalysisObject::LoadDBvalue(FILE* file, const TDatime& date, const char* tag, TString& text)
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static FILE*THaAnalysisObject::OpenFile(const char* name, const TDatime& date, const char* here = "OpenFile()", const char* filemode = "r", const int debug_flag = 1)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt) const
voidTHaDetectorBase::PrintDetMap(Option_t* opt = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
static Int_tTHaAnalysisObject::SeekDBconfig(FILE* file, const char* tag, const char* label = "config", Bool_t end_on_tag = false)
static Int_tTHaAnalysisObject::SeekDBdate(FILE* file, const TDatime& date, Bool_t end_on_tag = false)
virtual voidTHaDetector::SetApparatus(THaApparatus*)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidTHaAnalysisObject::SetConfig(const char* label)
virtual voidTHaAnalysisObject::SetDebug(Int_t level)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTHaAnalysisObject::SetName(const char* name)
virtual voidTHaAnalysisObject::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
static voidTHaAnalysisObject::SphToGeo(Double_t th_sph, Double_t ph_sph, Double_t& th_geo, Double_t& ph_geo)
THaAnalysisObject::EStatusTHaAnalysisObject::Status() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
static vector<std::string>THaAnalysisObject::vsplit(const string& s)
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual THaTrack*THaTrackingDetector::AddTrack(TClonesArray& tracks, Double_t x, Double_t y, Double_t theta, Double_t phi, THaTrackID* ID = 0)
voidCalcFocalPlaneCoords(THaTrack* track, const THaVDC::ECoordTypes mode)
voidCalcMatrix(const double x, vector<THaMatrixElement>& matrix)
Double_tCalcTarget2FPLen(const vector<THaMatrixElement>& matrix, const Double_t powers[][5])
voidCalcTargetCoords(THaTrack* the_track, const THaVDC::ECoordTypes mode)
Double_tCalcTargetVar(const vector<THaMatrixElement>& matrix, const double powers[][5])
boolTHaSpectrometerDetector::CalcTrackIntercept(THaTrack* track, Double_t& t, Double_t& ycross, Double_t& xcross)
virtual Int_tConstructTracks(TClonesArray* tracks = 0, Int_t flag = 0)
voidCorrectTimeOfFlight(TClonesArray& tracks)
virtual voidTHaSpectrometerDetector::DefineAxes(Double_t rotation_angle)
virtual Int_tTHaAnalysisObject::DefineVariables(THaAnalysisObject::EMode mode = kDefine)
Int_tTHaAnalysisObject::DefineVarsFromList(const VarDef* list, THaAnalysisObject::EMode mode = kDefine, const char* var_prefix = "") const
Int_tTHaAnalysisObject::DefineVarsFromList(const RVarDef* list, THaAnalysisObject::EMode mode = kDefine, const char* var_prefix = "") const
Int_tTHaAnalysisObject::DefineVarsFromList(const void* list, THaAnalysisObject::EType type, THaAnalysisObject::EMode mode, const char* var_prefix = "") const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Double_tDoPoly(const int n, const vector<double>& a, const double x)
voidFindBadTracks(TClonesArray& tracks)
THaAnalysisObject*THaAnalysisObject::FindModule(const char* name, const char* classname, bool do_error = true)
static vector<std::string>THaAnalysisObject::GetDBFileList(const char* name, const TDatime& date, const char* here = "GetDBFileList()")
virtual const char*THaAnalysisObject::Here(const char*) const
virtual voidTHaDetector::MakePrefix()
voidTObject::MakeZombie()
virtual FILE*THaAnalysisObject::OpenFile(const TDatime& date)
virtual FILE*THaAnalysisObject::OpenRunDBFile(const TDatime& date)
Double_tPolyInv(const double x1, const double x2, const double xacc, const double y, const int norder, const vector<double>& a)
static char*THaAnalysisObject::ReadComment(FILE* fp, char* buf, const int len)
virtual Int_tReadDatabase(const TDatime& date)
virtual Int_tTHaDetectorBase::ReadGeometry(FILE* file, const TDatime& date, Bool_t required = kFALSE)
virtual Int_tTHaAnalysisObject::ReadRunDatabase(const TDatime& date)
virtual Int_tTHaAnalysisObject::RemoveVariables()

Data Members

public:
enum { kStageMask
kInvalid
kCoarse
kFine
kReassigned
kMultiTrack
kBadTrack
kOnlyFastest
kTDCbits
kHardTDCcut
kSoftTDCcut
kIgnoreNegDrift
kCoarseOnly
};
enum ECoordTypes { kTransport
kRotatingTransport
};
enum EFPMatrixElemTags { T000
Y000
P000
};
enum { kPORDER
};
enum THaAnalysisObject::EStatus { kOK
kNotinit
kInitError
kFileError
};
enum THaAnalysisObject::EType { kVarDef
kRVarDef
};
enum THaAnalysisObject::EMode { kDefine
kDelete
};
enum THaAnalysisObject::EProperties { kNeedsRunDB
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
public:
static const Double_tTHaAnalysisObject::kBig= 1.e38; // default junk value
protected:
Double_tfCentralDistthe path length of the central ray from
TStringTHaAnalysisObject::fConfigConfiguration to use from database
Double_tfCos_vdcCosine of VDC angle
vector<THaMatrixElement>fDMatrixElems
Int_tTHaAnalysisObject::fDebugDebug level
THaDetMap*THaDetectorBase::fDetMapHardware channel map for this detector
Double_tfErrorCutoffCut on track matching error
vector<THaMatrixElement>fFPMatrixElemsmatrix elements used in
TDatimeTHaAnalysisObject::fInitDateDate passed to Init
Bool_tTHaAnalysisObject::fIsInitFlag indicating that ReadDatabase done
Bool_tTHaAnalysisObject::fIsSetupFlag indicating that DefineVariables done.
vector<THaMatrixElement>fLMatrixElemsPath-length corrections (meters)
THaVDCUVPlane*fLowerLower UV plane
TStringTNamed::fNameobject identifier
Int_tTHaDetectorBase::fNelemNumber of detector elements (paddles, mirrors)
Int_tfNtracksNumber of tracks found in ConstructTracks
Int_tfNumIterNumber of iterations for FineTrack()
Bool_tTHaAnalysisObject::fOKOutFlag indicating object-output prepared
TVector3THaDetectorBase::fOriginCenter position of detector (m)
vector<THaMatrixElement>fPMatrixElems
vector<THaMatrixElement>fPTAMatrixElemsinvolves abs(theta_fp)
char*THaAnalysisObject::fPrefixName prefix for global variables
UInt_tTHaAnalysisObject::fPropertiesProperties of this object (see EProperties)
Double_tfSin_vdcSine of VDC angle
Float_tTHaDetectorBase::fSize[3]Detector size in x,y,z (m) - x,y are half-widths
THaAnalysisObject::EStatusTHaAnalysisObject::fStatusInitialization status flag
vector<THaMatrixElement>fTMatrixElems
Double_tfTan_vdcTangent of VDC angle
TStringTNamed::fTitleobject title
Double_tfUSpacingSpacing between U1 and U2 (m)
TClonesArray*fUVpairsPairs of matched UV tracks (THaVDCTrackPair obj)
THaVDCUVPlane*fUpperUpper UV plane
Double_tfVDCAngleAngle from the VDC cs to TRANSPORT cs (rad)
Double_tfVSpacingSpacing between V1 and V2 (m)
TVector3THaSpectrometerDetector::fXaxX axis of the detector plane
vector<THaMatrixElement>fYMatrixElems
vector<THaMatrixElement>fYTAMatrixElemsinvolves abs(theta_fp)
TVector3THaSpectrometerDetector::fYaxY axis of the detector plane
TVector3THaSpectrometerDetector::fZaxNormal to the detector plane

Class Charts

Inheritance Chart:
TNamed
THaAnalysisObject
THaDetectorBase
THaDetector
THaSpectrometerDetector
THaTrackingDetector
THaVDC

Function documentation

THaVDC(const char* name, const char* description = "", THaApparatus* a = 0)
 Constructor
THaAnalysisObject::EStatus Init(const TDatime& date)
 Initialize VDC. Calls standard Init(), then initializes subdetectors.
Int_t ReadDatabase(const TDatime& date)
 Read VDC database
~THaVDC()
 Destructor. Delete subdetectors.
Int_t ConstructTracks(TClonesArray* tracks = 0, Int_t flag = 0)
 Construct tracks from pairs of upper and lower UV tracks and add
 them to 'tracks'
void Clear(Option_t* opt = "")
 Clear event-by-event data
Int_t Decode(const THaEvData& )
 Decode data from VDC planes
Int_t CoarseTrack(TClonesArray& tracks)
Int_t FineTrack(TClonesArray& tracks)
 Calculate exact track position and angle using drift time information.
 Assumes that CoarseTrack has been called (ie - clusters are matched)
Int_t FindVertices(TClonesArray& tracks)
 Calculate the target location and momentum at the target.
 Assumes that CoarseTrack() and FineTrack() have both been called.
void CalcFocalPlaneCoords(THaTrack* track, const THaVDC::ECoordTypes mode)
 calculates focal plane coordinates from detector coordinates
void CalcTargetCoords(THaTrack* the_track, const THaVDC::ECoordTypes mode)
 calculates target coordinates from focal plane coordinates
void CalcMatrix(const double x, vector<THaMatrixElement>& matrix)
 calculates the values of the matrix elements for a given location
 by evaluating a polynomial in x of order it->order with
 coefficients given by it->poly
Double_t CalcTargetVar(const vector<THaMatrixElement>& matrix, const double powers[][5])
 calculates the value of a variable at the target
 the x-dependence is already in the matrix, so only 1-3 (or np) used
Double_t CalcTarget2FPLen(const vector<THaMatrixElement>& matrix, const Double_t powers[][5])
 calculates distance from the nominal target position (z=0)
 to the transport plane
void CorrectTimeOfFlight(TClonesArray& tracks)
void FindBadTracks(TClonesArray& tracks)
 Flag tracks that don't intercept S2 scintillator as bad
void Print(Option_t* opt) const
THaVDCUVPlane* GetUpper()
 Get and Set Functions
{ return fUpper; }
THaVDCUVPlane* GetLower()
{ return fLower; }
Double_t GetVDCAngle()
{ return fVDCAngle; }
Double_t GetSpacing()
{ return fUSpacing; }
Double_t DoPoly(const int n, const vector<double>& a, const double x)
Double_t PolyInv(const double x1, const double x2, const double xacc, const double y, const int norder, const vector<double>& a)

Last change: Sat Nov 7 21:26:54 2009
Last generated: 2009-11-07 21:26

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.