FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PndSdsHitInfo Class Reference

#include <PndSdsHitInfo.h>

Inheritance diagram for PndSdsHitInfo:

Public Member Functions

 PndSdsHitInfo ()
 
 PndSdsHitInfo (Int_t fileNumber, Int_t eventNumber, Int_t trackID, Int_t pointID, Int_t nMerged, Bool_t isFake)
 
virtual ~PndSdsHitInfo ()
 
Int_t GetFileNumber () const
 
Int_t GetEventNumber () const
 
Int_t GetTrackID () const
 
Int_t GetPointID () const
 
Int_t GetNMerged () const
 
Bool_t IsFake () const
 
void SetNMerged (Int_t nMerged)
 
void Clear ()
 

Private Member Functions

 ClassDef (PndSdsHitInfo, 1)
 

Private Attributes

Int_t fFileNumber
 
Int_t fEventNumber
 
Int_t fTrackID
 
Int_t fPointID
 
Int_t fNMerged
 
Bool_t fIsFake
 

Detailed Description

CbmStsMapsHitInfo header file Class for additional information about PndSdsHit

Author
Michael Deveaux m.dev.nosp@m.eaux.nosp@m.@gsi..nosp@m.de Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken Version beta 0.1 (02.02.2005) Slight modifications by V. Friese to match coding conventions

Definition at line 16 of file PndSdsHitInfo.h.

Constructor & Destructor Documentation

PndSdsHitInfo::PndSdsHitInfo ( )

Default constructor

PndSdsHitInfo source file

Author
Acknowledgements to M. Al-Turany, D. Bertini, G. Gaycken, Michael Deveaux m.dev.nosp@m.eaux.nosp@m.@gsi..nosp@m.de Version beta 0.1 (02.02.2005)Constructor

Definition at line 12 of file PndSdsHitInfo.cxx.

References fEventNumber, fFileNumber, fIsFake, fNMerged, fPointID, and fTrackID.

12  {
13  fFileNumber = -1;
14  fEventNumber = -1;
15  fTrackID = -1;
16  fPointID = -1;
17  fNMerged = 0;
18  fIsFake = kFALSE;
19 }
Int_t fEventNumber
Definition: PndSdsHitInfo.h:68
PndSdsHitInfo::PndSdsHitInfo ( Int_t  fileNumber,
Int_t  eventNumber,
Int_t  trackID,
Int_t  pointID,
Int_t  nMerged,
Bool_t  isFake 
)

Constructor with all parameters

Definition at line 23 of file PndSdsHitInfo.cxx.

References fEventNumber, fFileNumber, fIsFake, fNMerged, fPointID, and fTrackID.

25  {
26  fFileNumber = fileNumber;
27  fEventNumber = eventNumber;
28  fTrackID = trackID;
29  fPointID = pointID;
30  fNMerged = nMerged;
31  fIsFake = isFake;
32 }
Int_t fEventNumber
Definition: PndSdsHitInfo.h:68
PndSdsHitInfo::~PndSdsHitInfo ( )
virtual

Destructor

Definition at line 36 of file PndSdsHitInfo.cxx.

36 { }

Member Function Documentation

PndSdsHitInfo::ClassDef ( PndSdsHitInfo  ,
 
)
private
void PndSdsHitInfo::Clear ( void  )

Reset data members

Public method Clear

Definition at line 40 of file PndSdsHitInfo.cxx.

References fEventNumber, fFileNumber, fIsFake, fNMerged, fPointID, and fTrackID.

40  {
41  fFileNumber = -1;
42  fEventNumber = -1;
43  fTrackID = -1;
44  fPointID = -1;
45  fNMerged = 0;
46  fIsFake = kFALSE;
47 }
Int_t fEventNumber
Definition: PndSdsHitInfo.h:68
Int_t PndSdsHitInfo::GetEventNumber ( ) const
inline

Definition at line 36 of file PndSdsHitInfo.h.

References fEventNumber.

36 { return fEventNumber; };
Int_t fEventNumber
Definition: PndSdsHitInfo.h:68
Int_t PndSdsHitInfo::GetFileNumber ( ) const
inline

Accessors

Definition at line 35 of file PndSdsHitInfo.h.

References fFileNumber.

35 { return fFileNumber; };
Int_t PndSdsHitInfo::GetNMerged ( ) const
inline

Definition at line 39 of file PndSdsHitInfo.h.

References fNMerged.

39 { return fNMerged; };
Int_t PndSdsHitInfo::GetPointID ( ) const
inline

Definition at line 38 of file PndSdsHitInfo.h.

References fPointID.

38 { return fPointID; };
Int_t PndSdsHitInfo::GetTrackID ( ) const
inline

Definition at line 37 of file PndSdsHitInfo.h.

References fTrackID.

37 { return fTrackID; };
Bool_t PndSdsHitInfo::IsFake ( ) const
inline

Definition at line 40 of file PndSdsHitInfo.h.

References fIsFake.

40 { return fIsFake; };
void PndSdsHitInfo::SetNMerged ( Int_t  nMerged)
inline

Modifiers

Definition at line 44 of file PndSdsHitInfo.h.

References fNMerged.

44 { fNMerged = nMerged; };

Member Data Documentation

Int_t PndSdsHitInfo::fEventNumber
private

Event number of the corresponding MCPoint. Important to find it in background files due to the random access. -1 => no corresponding MCPoint (fake hit) 0 => current event in data file n => event in pileup file

Definition at line 68 of file PndSdsHitInfo.h.

Referenced by Clear(), GetEventNumber(), and PndSdsHitInfo().

Int_t PndSdsHitInfo::fFileNumber
private

Indicates the file to which the corresponding point belongs. -1 => no file (fake hit) 0 => data file 1 => pileup file else => reserved for future use

Definition at line 59 of file PndSdsHitInfo.h.

Referenced by Clear(), GetFileNumber(), and PndSdsHitInfo().

Bool_t PndSdsHitInfo::fIsFake
private

Indicator for fake flag

Definition at line 94 of file PndSdsHitInfo.h.

Referenced by Clear(), IsFake(), and PndSdsHitInfo().

Int_t PndSdsHitInfo::fNMerged
private

Number of other hits this one is merged with -1 => Hit was created without checking for merging 0 => Hit was not merged n => Hit was merged with n other hits

Definition at line 90 of file PndSdsHitInfo.h.

Referenced by Clear(), GetNMerged(), PndSdsHitInfo(), and SetNMerged().

Int_t PndSdsHitInfo::fPointID
private

Index of the corresponding MCPoint in its TClonesArray. Also true for background files. -1 for fake hits

Definition at line 82 of file PndSdsHitInfo.h.

Referenced by Clear(), GetPointID(), and PndSdsHitInfo().

Int_t PndSdsHitInfo::fTrackID
private

Index of the corresponding MCTrack in its TClonesArray. Also true for background files. -1 for fake hits

Definition at line 75 of file PndSdsHitInfo.h.

Referenced by Clear(), GetTrackID(), and PndSdsHitInfo().


The documentation for this class was generated from the following files: