HerdSoftware  0.1.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Herd::CaloAcceptanceCut Class Reference

An algorithm that reject events out of Calo acceptance. More...

#include <algorithms/geometry/CaloAcceptanceCut.h>

Inheritance diagram for Herd::CaloAcceptanceCut:

Public Member Functions

 CaloAcceptanceCut (const std::string &name)
 Constructor. More...
 
bool Initialize ()
 Initializes the histogram. More...
 
bool Process ()
 Fills the histogram. More...
 
bool Finalize ()
 Puts the histogram on the event store. More...
 

Private Member Functions

bool _GetAcceptanceType (const TrackInfoForCalo &trackInfo)
 Returns true if the particle is inside the Calo acceptance. More...
 

Private Attributes

observer_ptr< EventDataStore > _evStore
 Pointer to the event data store. More...
 
MCAccOption _mcAccOpt
 Container of options for the cut. More...
 

Detailed Description

An algorithm that reject events out of Calo acceptance.

Needed event objects:

name type store optional description
trackInfoForCaloMC TrackInfoForCalo evStore no Info about the track in calorimeter

Parameters:

name type default value description
trackLengthCaloCm float 0 Set the minimum shower length [cm]
trackLengthCaloX0 float 0 Set the minimum shower length [X0]
selectTOPcalo bool true Activate the TOP surface
selectBOTTOMcalo bool false Activate the BOTTOM surface
selectXNEGcalo bool true Activate the XNEG surface
selectXPOScalo bool true Activate the XPOS surface
selectYNEGcalo bool true Activate the YNEG surface
selectYPOScalo bool true Activate the YPOS surface
selectXNEGYNEGcalo bool true Activate the XNEGYNEG surface
selectXNEGYPOScalo bool true Activate the XNEGYPOS surface
selectXPOSYNEGcalo bool true Activate the XPOSYNEG surface
selectXPOSYPOScalo bool true Activate the XPOSYPOS surface

Constructor & Destructor Documentation

◆ CaloAcceptanceCut()

Herd::CaloAcceptanceCut::CaloAcceptanceCut ( const std::string &  name)

Constructor.

Parameters
nameThe name of the algorithm object.

Member Function Documentation

◆ _GetAcceptanceType()

bool Herd::CaloAcceptanceCut::_GetAcceptanceType ( const TrackInfoForCalo trackInfo)
private

Returns true if the particle is inside the Calo acceptance.

Parameters
trackInfoobject which contains the information about the track inside the Calo.
Returns
true, if event is inside the acceptance, false otherwise.

◆ Finalize()

bool Herd::CaloAcceptanceCut::Finalize ( )

Puts the histogram on the event store.

Returns
true if no error occurs during finalization, false otherwise.

◆ Initialize()

bool Herd::CaloAcceptanceCut::Initialize ( )

Initializes the histogram.

Returns
true if initialization is done without errors, false otherwise.

◆ Process()

bool Herd::CaloAcceptanceCut::Process ( )

Fills the histogram.

Returns
true if no error occurs during processing, false otherwise.

Member Data Documentation

◆ _evStore

observer_ptr<EventDataStore> Herd::CaloAcceptanceCut::_evStore
private

Pointer to the event data store.

◆ _mcAccOpt

MCAccOption Herd::CaloAcceptanceCut::_mcAccOpt
private

Container of options for the cut.


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