LDMX Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ldmx::HcalVetoResult Class Reference

Public Member Functions

 HcalVetoResult ()=default
 Constructor.
 
virtual ~HcalVetoResult ()=default
 Destructor.
 
void Clear ()
 Reset the object.
 
void Print () const
 Print out the object.
 
bool passesVeto () const
 Checks if the event passes the Hcal veto.
 
ldmx::HcalHit getMaxPEHit () const
 
void setVetoResult (const bool &passesVeto=true)
 Sets whether the Hcal veto was passed or not.
 
void setMaxPEHit (const ldmx::HcalHit maxPEHit)
 Set the maximum PE hit.
 

Private Member Functions

 ClassDef (HcalVetoResult, 2)
 

Private Attributes

ldmx::HcalHit maxPEHit_
 Reference to max PE hit.
 
bool passesVeto_ {false}
 Flag indicating whether the event passes the Hcal veto.
 

Detailed Description

Definition at line 23 of file HcalVetoResult.h.

Member Function Documentation

◆ Clear()

void ldmx::HcalVetoResult::Clear ( )

Reset the object.

Definition at line 17 of file HcalVetoResult.cxx.

17{ passesVeto_ = false; }
bool passesVeto_
Flag indicating whether the event passes the Hcal veto.

References passesVeto_.

◆ getMaxPEHit()

ldmx::HcalHit ldmx::HcalVetoResult::getMaxPEHit ( ) const
inline
Returns
The maximum PE HcalHit.

Definition at line 41 of file HcalVetoResult.h.

41{ return maxPEHit_; }
ldmx::HcalHit maxPEHit_
Reference to max PE hit.

References maxPEHit_.

Referenced by framework::test::TestAnalyzer::analyze().

◆ passesVeto()

bool ldmx::HcalVetoResult::passesVeto ( ) const
inline

Checks if the event passes the Hcal veto.

Definition at line 38 of file HcalVetoResult.h.

38{ return passesVeto_; };

References passesVeto_.

Referenced by framework::test::TestAnalyzer::analyze(), framework::test::TestProducer::produce(), and setVetoResult().

◆ Print()

void ldmx::HcalVetoResult::Print ( ) const

Print out the object.

Definition at line 19 of file HcalVetoResult.cxx.

19 {
20 std::cout << "[ HcalVetoResult ]: Passes veto : "
21 << " Passes veto: " << passesVeto_ << std::endl;
23}
void Print() const
Print out the object.
Definition HcalHit.cxx:15

References maxPEHit_, passesVeto_, and ldmx::HcalHit::Print().

◆ setMaxPEHit()

void ldmx::HcalVetoResult::setMaxPEHit ( const ldmx::HcalHit  maxPEHit)
inline

Set the maximum PE hit.

Parameters
maxPEHitThe maximum PE HcalHit

Definition at line 57 of file HcalVetoResult.h.

57{ maxPEHit_ = maxPEHit; }

References maxPEHit_.

Referenced by framework::test::TestProducer::produce(), hcal::HcalVetoProcessor::produce(), and hcal::HcalWABVetoProcessor::produce().

◆ setVetoResult()

void ldmx::HcalVetoResult::setVetoResult ( const bool &  passesVeto = true)
inline

Sets whether the Hcal veto was passed or not.

Parameters
passesVetoVeto result.

Definition at line 48 of file HcalVetoResult.h.

48 {
50 }
bool passesVeto() const
Checks if the event passes the Hcal veto.

References passesVeto(), and passesVeto_.

Referenced by framework::test::TestProducer::produce(), hcal::HcalVetoProcessor::produce(), and hcal::HcalWABVetoProcessor::produce().

Member Data Documentation

◆ maxPEHit_

ldmx::HcalHit ldmx::HcalVetoResult::maxPEHit_
private

Reference to max PE hit.

Definition at line 61 of file HcalVetoResult.h.

Referenced by getMaxPEHit(), Print(), and setMaxPEHit().

◆ passesVeto_

bool ldmx::HcalVetoResult::passesVeto_ {false}
private

Flag indicating whether the event passes the Hcal veto.

Definition at line 64 of file HcalVetoResult.h.

64{false};

Referenced by Clear(), passesVeto(), Print(), and setVetoResult().


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