SusyNtuple
|
00001 #ifndef SusyCommon_SusyNtObject_h 00002 #define SusyCommon_SusyNtObject_h 00003 00004 #include "TTree.h" 00005 #include <vector> 00006 00007 #include "SusyNtuple/VarHandle.h" 00008 #include "SusyNtuple/SusyNt.h" 00009 00010 00011 namespace Susy 00012 { 00014 class SusyNtObject : public TObject 00015 { 00016 public: 00017 00019 SusyNtObject(); 00021 SusyNtObject(const Long64_t& entry); 00022 00024 // I will later add flags here for controlling systematics 00025 void SetActive(); 00027 void WriteTo( TTree* tree ); 00029 void ReadFrom( TTree* tree ); 00031 void clear(); 00032 00033 // 00034 // SusyNt variables 00035 // This may change to a map based usage later for systematics 00036 // 00037 00039 D3PDReader::VarHandle< Event* > evt; 00041 D3PDReader::VarHandle< std::vector<Electron>* > ele; 00043 D3PDReader::VarHandle< std::vector<Muon>* > muo; 00045 D3PDReader::VarHandle< std::vector<Jet>* > jet; 00047 D3PDReader::VarHandle< std::vector<Photon>* > pho; 00049 D3PDReader::VarHandle< std::vector<Tau>* > tau; 00051 D3PDReader::VarHandle< std::vector<Met>* > met; 00053 D3PDReader::VarHandle< std::vector<TrackMet>* > tkm; 00055 D3PDReader::VarHandle< std::vector<TruthParticle>* > tpr; 00057 D3PDReader::VarHandle< std::vector<TruthJet>* > tjt; 00059 D3PDReader::VarHandle< std::vector<TruthMet>* > tmt; 00060 00061 ClassDef(SusyNtObject, 5); 00062 00063 protected: 00064 00065 00066 }; 00067 00068 00069 }; 00070 00071 00072 #endif