NAIA  1.1.1
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
NAIA::NtpSelector Class Reference

#include <NtpSelector.h>

Inheritance diagram for NAIA::NtpSelector:

Public Member Functions

 NtpSelector (bool is_mc)
 
void ReprocessRTI (bool reprocess)
 
void SetOutputFilename (std::string outFilename)
 
virtual void UBegin () override
 Init output. More...
 
virtual bool UProcessCut () override
 Cut, select and prescale. More...
 
virtual void UProcessFill () override
 Fill ntuple. More...
 
virtual void UTerminate () override
 Save. More...
 
virtual void Init (TTree *tree) override
 
virtual bool Notify () override
 Called every time a new file is loaded in the chain. More...
 
void ProcessFileInfo ()
 

Public Attributes

bool isMC = false
 is simulation? More...
 
unsigned long long firstentry = 0
 first entry to be processed More...
 
unsigned long long lastentry = 0
 last entry to be processed More...
 
bool useGetMCBeta = false
 set if old GetMCBeta is used More...
 

Private Member Functions

void DefineStandAlone ()
 Select standalone objects. More...
 

Private Attributes

bool m_reprocess_rti = false
 
TTree * m_tree
 
std::string m_outputFilename
 
std::unique_ptr< TFile > m_outputFile
 
std::unique_ptr< NAIAChainm_chain
 
BetaHR * m_betahStPtr
 
TrdTrackR * m_trdTrackStPtr
 
AMSSetupR::RTI m_rti
 
Benchmark m_benchmark
 
std::shared_ptr< spdlog::logger > m_logger
 

Detailed Description

Definition at line 21 of file NtpSelector.h.

Constructor & Destructor Documentation

◆ NtpSelector()

NAIA::NtpSelector::NtpSelector ( bool  is_mc)
inline

Definition at line 23 of file NtpSelector.h.

Member Function Documentation

◆ DefineStandAlone()

void NAIA::NtpSelector::DefineStandAlone ( )
private

Select standalone objects.

Definition at line 504 of file NtpSelector.cpp.

References NAIA::Tof::BetaH, m_betahStPtr, m_logger, and m_trdTrackStPtr.

Referenced by UProcessCut().

◆ Init()

virtual void NAIA::NtpSelector::Init ( TTree *  tree)
inlineoverridevirtual

Definition at line 43 of file NtpSelector.h.

References m_tree.

◆ Notify()

bool NAIA::NtpSelector::Notify ( )
overridevirtual

Called every time a new file is loaded in the chain.

Definition at line 34 of file NtpSelector.cpp.

References isMC, m_chain, m_logger, and m_tree.

◆ ProcessFileInfo()

void NAIA::NtpSelector::ProcessFileInfo ( )

◆ ReprocessRTI()

void NAIA::NtpSelector::ReprocessRTI ( bool  reprocess)
inline

Definition at line 34 of file NtpSelector.h.

References m_reprocess_rti.

◆ SetOutputFilename()

void NAIA::NtpSelector::SetOutputFilename ( std::string  outFilename)
inline

Definition at line 35 of file NtpSelector.h.

References m_outputFilename.

Referenced by main().

◆ UBegin()

void NAIA::NtpSelector::UBegin ( )
overridevirtual

◆ UProcessCut()

bool NAIA::NtpSelector::UProcessCut ( )
overridevirtual

◆ UProcessFill()

void NAIA::NtpSelector::UProcessFill ( )
overridevirtual

Fill ntuple.

Definition at line 477 of file NtpSelector.cpp.

◆ UTerminate()

void NAIA::NtpSelector::UTerminate ( )
overridevirtual

Save.

Definition at line 479 of file NtpSelector.cpp.

References m_benchmark, m_chain, m_logger, m_outputFile, m_reprocess_rti, and NAIA::Benchmark::Print().

Member Data Documentation

◆ firstentry

unsigned long long NAIA::NtpSelector::firstentry = 0

first entry to be processed

Definition at line 28 of file NtpSelector.h.

Referenced by UProcessCut().

◆ isMC

bool NAIA::NtpSelector::isMC = false

is simulation?

Definition at line 26 of file NtpSelector.h.

Referenced by Notify(), ProcessFileInfo(), UBegin(), and UProcessCut().

◆ lastentry

unsigned long long NAIA::NtpSelector::lastentry = 0

last entry to be processed

Definition at line 30 of file NtpSelector.h.

Referenced by UProcessCut().

◆ m_benchmark

Benchmark NAIA::NtpSelector::m_benchmark
private

Definition at line 73 of file NtpSelector.h.

Referenced by UBegin(), UProcessCut(), and UTerminate().

◆ m_betahStPtr

BetaHR* NAIA::NtpSelector::m_betahStPtr
private

Definition at line 68 of file NtpSelector.h.

Referenced by DefineStandAlone(), and UProcessCut().

◆ m_chain

std::unique_ptr<NAIAChain> NAIA::NtpSelector::m_chain
private

Definition at line 65 of file NtpSelector.h.

Referenced by Notify(), ProcessFileInfo(), UBegin(), UProcessCut(), and UTerminate().

◆ m_logger

std::shared_ptr<spdlog::logger> NAIA::NtpSelector::m_logger
private

Definition at line 74 of file NtpSelector.h.

Referenced by DefineStandAlone(), Notify(), ProcessFileInfo(), UBegin(), UProcessCut(), and UTerminate().

◆ m_outputFile

std::unique_ptr<TFile> NAIA::NtpSelector::m_outputFile
private

Definition at line 62 of file NtpSelector.h.

Referenced by UBegin(), and UTerminate().

◆ m_outputFilename

std::string NAIA::NtpSelector::m_outputFilename
private

Definition at line 61 of file NtpSelector.h.

Referenced by SetOutputFilename(), and UBegin().

◆ m_reprocess_rti

bool NAIA::NtpSelector::m_reprocess_rti = false
private

Definition at line 55 of file NtpSelector.h.

Referenced by ReprocessRTI(), UBegin(), UProcessCut(), and UTerminate().

◆ m_rti

AMSSetupR::RTI NAIA::NtpSelector::m_rti
private

Definition at line 70 of file NtpSelector.h.

Referenced by UProcessCut().

◆ m_trdTrackStPtr

TrdTrackR* NAIA::NtpSelector::m_trdTrackStPtr
private

Definition at line 69 of file NtpSelector.h.

Referenced by DefineStandAlone(), and UProcessCut().

◆ m_tree

TTree* NAIA::NtpSelector::m_tree
private

Definition at line 58 of file NtpSelector.h.

Referenced by Init(), Notify(), and ProcessFileInfo().

◆ useGetMCBeta

bool NAIA::NtpSelector::useGetMCBeta = false

set if old GetMCBeta is used

Definition at line 32 of file NtpSelector.h.


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