PandaRoot
PndEventCheck Class Reference

#include <PndEventCheck.h>

Public Member Functions

 PndEventCheck ()
 
 PndEventCheck (PndEventRequirements &requirements)
 
virtual ~PndEventCheck ()
 
void Print (std::ostream &out=std::cout)
 
void InitRequirements ()
 
void SetRequirements (PndEventRequirements &req)
 
PndEventRequirements GetEventRequirements () const
 
std::vector< std::vector< int > > CheckEvent (TClonesArray *mcTrackInfo)
 
std::vector< std::vector< int > > GetEventResult () const
 

Protected Member Functions

int CheckElectronPair (PndMCTrackInfo *trackInfo, TClonesArray *mcTrackInfos)
 

Friends

std::ostream & operator<< (std::ostream &out, PndEventCheck &event)
 

Detailed Description

Checks an event if the MCTrackInfo matches with the PndEventRequirements

Author
T.Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de

Definition at line 22 of file PndEventCheck.h.

Constructor & Destructor Documentation

◆ PndEventCheck() [1/2]

PndEventCheck::PndEventCheck ( )

Default constructor

◆ PndEventCheck() [2/2]

PndEventCheck::PndEventCheck ( PndEventRequirements requirements)

◆ ~PndEventCheck()

virtual PndEventCheck::~PndEventCheck ( )
virtual

Destructor

Member Function Documentation

◆ CheckElectronPair()

int PndEventCheck::CheckElectronPair ( PndMCTrackInfo trackInfo,
TClonesArray *  mcTrackInfos 
)
protected

Setters

Referenced by GetEventResult().

◆ CheckEvent()

std::vector<std::vector<int> > PndEventCheck::CheckEvent ( TClonesArray *  mcTrackInfo)

Referenced by GetEventRequirements().

◆ GetEventRequirements()

PndEventRequirements PndEventCheck::GetEventRequirements ( ) const
inline

Definition at line 42 of file PndEventCheck.h.

References CheckEvent().

42 { return fEventRequirements; }

◆ GetEventResult()

std::vector<std::vector<int> > PndEventCheck::GetEventResult ( ) const
inline

Definition at line 45 of file PndEventCheck.h.

References CheckElectronPair().

45 { return fEventResult; }

◆ InitRequirements()

void PndEventCheck::InitRequirements ( )
inline

Definition at line 34 of file PndEventCheck.h.

References PndEventRequirements::InitRequirements().

34 { fEventRequirements.InitRequirements(); }

◆ Print()

void PndEventCheck::Print ( std::ostream &  out = std::cout)

Output to screen

◆ SetRequirements()

void PndEventCheck::SetRequirements ( PndEventRequirements req)
inline

Definition at line 41 of file PndEventCheck.h.

Referenced by PndMCTrackInfoAnaTask::SetEventRequirements().

41 { fEventRequirements = req; }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
PndEventCheck event 
)
friend

Definition at line 36 of file PndEventCheck.h.

37  {
38  event.Print(out);
39  return out;
40  }

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