#include "TLorentzVector.h" class SimpleCand { public: SimpleCand() {fLV.SetXYZT(0.,0.,0.,0.); fPid = 0; fId = 0; fCh = 0; fMotherIdx=-1; fMct=false; fMcPid=false; fNSiblings=1; fNFS=1; fMarker=1<0 && fDauL>0) ? fDauL-fDauF+1 : 0;} bool IsDau(int idx) const {return NDau()>0 ? (idx>=fDauF && idx<=fDauL) : false;} SimpleCand* Dau(int idx) {return fDaus[idx];} private: TLorentzVector fLV; int fPid; int fPdg; int fId; int fEvtId; int fCh; int fMotherIdx; int fNSiblings; int fNFS; bool fMct; bool fMcPid; unsigned int fMarker; int fDauF; int fDauL; int fNDau; std::vector fDaus; }; typedef std::vector CandList;