/**
* Constructor
*
- * @param name Name
+ * @param name Name
+ * @param clsName Class name of hits
+ * @param parent Parent event handler
*/
AliMCAuxHandler(const char* name="FMD",
const char* clsName="AliFMDHit",
AliMCEventHandler* parent=0);
-
+ /** Destructor */
virtual ~AliMCAuxHandler() {}
/**
* @{
/**
* Called when the input file is changed
*
- * @param path New path
- *
* @return true on success
*/
virtual Bool_t Notify() { return AliMCEventHandler::Notify(); }
*/
virtual void SetNumberOfEventsInContainer(Int_t nev) {
this->fNEventsInContainer = nev;}
+ /**
+ * Open a file
+ *
+ * @param ev event number
+ *
+ * @return true on success
+ */
virtual Bool_t OpenFile(Int_t ev);
/* @} */
+ /**
+ * Get the parent handler
+ *
+ * @return Parent handler
+ */
AliMCEventHandler* GetParent() { return fParent; }
/**
* Get the tree
* @return The connected hits tree
*/
virtual TTree* GetTree() const { return fTree;}
+ /**
+ * Get array of hits
+ *
+ * @return Array of hits
+ */
TClonesArray* GetArray() const { return fArray; }
+ /**
+ * Get the number of entries
+ *
+ * @return Entries in array
+ */
Int_t GetNEntry() const;
+ /**
+ * Get array of track-refs for an entry
+ *
+ * @param entry Entry number
+ *
+ * @return Array
+ */
TClonesArray* GetEntryArray(Int_t entry);
/**
* Static member function to create and attach this handler
*
* @param name Name of the handler
+ * @param what What to get
*
* @return Newly allocated handler or null
*/
static AliMCAuxHandler* Create(const char* name="FMD",
const char* what="Hits");
+ /**
+ * Static member function to get the kinamtics array
+ *
+ * @param handler Unput handler
+ * @param particle Particle number
+ *
+ * @return Array of hits
+ */
static TClonesArray* GetParticleArray(AliMCAuxHandler* handler,
Int_t particle);
protected:
+ /**
+ * Copy constructor
+ *
+ * @param o Object to copy from
+ */
AliMCAuxHandler(const AliMCAuxHandler& o)
: AliMCEventHandler(),
fParent(o.fParent),
fTreeName(""),
fFileBase("")
{}
+ /**
+ * Assignment operator
+ *
+ * @param o Object to assign from
+ *
+ * @return reference to this object
+ */
AliMCAuxHandler& operator=(const AliMCAuxHandler& o)
{
if (&o == this) return *this;
fTree = o.fTree;
return *this;
}
+ /**
+ * Get the parent path
+ *
+ * @return Parent path
+ */
TString* GetParentPath() const;
AliMCEventHandler* fParent; // Parent MC handler
TFile* fFile; //!