More information on this package is here.
#include "TEPICClass.h"

TEPICClass


class description - header file - source file

class TEPICClass: public TObject

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TEPICClass()
TEPICClass(TEPICClass* TmpEPIC)
TEPICClass(const TEPICClass&)
virtual~TEPICClass()
voidTObject::AbstractMethod(const char* method) const
voidAddEPIC(TEPICValue* ep)
voidAddEPICAt(TEPICValue* ep, Int_t place)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
voidClear()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
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 TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
TStringGetName(Int_t ind)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Float_tGetValue(Int_t ind)
Float_tGetValue(TString member)
Int_tGetValueIndex(TString member)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::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 voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
TEPICClass&operator=(const TEPICClass&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
voidPrint()
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 = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
voidSetEvt_time(Int_t Evt)
voidSetFirst_Phys(Int_t First)
voidSetFirst_Phys_time(Int_t First)
voidSetLast_Phys(Int_t Last)
voidSetLast_Phys_time(Int_t Last)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetrunno(Int_t run)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
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()
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 voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
public:
TClonesArray*EPICa TClonesArray containing the names and values
Int_tFirst_Physthe event number of the first physics event after the previous EPIC event
Int_tLast_Physthe event number of the last physics event before this EPIC event
Int_trunnothe run number of this EPIC event
Int_tFirst_Phys_timethe time of the first physics event after the previous EPIC event
Int_tLast_Phys_timethe time of the last physics event before this EPIC event
Int_tEvt_timethe time of this EPIC event

Class Description

____________________ 

TEPICClass

Modifications:
           Maurik (7/05) Comments.

This class is part of the sytem to access the EPIC data stored in the (RAW only!) BOS file.

What is EPIC?

The on-line system has a large number of slow control (beam position, torus current etc) values that get occasionally collected and stored in BOS bank and put in the data stream. This BOS bank is called "EPIC". It contains pairs of a name and a value. What is actually in the bank (and what name is given to the item in the bank) depends on the setup during the run. Mostly you can guess at what is what.

Making an input file

A raw BOS file is scanned by Scan_EPICS (see Utils/Scan_Epics.cc) to produce an EPICS root file. This file will contain a TEPICClass which in turn contains a TClonesArray of TEPICValue objects.
Note that a "cooked" BOS file will not contain the EPIC bank, so you probably want to run the Scan_EPIC program when you are cooking the raw files. This is also why we create a separate root file for this information.

Usage:

The most convenient usage of this class is while doing date analysis using the TDSTReader. There is already code included in that reader to get the EPIC data you may want to use in your analysis.

To make a plot of the EPIC value (see one of the example scripts), you need to open the file (with TFile) then get the TTree containing the TEPICClass object from the file and run through the tree for each of the EPIC events.

 
TEPICClass(TEPICClass *TmpEPIC)
 Copy Constructor.
void AddEPIC(TEPICValue *ep)
Add a TEPICValue at the end of the EPIC TClonesArray
void AddEPICAt(TEPICValue *ep,Int_t place)
Add a TEPICValue at a specific place in the EPIC TClonesArray
void Print()
 Print information for this particular class. Useful for debugging.
Int_t GetValueIndex(TString member)
 This returns the index of the TEPICValue with the name member. If you are repeatedly
getting a member with the same index in a loop then using this outside the loop and
GetValue(Int_t) inside should be faster than the binary search. Use the TString search if you
think the index will change.
 Return -1 if not found.
Float_t GetValue(TString member)
Returns the value associated with the TEPICValue that has name "member". Uses a binary search.
Float_t GetValue(Int_t ind)
Returns the value of the TEPICValue in TClonesArray EPIC at index ind
TString GetName(Int_t ind)
Returns the name of the TEPICValue in TClonesArray EPIC at index ind
TEPICClass()
TEPICClass(TEPICClass *TmpEPIC)
virtual ~TEPICClass()
{}
void SetFirst_Phys(Int_t First)
{First_Phys = First;}
void SetLast_Phys(Int_t Last)
{Last_Phys = Last;}
void Setrunno(Int_t run)
{runno = run;}
void SetFirst_Phys_time(Int_t First)
{First_Phys_time = First;}
void SetLast_Phys_time(Int_t Last)
{Last_Phys_time = Last;}
void SetEvt_time(Int_t Evt)
{Evt_time = Evt;}
void Clear()


Author: Maurik Holtrop
Last update: ClasTool/ClasBanks:$Name: $:$Id: TEPICClass.cc,v 1.3 2007/03/01 22:26:59 holtrop Exp $
CopyLeft - This code is freely available.

ROOT Home page - ClasTool Class index - Class Hierarchy - Top of the page