#ifndef DSelector_kmkp_h #define DSelector_kmkp_h #include #include "DSelector/DSelector.h" #include "DSelector/DHistogramActions.h" #include "DSelector/DCutActions.h" #include "TH1I.h" #include "TH2I.h" class DSelector_kmkp : public DSelector { public: DSelector_kmkp(TTree* locTree = NULL) : DSelector(locTree){} virtual ~DSelector_kmkp(){} void Init(TTree *tree); Bool_t Process(Long64_t entry); private: 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; DChargedTrackHypothesis* dKMinusWrapper; DChargedTrackHypothesis* dProtonWrapper; ClassDef(DSelector_kmkp, 0); }; void DSelector_kmkp::Get_ComboWrappers(void) { //Step 0 dStep0Wrapper = dComboWrapper->Get_ParticleComboStep(0); dComboBeamWrapper = static_cast(dStep0Wrapper->Get_InitialParticle()); dKMinusWrapper = static_cast(dStep0Wrapper->Get_FinalParticle(0)); dKPlusWrapper = static_cast(dStep0Wrapper->Get_FinalParticle(1)); dProtonWrapper = static_cast(dStep0Wrapper->Get_FinalParticle(2)); } #endif // DSelector_kmkp_h