FairRoot/PandaRoot
|
#include <TProtoUnpackEvent.h>
Public Member Functions | |
TProtoUnpackEvent () | |
TProtoUnpackEvent (const char *name) | |
virtual | ~TProtoUnpackEvent () |
void | Clear (Option_t *t="") |
ClassDef (TProtoUnpackEvent, 3) | |
void | SetValid (Bool_t on) |
Bool_t | IsValid () const |
void | SetEventSource (TGo4EventSource *src) |
void | SetParent (TGo4EventElement *par) |
TGo4EventElement * | GetParent () const |
TGo4EventSource * | GetEventSource () const |
Bool_t | CheckEventSource (const char *classname) |
virtual Int_t | Fill () |
virtual Int_t | Init () |
virtual void | PrintEvent () |
virtual void | makeBranch (TBranch *parent) |
virtual void | deactivate () |
virtual void | activate () |
virtual void | clearAll (Int_t) |
virtual Bool_t | isComposed () |
virtual Short_t | getId () |
virtual void | setDebug (Bool_t debug) |
virtual TGo4EventElement & | operator[] (Int_t) |
virtual void | Print (Option_t *option="") const |
virtual void | synchronizeWithTree (TTree *tree, TGo4EventElement **var_ptr=0) |
virtual Int_t | activateBranch (TBranch *branch, Int_t index=0, TGo4EventElement **var_ptr=0) |
Public Attributes | |
Double_t | amplitude [ConfiguredProtoChannels] |
Double_t | energy [ConfiguredProtoChannels] |
Double_t | time [ConfiguredProtoChannels] |
Int_t | waveform [ConfiguredProtoChannels][256] |
Int_t | trigger [ConfiguredProtoChannels/16+1] |
Int_t | rawData [1024] |
Int_t | rawDataLength |
Protected Attributes | |
Short_t | fIdentifier |
Bool_t | fDebug |
Definition at line 20 of file TProtoUnpackEvent.h.
TProtoUnpackEvent::TProtoUnpackEvent | ( | ) |
Definition at line 17 of file TProtoUnpackEvent.cxx.
TProtoUnpackEvent::TProtoUnpackEvent | ( | const char * | name | ) |
Definition at line 22 of file TProtoUnpackEvent.cxx.
|
virtual |
Definition at line 27 of file TProtoUnpackEvent.cxx.
|
virtualinherited |
Definition at line 168 of file TGo4EventElement.cxx.
|
virtualinherited |
THIS WAS OLD CODE FROM TGo4FileSource
void TGo4EventElement::synchronizeWithTree(TTree *tree, TGo4EventElement** var_ptr)
TString topname; Bool_t masterbranch=kFALSE; TString branchName = dest->GetName(); if(!fxBranchName.Contains(".")) { fxBranchName+="."; // for master branch, add dot. Subbranch names with dot separators do not get final dot masterbranch=kTRUE; } TObjArray* blist = tree->GetListOfBranches(); TBranch* topb = (TBranch*) blist->At(0); if(topb) { topname = topb->GetName(); cout <<"Activating top branch "<<topname.Data() << endl; tree->SetBranchAddress(topname.Data(),(void**) var_ptr); topb->SetAddress(&fxTopEvent); // this will not set address of possible cloned tree. we use the set address of the tree } tree->SetBranchStatus("*",0); // note: only deactivate subleafs after address of top branch is set! tree->SetBranchStatus(topname.Data(),1); // required to process any of the subbranches! TString wildbranch = branchName; wildbranch += "*"; tree->SetBranchStatus(wildbranch.Data(),1); cout <<"Build event activates: "<<wildbranch.Data() << endl; wildbranch = branchName; if(!masterbranch) wildbranch+="."; wildbranch+="*"; tree->SetBranchStatus(wildbranch.Data(),1); cout <<"Build event activates: "<<wildbranch.Data() << endl; fbActivated = kTRUE;
Definition at line 137 of file TGo4EventElement.cxx.
Referenced by TGo4EventElement::synchronizeWithTree().
|
inherited |
Check if event source is valid. Tests the pointer for zero, and if not zero, compares classname of the event source with given string. To be used from the Fill method and from the analysis method init event classes.
Definition at line 57 of file TGo4EventElement.cxx.
TProtoUnpackEvent::ClassDef | ( | TProtoUnpackEvent | , |
3 | |||
) |
|
virtual |
Method called by the event owner (analysis step) to clear the event element.
Reimplemented from TGo4EventElement.
Definition at line 33 of file TProtoUnpackEvent.cxx.
References amplitude, energy, rawData, rawDataLength, time, trigger, and waveform.
|
inlinevirtualinherited |
Definition at line 91 of file TGo4EventElement.h.
|
virtualinherited |
Definition at line 155 of file TGo4EventElement.cxx.
|
virtualinherited |
Method called by the event owner (analysis step) to fill the event element from the set event source. Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=fxEventSource->GetA(); etc ), or by direct copy to the member (like fxEventSource->FillMemoryAt(&myevent.a);)
Definition at line 197 of file TGo4EventElement.cxx.
References TGo4EventElement::Clear(), TGo4EventElement::fxEventSource, res, and TGo4EventElement::SetValid().
|
inlineinherited |
|
inlinevirtualinherited |
|
inlineinherited |
|
virtualinherited |
Method called on initialization of event classes. User might check the correct type of the eventsource here and assign this to a subclass pointer.
Definition at line 185 of file TGo4EventElement.cxx.
References TGo4EventElement::Clear(), TGo4EventElement::fxEventSource, res, and TGo4EventElement::SetValid().
|
inlinevirtualinherited |
Definition at line 92 of file TGo4EventElement.h.
|
inlineinherited |
Returns the valid state of this event.
Definition at line 50 of file TGo4EventElement.h.
References TGo4EventElement::fbIsValid.
|
virtualinherited |
Definition at line 71 of file TGo4EventElement.cxx.
|
inlinevirtualinherited |
Definition at line 95 of file TGo4EventElement.h.
|
virtualinherited |
Definition at line 66 of file TGo4EventElement.cxx.
References TGo4EventElement::PrintEvent().
|
virtualinherited |
Method prints content of the event
Definition at line 62 of file TGo4EventElement.cxx.
Referenced by TGo4EventElement::Print().
|
inlinevirtualinherited |
|
inlineinherited |
Setter for the event source that is currently used by the Fill method.
Definition at line 53 of file TGo4EventElement.h.
References TGo4EventElement::fxEventSource.
|
inlineinherited |
Setter for the parent event structure reference.
Definition at line 56 of file TGo4EventElement.h.
References TGo4EventElement::fxParent, and par.
|
inlineinherited |
Switches the valid state of this event.
Definition at line 47 of file TGo4EventElement.h.
References TGo4EventElement::fbIsValid.
Referenced by TGo4EventElement::Fill(), and TGo4EventElement::Init().
|
virtualinherited |
Use this method to map event structure with the Tree branch(es)
Definition at line 77 of file TGo4EventElement.cxx.
References TGo4EventElement::activateBranch(), and TString.
Double_t TProtoUnpackEvent::amplitude[ConfiguredProtoChannels] |
Definition at line 32 of file TProtoUnpackEvent.h.
Referenced by Clear().
Double_t TProtoUnpackEvent::energy[ConfiguredProtoChannels] |
Definition at line 33 of file TProtoUnpackEvent.h.
Referenced by Clear().
|
protectedinherited |
Definition at line 124 of file TGo4EventElement.h.
Referenced by TGo4EventElement::setDebug().
|
protectedinherited |
Definition at line 123 of file TGo4EventElement.h.
Referenced by TGo4EventElement::getId().
Int_t TProtoUnpackEvent::rawData[1024] |
Definition at line 37 of file TProtoUnpackEvent.h.
Referenced by Clear(), and PndEmcReadProto192Data::Exec().
Int_t TProtoUnpackEvent::rawDataLength |
Definition at line 38 of file TProtoUnpackEvent.h.
Referenced by Clear().
Double_t TProtoUnpackEvent::time[ConfiguredProtoChannels] |
Definition at line 34 of file TProtoUnpackEvent.h.
Referenced by Clear().
Int_t TProtoUnpackEvent::trigger[ConfiguredProtoChannels/16+1] |
Definition at line 36 of file TProtoUnpackEvent.h.
Referenced by Clear().
Int_t TProtoUnpackEvent::waveform[ConfiguredProtoChannels][256] |
Definition at line 35 of file TProtoUnpackEvent.h.
Referenced by Clear(), and PndEmcReadProto192Data::Exec().