#include <MEventTool.h>
Collaboration diagram for MEventTool:
Public Member Functions | |
MEventTool (SCycleBase *parent) | |
Constructor specifying the parent of the tool. | |
virtual | ~MEventTool () |
Destructor. | |
void | connectManTree (const SInputData &data) throw (SError) |
connect all the branches | |
std::vector< manchester::MElectron > * | getElectrons () const |
Get vector of electrons. | |
std::vector< manchester::MMuon > * | getMuons () const |
Get vector of muons. | |
std::vector< manchester::MMuon > * | getStacoMuons () const |
Get vector of muons. | |
std::vector< manchester::MJet > * | getJets () const |
Get vector of jets. | |
std::vector< manchester::MJet > * | getAODJets () const |
Get vector of original AOD jets (needed for bad jet veto). | |
std::vector< manchester::MVertex > * | getVertices () const |
Get vector of primary vertices. | |
std::vector< manchester::MInDetTrack > * | getIDTracks () const |
Get vector of inner detector tracks. | |
std::vector< manchester::MTriggerChain > * | getTriggerChains () const |
Get vector of trigger chains. | |
std::vector< manchester::MTriggerChainResult > * | getTriggerChainResults () const |
Get vector of trigger chain results. | |
const manchester::MTriggerChainConf * | getTriggerChainConf () const |
Get trigger configuration. | |
const manchester::MMissingEt * | getMET () const |
Get the missing transverse energy. | |
manchester::MMissingEt * | getMET_notconst () |
Get the missing transverse energy. | |
const manchester::MMissingEt * | getAltMET (const std::string name) const |
Get onw of the alternate MissingEt objects. | |
const manchester::MEventInfo * | getEventInfo () const |
Get the event info (run / event number etc). | |
std::vector< manchester::MJet > * | getMCParticleJets () const |
Get vector of MC particle jets. | |
std::vector< manchester::MTruthParticle > * | getMCTruthParticles () const |
Get vector MC truth particles. | |
const manchester::MPDFInfo * | getPDFInfo () const |
Get MC PDF info. | |
void | setUserElectrons (unsigned int cut, std::vector< const manchester::MElectron * > selem) |
Remember some selected electrons. | |
const std::vector< const manchester::MElectron * > * | getUserElectrons (unsigned int cut) const |
Get some selected electrons. | |
void | setUserMuons (unsigned int cut, std::vector< const manchester::MMuon * > selmuon) |
Remember some selected muons. | |
const std::vector< const manchester::MMuon * > * | getUserMuons (unsigned int cut) const |
Get some selected muons. | |
void | setUserJets (unsigned int cut, std::vector< const manchester::MJet * > seljet) |
Remember some selected jets. | |
const std::vector< const manchester::MJet * > * | getUserJets (unsigned int cut) const |
Get some selected jets. | |
void | disableBranch (const std::string branchName) throw (SError) |
Disable a branch. | |
Protected Member Functions | |
void | fillDefaultBranchSet () |
fill list of default branches | |
ClassDef (MEventTool, 0) | |
root class magic | |
Protected Attributes | |
std::string | m_inTreeName |
name of the manTree | |
std::string | m_metName2010 |
name of the MET branch | |
std::string | m_metName2011 |
std::vector< manchester::MElectron > * | m_em |
std::vector< manchester::MJet > * | m_jet |
vector of reconstructed jets | |
std::vector< manchester::MJet > * | m_mcpart_jet |
vector of jets made from MC truth final state particles | |
std::vector< manchester::MJet > * | m_originalaod_jet |
vector of reconstructed jets | |
std::vector< manchester::MMuon > * | m_muon |
vector of recontructed muons | |
std::vector< manchester::MMuon > * | m_stacomuon |
vector of recontructed muons | |
std::vector< manchester::MVertex > * | m_vertex |
vector of reconstructed vertices | |
std::vector< manchester::MTriggerChain > * | m_trigChains |
vector of trigger chains | |
std::vector< manchester::MTriggerChainResult > * | m_trigResults |
vector of trigger results | |
const manchester::MTriggerChainConf * | m_trigconf |
trigger configuration (not enabled yet) | |
std::vector< manchester::MTruthParticle > * | m_truthpart |
vector of MC truth particles | |
manchester::MMissingEt * | m_met |
Missing transverse energy. | |
std::map< std::string, manchester::MMissingEt * > | m_met_map |
Alternate missing energy objects. | |
manchester::MEventInfo * | m_evinfo |
Event info (run number, event number etc). | |
std::vector< manchester::MInDetTrack > * | m_idTrk |
vector of reconstructed inner detector tracks | |
manchester::MPDFInfo * | m_pdfinfo |
MC PDF Info. | |
std::map< unsigned int, std::vector< const manchester::MElectron * > > | m_user_em |
std::map< unsigned int, std::vector< const manchester::MMuon * > > | m_user_muon |
std::map< unsigned int, std::vector< const manchester::MJet * > > | m_user_jet |
std::set< std::string > | m_branchNames |
list of all valid branch names | |
std::set< std::string > | m_branchesToDisable |
list of branches to disable |
This class is used to load all the ntuple variables from the manTree files.
It then provides access to the objects through methods like: getElectrons()
MEventTool::MEventTool | ( | SCycleBase * | parent | ) |
Constructor specifying the parent of the tool.
Constructor - initializes variables
Create the vectors that will hold the physics objects
MEventTool::~MEventTool | ( | ) | [virtual] |
Destructor.
Destructor
void MEventTool::connectManTree | ( | const SInputData & | data | ) | throw (SError) |
connect all the branches
Connects all the variables to the branches in the manTree file
Electron branch
Muon Branch
Vertex branch
ID Track branch
Truth info
truth particle branch
Trigger branch
MMissingET
Jet Branch
Jet Branch
Event Info
void MEventTool::fillDefaultBranchSet | ( | ) | [protected] |
fill list of default branches
Function to fill the set with all the branch names we use.
const vector< const MElectron * > * MEventTool::getUserElectrons | ( | unsigned int | cut | ) | const |
Get some selected electrons.
Function to retrieve electrons previously stored with setUserElectrons.
const vector< const MJet * > * MEventTool::getUserJets | ( | unsigned int | cut | ) | const |
Get some selected jets.
Function to retrieve jets previously stored with setUserJets.
const vector< const MMuon * > * MEventTool::getUserMuons | ( | unsigned int | cut | ) | const |
Get some selected muons.
Function to retrieve muons previously stored with setUserMuons.
void MEventTool::setUserElectrons | ( | unsigned int | cut, | |
std::vector< const manchester::MElectron * > | selem | |||
) |
Remember some selected electrons.
Function to store some selected electrons. After you have applied your selection cuts, you can pass the vector of selected electrons to this function (with an unsigned int to label them) and then retrieve them later from the tool, like: m_event->setUserElectrons(0, myselectedelectrons);
vector<const MElectron*> elecs = m_event->getUserElectrons(0);
void MEventTool::setUserJets | ( | unsigned int | cut, | |
std::vector< const manchester::MJet * > | seljet | |||
) |
Remember some selected jets.
Function to store some selected jets. After you have applied your selection cuts, you can pass the vector of selected jets to this function (with an unsigned int to label them) and then retrieve them later from the tool, like: m_event->setUserJets(0, myselectedjets);
vector<const MJet*> elecs = m_event->getUserJets(0);
void MEventTool::setUserMuons | ( | unsigned int | cut, | |
std::vector< const manchester::MMuon * > | selmuon | |||
) |
Remember some selected muons.
Function to store some selected muons. After you have applied your selection cuts, you can pass the vector of selected muons to this function (with an unsigned int to label them) and then retrieve them later from the tool, like: m_event->setUserMuons(0, myselectedmuons);
vector<const MMuon*> elecs = m_event->getUserMuons(0);
std::vector<manchester::MElectron>* MEventTool::m_em [protected] |
ntuple objects vector of reconstructed electrons