9 #ifndef VQWTRACKINGELEMENT_H
10 #define VQWTRACKINGELEMENT_H
17 #include <TClonesArray.h>
156 #define MAX_NUM_ELEMENTS 1000
168 T* element =
new T();
175 fList.push_back(
new T(element));
180 for (
T *element = list; element; element = element->next)
186 for (
typename std::vector<T*>::iterator element =
fList.begin();
187 element !=
fList.end(); element++)
198 void Print(Option_t* option =
"")
const {
199 for (
typename std::vector<T*>::const_iterator element =
fList.begin();
200 element !=
fList.end(); element++)
211 std::vector<T*>
fList;
215 #endif // VQWTRACKINGELEMENT_H
EQwDirectionID fDirection
Direction.
int fElement
Element number.
#define QwMessage
Predefined log drain for regular messages.
void SetPlane(int plane)
Set the plane number.
T * CreateNew()
Create a new tree line.
EQwDetectorPackage fPackage
Package.
void SetElement(int element)
Set the element number.
void Print(Option_t *option="") const
Print the list of tree lines.
int GetElement() const
Get the element number.
void SetRegion(EQwRegionID region)
Set the region.
int fOctant
Octant number.
VQwTrackingElementContainer()
Constructor.
void AddList(T *list)
Add a list of existing tree lines as a copy.
int GetOctant() const
Get the octant number.
ClassDef(VQwTrackingElement, 1)
EQwRegionID fRegion
///< Detector info pointer
void SetPackage(EQwDetectorPackage package)
Set the package.
EQwRegionID GetRegion() const
Get the region.
std::vector< T * > fList
Array of pointers to elements.
int GetPlane() const
Get the plane number.
VQwTrackingElement & operator=(const VQwTrackingElement &that)
Assignment operator.
void Reset(Option_t *option="")
Reset the list of tree lines.
void Add(T *element)
Add an existing element as a copy.
A logfile class, based on an identical class in the Hermes analyzer.
void SetOctant(int octant)
Set the octant number.
static const double T
Magnetic field: base unit is T.
void SetGeometryTo(const VQwTrackingElement &e)
Copy the geometry info from another object.
VQwTrackingElement()
Default constructor.
VQwTrackingElement(const VQwTrackingElement &that)
void SetDetectorInfo(const QwDetectorInfo *detectorinfo)
Set the detector info pointer.
void SetDirection(EQwDirectionID direction)
Set the direction.
static std::ostream & endl(std::ostream &)
End of the line.
const QwDetectorInfo * fDetectorInfo
const QwDetectorInfo * GetDetectorInfo() const
Get the detector info pointer.
virtual ~VQwTrackingElement()
Virtual destructor.
void Clear(Option_t *option="")
Clear the list of tree lines.
EQwDirectionID GetDirection() const
Get the direction.
Int_t GetNumberOfElements() const
Get the number of tree lines.
EQwDetectorPackage GetPackage() const
Get the package.
Virtual base class for all tracking elements.