NAIA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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 isMC)
 
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 ()
 
void SetLoggingLevel (spdlog::level::level_enum logLevel)
 

Public Attributes

bool m_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...
 

Private Member Functions

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

Private Attributes

TTree * m_tree
 
std::string m_outputFilename
 
std::unique_ptr< TFile > m_outputFile
 
std::unique_ptr< NAIAChainm_chain
 
BetaHR * m_betahStPtr
 
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

NAIA::NtpSelector::NtpSelector ( bool  isMC)
inline

Definition at line 23 of file NtpSelector.h.

Member Function Documentation

void NAIA::NtpSelector::DefineStandAlone ( )
private

Select standalone objects.

Definition at line 388 of file NtpSelector.cpp.

References NAIA::Tof::BetaH.

Referenced by UProcessCut().

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

Definition at line 40 of file NtpSelector.h.

References m_tree.

bool NAIA::NtpSelector::Notify ( )
overridevirtual

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

Definition at line 25 of file NtpSelector.cpp.

References m_chain, m_isMC, m_logger, and m_tree.

void NAIA::NtpSelector::ProcessFileInfo ( )
void NAIA::NtpSelector::SetLoggingLevel ( spdlog::level::level_enum  logLevel)
inline

Definition at line 48 of file NtpSelector.h.

References m_logger.

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

Definition at line 32 of file NtpSelector.h.

References m_outputFilename.

Referenced by main().

void NAIA::NtpSelector::UBegin ( )
overridevirtual
bool NAIA::NtpSelector::UProcessCut ( )
overridevirtual
void NAIA::NtpSelector::UProcessFill ( )
overridevirtual

Fill ntuple.

Definition at line 368 of file NtpSelector.cpp.

void NAIA::NtpSelector::UTerminate ( )
overridevirtual

Save.

Definition at line 370 of file NtpSelector.cpp.

Member Data Documentation

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

first entry to be processed

Definition at line 28 of file NtpSelector.h.

Referenced by main(), and UProcessCut().

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

last entry to be processed

Definition at line 30 of file NtpSelector.h.

Referenced by main(), and UProcessCut().

Benchmark NAIA::NtpSelector::m_benchmark
private

Definition at line 68 of file NtpSelector.h.

Referenced by UBegin(), and UProcessCut().

BetaHR* NAIA::NtpSelector::m_betahStPtr
private

Definition at line 64 of file NtpSelector.h.

Referenced by UProcessCut().

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

Definition at line 61 of file NtpSelector.h.

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

bool NAIA::NtpSelector::m_isMC = false

is simulation?

Definition at line 26 of file NtpSelector.h.

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

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

Definition at line 69 of file NtpSelector.h.

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

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

Definition at line 58 of file NtpSelector.h.

Referenced by UBegin().

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

Definition at line 57 of file NtpSelector.h.

Referenced by SetOutputFilename(), and UBegin().

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

Definition at line 65 of file NtpSelector.h.

Referenced by UProcessCut().

TTree* NAIA::NtpSelector::m_tree
private

Definition at line 54 of file NtpSelector.h.

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


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