StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
StFttDb Class Reference
Inheritance diagram for StFttDb:
TDataSet

Public Types

enum  TimeCutMode { CalibratedBunchCrossingMode = 0, TimebinMode = 1 }
 
- Public Types inherited from TDataSet
enum  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 

Public Member Functions

 StFttDb (const char *name="fttDb")
 
int Init ()
 
int InitRun (int runNumber)
 
void SetDebug (int v=1)
 
void setDebug (int v=1)
 debug level
 
void setDbAccess (int v=1)
 debug level
 
void setRun (int run)
 enable(1) or disable(0) offline DB access
 
uint16_t packKey (int feb, int vmm, int ch) const
 
void unpackKey (int key, int &feb, int &vmm, int &ch) const
 
uint16_t packVal (int row, int strip) const
 
void unpackVal (int val, int &row, int &strip) const
 
void loadHardwareMapFromFile (std::string fn)
 
void loadHardwareMapFromDb (St_fttHardwareMap *)
 
void loadDataWindowsFromFile (std::string fn)
 
void loadDataWindowsFromDb (St_fttDataWindows *)
 
UChar_t plane (StFttRawHit *hit)
 
UChar_t quadrant (StFttRawHit *hit)
 
UChar_t fob (StFttRawHit *hit)
 
UChar_t rob (StFttRawHit *hit)
 
UChar_t rob (StFttCluster *clu)
 
UChar_t orientation (StFttRawHit *hit)
 
UChar_t getOrientation (int rob, int feb, int vmm, int row) const
 
bool hardwareMap (int rob, int feb, int vmm, int ch, int &row, int &strip, UChar_t &orientation) const
 
bool hardwareMap (StFttRawHit *rawHit) const
 
void getGloablOffset (UChar_t plane, UChar_t quad, float &dx, float &sx, float &dy, float &sy, float &dz, float &sz)
 
void setTimeCut (TimeCutMode mode, int low=-70, int high=30)
 
void getTimeCut (StFttRawHit *hit, int &mode, int &l, int &h)
 
- Public Member Functions inherited from TDataSet
 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 
 TDataSet (const TDataSet &src, EDataSetPass iopt=kAll)
 
 TDataSet (TNode &src)
 This copy ctor has been depricated (left for thwe sake of the backweard compatibility)
 
virtual ~TDataSet ()
 std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl;
 
virtual void Add (TDataSet *dataset)
 
virtual void AddAt (TDataSet *dataset, Int_t idx=0)
 
virtual void AddAtAndExpand (TDataSet *dataset, Int_t idx=0)
 
virtual void AddFirst (TDataSet *dataset)
 Add TDataSet object at the beginning of the dataset list of this dataset.
 
virtual void AddLast (TDataSet *dataset)
 Add TDataSet object at the end of the dataset list of this dataset.
 
TDataSetAt (Int_t idx) const
 
virtual void Browse (TBrowser *b)
 Browse this dataset (called by TBrowser).
 
virtual TObject * Clone (const char *newname="") const
 the custom implementation fo the TObject::Clone
 
virtual void Delete (Option_t *opt="")
 
virtual TDataSetFind (const char *path) const
 
virtual TDataSetFindByName (const char *name, const char *path="", Option_t *opt="") const
 
virtual TDataSetFindByPath (const char *path) const
 Aliase for TDataSet::Find(const Char_t *path) method.
 
virtual TDataSetFindByTitle (const char *title, const char *path="", Option_t *opt="") const
 
TObject * FindObject (const char *name) const
 
TObject * FindObject (const TObject *o) const
 
virtual TDataSetFirst () const
 Return the first object in the list. Returns 0 when list is empty.
 
TObjArray * GetObjArray () const
 
virtual TSeqCollection * GetCollection () const
 
TList * GetList () const
 
virtual Int_t GetListSize () const
 
TObject * GetMother () const
 
virtual TObject * GetObject () const
 The depricated method (left here for the sake of the backward compatibility)
 
virtual TDataSetGetParent () const
 
virtual Long_t HasData () const
 
virtual TDataSetInstance () const
 
virtual TString Path () const
 return the full path of this data set
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *), Int_t depth=0)
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *, void *), void *user, Int_t depth=0)
 
virtual void PrintContents (Option_t *opt="") const
 
virtual Int_t Purge (Option_t *opt="")
 
virtual void Remove (TDataSet *set)
 Remiove the "set" from this TDataSet.
 
virtual TDataSetRemoveAt (Int_t idx)
 
virtual void SetMother (TDataSet *parent=0)
 
virtual void SetObject (TObject *obj)
 The depricated method (left here for the sake of the backward compatibility)
 
virtual void SetParent (TDataSet *parent=0)
 
virtual void SetWrite ()
 
virtual void Shunt (TDataSet *newParent=0)
 
virtual void Sort ()
 Sort recursively all members of the TDataSet with TList::Sort method.
 
virtual Bool_t IsEmpty () const
 return kTRUE if the "internal" collection has no member
 
virtual Bool_t IsFolder () const
 
virtual Bool_t IsMarked () const
 
virtual Bool_t IsThisDir (const char *dirname, int len=-1, int ignorecase=0) const
 
virtual TDataSetLast () const
 Return the last object in the list. Returns 0 when list is empty.
 
virtual void ls (Option_t *option="") const
 
virtual void ls (Int_t depth) const
 
void Mark ()
 
void UnMark ()
 
void MarkAll ()
 Mark all members of this dataset.
 
void UnMarkAll ()
 UnMark all members of this dataset.
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset.
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
virtual TDataSetNext () const
 
virtual TDataSetPrev () const
 
virtual void Update ()
 
virtual void Update (TDataSet *set, UInt_t opt=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Static Public Member Functions

static size_t uuid (StFttRawHit *h, bool includeStrip=false)
 set run#
 
static size_t uuid (StFttCluster *c)
 
- Static Public Member Functions inherited from TDataSet
static TDataSetGetMainSet ()
 return pointer to the main dataset
 
static TDataSetinstance ()
 

Static Public Attributes

static double stripPitch = 3.2
 
static double rowLength = 180
 
static double lowerQuadOffsetX = 101.6
 
static double idealPlaneZLocations [4] = { 280.90499, 303.70498, 326.60501, 349.40499 }
 
static const size_t nPlane = 4
 
static const size_t nQuadPerPlane = 4
 
static const size_t nFobPerQuad = 6
 
static const size_t nVMMPerFob = 4
 
static const size_t nChPerVMM = 64
 
static const size_t nQuad = nQuadPerPlane * nPlane
 
static const size_t nRob = nQuad
 
static const size_t nFobPerPlane = nFobPerQuad * nQuadPerPlane
 
static const size_t nFob = nFobPerPlane * nPlane
 
static const size_t nVMMPerQuad = nFobPerQuad * nVMMPerFob
 
static const size_t nVMMPerPlane = nVMMPerQuad * nQuadPerPlane
 
static const size_t nVMM = nVMMPerPlane * nPlane
 
static const size_t nChPerFob = nVMMPerFob * nChPerVMM
 
static const size_t nChPerQuad = nChPerFob * nFobPerQuad
 
static const size_t nChPerPlane = nChPerQuad * nQuadPerPlane
 
static const size_t nCh = nChPerPlane * nPlane
 
static const size_t maxADC = 1024 + 1
 
static const size_t maxBCID = 4096 + 1
 
static const int minTb = -32768 - 1000
 
static const int maxTb = 32768 + 1000
 
static const size_t nRowsPerQuad = 5
 
static const size_t nStripOrientations = 5
 
static const size_t maxStripPerRow = 166
 
static vector< string > orientationLabels = { "Horizontal", "Vertical", "DiagonalH", "DiagonalV", "Unknown" }
 

Additional Inherited Members

- Protected Member Functions inherited from TDataSet
virtual void SetMother (TObject *mother)
 
 TDataSet (const char *name, const char *title)
 
void AddMain (TDataSet *set)
 add data set to main data set
 
TDataSetGetRealParent ()
 return real parent
 
void MakeCollection ()
 Create the internal container at once if any.
 
- Static Protected Member Functions inherited from TDataSet
static EDataSetPass SortIt (TDataSet *ds)
 
static EDataSetPass SortIt (TDataSet *ds, void *user)
 
- Protected Attributes inherited from TDataSet
TDataSetfParent
 
TSeqCollection * fList
 
- Static Protected Attributes inherited from TDataSet
static TDataSetfgMainSet = &mainSet
 

Detailed Description

Definition at line 36 of file StFttDb.h.


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