#ifndef DSelector_ksigma0_h #define DSelector_ksigma0_h #include #include "DSelector/DSelector.h" #include "DSelector/DHistogramActions.h" #include "DSelector/DCutActions.h" #include "TH1I.h" #include "TH2I.h" class DSelector_ksigma0 : public DSelector { public: DSelector_ksigma0(TTree* locTree = NULL) : DSelector(locTree){} virtual ~DSelector_ksigma0(){} void Init(TTree *tree); Bool_t Process(Long64_t entry); private: double dBeamBunchPeriod; void Get_ComboWrappers(void); void Finalize(void); // BEAM POLARIZATION INFORMATION UInt_t dPreviousRunNumber; bool dIsPolarizedFlag; //else is AMO bool dIsPARAFlag; //else is PERP or AMO //CREATE REACTION-SPECIFIC PARTICLE ARRAYS //Step 0 DParticleComboStep* dStep0Wrapper; DBeamParticle* dComboBeamWrapper; DChargedTrackHypothesis* dKPlusWrapper; //Step 1 DParticleComboStep* dStep1Wrapper; DKinematicData* dDecayingSigma0Wrapper; DNeutralParticleHypothesis* dPhotonWrapper; //Step 2 DParticleComboStep* dStep2Wrapper; DKinematicData* dDecayingLambdaWrapper; DChargedTrackHypothesis* dProtonWrapper; DChargedTrackHypothesis* dPiMinusWrapper; //bools: rf signal/sideband map dHistMap_MandelstamT; map > dHistMap_Sigma0MassVsT; //string: PARA, PERP, or AMO //first bool: rf signal/sideband //2nd bool: sigma0 signal/sideband map > > dHistMap_ProdPlanePhiVsT; ClassDef(DSelector_ksigma0, 0); }; void DSelector_ksigma0::Get_ComboWrappers(void) { //Step 0 dStep0Wrapper = dComboWrapper->Get_ParticleComboStep(0); dComboBeamWrapper = static_cast(dStep0Wrapper->Get_InitialParticle()); dKPlusWrapper = static_cast(dStep0Wrapper->Get_FinalParticle(0)); //Step 1 dStep1Wrapper = dComboWrapper->Get_ParticleComboStep(1); dDecayingSigma0Wrapper = dStep1Wrapper->Get_InitialParticle(); dPhotonWrapper = static_cast(dStep1Wrapper->Get_FinalParticle(1)); //Step 2 dStep2Wrapper = dComboWrapper->Get_ParticleComboStep(2); dDecayingLambdaWrapper = dStep2Wrapper->Get_InitialParticle(); dProtonWrapper = static_cast(dStep2Wrapper->Get_FinalParticle(0)); dPiMinusWrapper = static_cast(dStep2Wrapper->Get_FinalParticle(1)); } #endif // DSelector_ksigma0_h