(UNKNOWN PRODUCT) » INCLUDE » PProjector

class PProjector: public PBulkInterface

  Pluto projector interface

  The main idea of this class is to provide a very
  simple, fast and easy-to-use analysis tool, which
  make the writing of an analysis macro unnecessary.
  It uses the Bulk interface and can be plugged into
  the reaction before or after the decay

  The syntax of the commands are based on the PBatch syntax,
  for details look into the documentation of this class.

  Commands for the batch can be added in 2 ways: Either
  with AddCommand(char * command) or
  in one step together with a histogram which will
  be filled after the command has been executed.

  Input: The input for the commands must be particles
  from the data stream in the fillowing format:
  [pid,num] where pid is the pid-string (e.g. "pi0")
  and num is the number of the particle (can be omitted if only
  one particle of this type present)

  Output: _x,_y as doubles. The latter one only for 2dim histograms.

                    Author:  Ingo Froehlich
                    Written: 14/02/2008
                    Revised:


Function Members (Methods)

public:
virtual~PProjector()
voidTObject::AbstractMethod(const char* method) const
Bool_tAddCommand(const char* command)
Bool_tAddHistogram(TH3* histo, const char* command = "", Int_t fillflag = 1)
Bool_tAddHistogram(TH2* histo, const char* command = "", Int_t fillflag = 1)
Bool_tAddHistogram(TH1* histo, const char* command = "", Int_t fillflag = 1)
Bool_tAddInputASCII(const char* filename, const char* command = "")
Bool_tAddInputTNtuple(TNtuple* n, const char* command = "")
Bool_tAddOutputASCII(const char* filename, const char* command = "")
Bool_tAddOutputTNtuple(TNtuple* n, const char* command = "")
Bool_tAddTGraph(TGraph* graph, const char* command)
Bool_tAddTGraph2D(TGraph2D* graph2d, const char* command)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
Bool_tCloseFile()
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
Bool_tDo(const char* command)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
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
PParticle**PBulkInterface::GetBranchArray(Int_t i)
Int_t*PBulkInterface::GetBranchNum(Int_t i)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_t*PBulkInterface::GetKeysBranches()
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tPBulkInterface::GetPriority()
Int_t*PBulkInterface::GetSizeBranches()
virtual const char*TObject::GetTitle() const
TTree*PBulkInterface::GetTree()
virtual UInt_tTObject::GetUniqueID() const
Double_tPBulkInterface::GetWeight()
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
Bool_tInput(TNtuple* n)
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
Bool_tIsFileOpen()
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_tModify(PParticle** stack, int* decay_done, int* num, int stacksize)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
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)
PProjector&operator=(const PProjector&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
PProjector()
PProjector(const PProjector&)
virtual voidPrint(const Option_t* delme = __null) 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(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidPBulkInterface::SetBranchArray(Int_t i, PParticle** my_particle)
voidPBulkInterface::SetBranchNum(Int_t i, Int_t* my_size)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidPBulkInterface::SetKeysBranches(Int_t* my_key_branches)
static voidTObject::SetObjectStat(Bool_t stat)
voidPBulkInterface::SetPriority(Int_t p)
voidPBulkInterface::SetSizeBranches(Int_t* my_size_branches)
voidPBulkInterface::SetTree(TTree* my_tree)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidPBulkInterface::SetWeight(Double_t c)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_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()
private:
Int_tSetParticles(PParticle** mstack, int* decay_done, int* num, int stacksize, Int_t first_time)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
private:
PBatch*batch[100]
intbatch_particle_param
intbatch_pos
intbatch_value_param
FILE*current_ascii_file
Int_tfFillFlag[100]
intforce_weight
TNtuple*fp_in[100]
TNtuple*fp_out[100]
TH1*hist1[100]
TH2*hist2[100]
TH3*hist3[100]
intkey
Int_tkey_list_in[100][50]
Int_tkey_list_out[100][50]
Int_tkey_pos_in[100]
Int_tkey_pos_out[100]
intkey_x
intkey_y
intkey_z
intlink_param
Int_tnum_events_in[100]
Int_tnum_events_in_c[100]
intpid_param
Double_t*proj_nr
PParticlestack[100]
Int_tstackpointer
intstream_default_pos_param
intstream_max_pos_param
Float_tvalues[50]
Float_tvalues_in[100][50]
Double_t*w
Double_t*x
Double_t*y
Double_t*z

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

PProjector()
~PProjector()
Bool_t AddCommand(const char* command)
Bool_t AddHistogram(TH3* histo, const char* command = "", Int_t fillflag = 1)
Bool_t AddHistogram(TH2* histo, const char* command = "", Int_t fillflag = 1)
Bool_t AddHistogram(TH1* histo, const char* command = "", Int_t fillflag = 1)
Bool_t AddTGraph(TGraph* graph, const char* command)
Bool_t AddTGraph2D(TGraph2D* graph2d, const char* command)
Bool_t AddOutputTNtuple(TNtuple* n, const char* command = "")
Bool_t AddInputASCII(const char* filename, const char* command = "")
Bool_t AddOutputASCII(const char* filename, const char* command = "")
Bool_t AddInputTNtuple(TNtuple* n, const char* command = "")
Int_t SetParticles(PParticle** mstack, int* decay_done, int* num, int stacksize, Int_t first_time)
loop over batch object and see what I can do
Bool_t Modify(PParticle** stack, int* decay_done, int* num, int stacksize)
cout << "Modify " << endl;
void Print(const Option_t* delme = __null) const
PProjector()
Bool_t Do(const char* command)
{return AddCommand(command);}
Bool_t Input(TNtuple* n)
Bool_t CloseFile(void)
Bool_t IsFileOpen(void)