eventAnalysis  7.0-49-g0ac7482
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ND::TTrackerReconModule Class Reference

This module summarizes the reconstruction information from the trackerRecon. More...

#include <TTrackerReconModule.hxx>

+ Inheritance diagram for ND::TTrackerReconModule:
+ Collaboration diagram for ND::TTrackerReconModule:

Classes

class  TFGDTrack
 An object to hold specific FGD track variables. More...
 
class  TTPCTrack
 TPC pid and track variables. More...
 
class  TTrackerConstituent
 An object to describe a constituent of a trackerRecon result. More...
 
class  TTrackerNode
 Object to describe the fit parameters at a track node. More...
 
class  TTrackerResult
 An object to describe a reconstructed trackerRecon result. More...
 
class  TTrackerVertex
 An object to describe a reconstructed vertex. More...
 
class  TTrackOther
 An object to describe a track that has no fit result. More...
 
class  TTrueParticle
 An object to describe the true G4 particle associated to the TTrackerResult. More...
 
class  TUnusedHit
 An object to describe a reconstructed track. More...
 

Public Member Functions

 TTrackerReconModule (const char *name="Tracker", const char *title="Tracker Recon Module")
 Constructor. More...
 
virtual ~TTrackerReconModule ()
 Destructor. More...
 
virtual Bool_t Configure (std::string &option)
 A function that allows the module to be configured from an external class without any dependencies. More...
 
Int_t GetBufferSize ()
 ROOT output parameters, usually no need to touch. More...
 
std::string const GetCVSID () const
 
std::string const GetCVSTagName () const
 
std::string const GetDescription () const
 
std::string const GetDirectoryName () const
 Returns the name of the directory which the output of a particular module will be saved in. More...
 
char const * GetName ()
 
TTree const * GetOutputTree () const
 The output tree. More...
 
Int_t GetSplitLevel ()
 ROOT output parameters, usually no need to touch. More...
 
char const * GetTitle ()
 
virtual EType GetTreeType () const
 Returns the type of tree, header, truth, or recon. More...
 
void Initialize (TTree *tree)
 
virtual Bool_t IsEnabled () const
 Whether the module is enable or not. More...
 
virtual Bool_t IsEnabledByDefault () const
 Is the module is enabled by default. More...
 
virtual bool IsFullEventWorthSaving (ND::TND280Event &event)
 Whether the module thinks it is worth saving the entire oaEvent event tree entry for this event. More...
 
virtual Bool_t IsUsedForPreselection () const
 Whether the module should call IsFullEventWorthSaving() function for each event, to decide if the full oaEvent info for that event should be saved in the output. More...
 
void KillOutputTree ()
 
virtual void Print ()
 Prints a simple message describing the module. More...
 
virtual bool Process (ND::TND280Event &event)
 Gets the run and event IDs and calls FillTree with the event, and then actually calls fOutputTree->Fill. More...
 
virtual Bool_t ProcessFirstEvent (ND::TND280Event &event)
 Method for special handling of first event. More...
 
virtual void SayAvailableOpts (std::string indent="")
 Subclasses should override this to let a user know what options are available. More...
 
void SetBufferSize (Int_t buffersize)
 ROOT output parameters, usually no need to touch. More...
 
virtual void SetDisabled ()
 Disables the module. More...
 
virtual void SetEnabled (Bool_t isenabled=true)
 Sets whether the module is enabled. More...
 
void SetInputDirectory (std::string dir)
 
void SetNameTitle (char const *name, char const *title)
 
void SetSplitLevel (Int_t splitlevel)
 ROOT output parameters, usually no need to touch. More...
 
virtual void SetUsedForPreselection (Bool_t isused=true)
 Sets whether the module should call IsFullEventWorthSaving() function for each event, to decide if the full oaEvent info for that event should be saved in the output. More...
 

Public Attributes

TClonesArray * fFGDOther
 The vector of FGD tracks with no fit. More...
 
TClonesArray * fFGDUnused
 The vector of unused TPC hits. More...
 
Int_t fNFGDOther
 The number of FGD tracks with no fit (none ever?). More...
 
Int_t fNFGDUnused
 The number of unused FGD hits. More...
 
Int_t fNTPCExtrapolation
 The number of TPC tracks extrapolated into theFGD following Claudio's (2010a) method. More...
 
Int_t fNTPCIso
 The number of isolated TPC tracks with fits (none ever?) More...
 
Int_t fNTPCOther
 The number of TPC tracks with no fit. More...
 
Int_t fNTPCUnused
 The number of unused TPC hits. More...
 
Int_t fNTracks
 The number of trackerRecon results. More...
 
Int_t fNVertices
 Tree Entries. More...
 
TClonesArray * fTPCExtrapolation
 The vector of TPC tracks extrapolatedinto the FGD following Claudio's (2010a)method. More...
 
TClonesArray * fTPCIso
 The vector of isolated TPC tracks with fits. More...
 
TClonesArray * fTPCOther
 The vector of TPC tracks with no fit. More...
 
TClonesArray * fTPCUnused
 The vector of unused TPC hits. More...
 
TClonesArray * fTracks
 The vector of overall trackerRecon results. More...
 
TClonesArray * fVertices
 The vector of trackerRecon vertices (none ever?). More...
 

Protected Types

enum  EType {
  kHeader = 0, kTruth, kRecon, kLowLevel,
  kNTypes
}
 

Protected Member Functions

void CheckMatchingFailure (TTrackerResult *result, ND::THandle< ND::TReconBase > reco)
 Method to find FGD constituent track from a matching object and fill matchingFailure_flag. More...
 
bool ExtrapolateTPC (ND::THandle< ND::TReconPID > in, TClonesArray *out, int idx, ND::THandle< ND::THitSelection > fgd)
 Method to make a TPC object with extrapolated hit association information. More...
 
void FillConfigTree (TTree *configTree)
 
bool FillConstituentPid (TTrackerResult *result, ND::THandle< ND::TReconPID > in, int &idx)
 Method to fill information about constituent pids. More...
 
bool FillConstituentTrack (TTrackerResult *result, ND::THandle< ND::TReconTrack > in, int &idx)
 Method to fill information about constituent tracks. More...
 
void FillFGD (ND::THandle< ND::TReconTrack > in, TClonesArray *out, int idx)
 Method to fill trackerRecon tree with FGD information Input is a TReconPID of FGD fit information. More...
 
void FillFinalPid (TTrackerResult *result, ND::THandle< ND::TReconPID > reco)
 Method to fill a trackerRecon result entry. More...
 
void FillFinalTrack (TTrackerResult *result, ND::THandle< ND::TReconTrack > reco)
 Method to fill a trackerRecon result entry. More...
 
void FillOther (ND::THandle< ND::TReconTrack > in, TClonesArray *out, int idx)
 Method to fill trackerRecon tree with unfit track information Input is a TReconTrack that was not fit. More...
 
void FillTPC (ND::THandle< ND::TReconPID > in, TClonesArray *out, int idx)
 Method to fill trackerRecon tree with TPC information Input is a TReconPID of TPC fit information. More...
 
virtual bool FillTree (ND::TND280Event &)
 Main call to fill all of the branches of the trackerRecon eventAnalysis tree for a given event. More...
 
void FillTrueParticle (ND::TG4Trajectory *G4track, double pur, double eff, ND::TTrackerReconModule::TTrueParticle &trueParticle)
 Method to fill the true particle information given a G4track. More...
 
void FillTrueVertex (bool found, const ND::TG4PrimaryVertex &G4vertex, double pur, double eff, ND::TTrueVertex &vertex)
 Method to fill the true vertex information from a given G4 vertex. More...
 
void FillVertex (ND::THandle< ND::TReconVertex > in, TClonesArray *out, int idx)
 Method to fill trackerRecon tree with vertex information Input is a TReconVertex. More...
 
double GetCharge (ND::THandle< ND::TTrackState > state)
 Helper method to convert TTrackState curvature information into track charge. More...
 
ND::THandle< ND::TReconTrack > GetConstituentTrack (ND::THandle< ND::TReconPID > in, int &nconstit)
 called recursively to look for bottom level track that built a PID. More...
 
int GetDetectorNumber (ND::THandle< ND::TReconBase > object)
 Method to build an integer key that describes the detectors used to build the TRecon object. More...
 
bool GetG4Vertex (ND::TG4Trajectory *G4track, ND::TG4PrimaryVertex &G4vertex)
 Method to find the best matching G4 vertex for a given G4 track. More...
 
ND::THandle< ND::THitSelection > GetHitsFromComboHits (ND::THandle< ND::THitSelection > tpc)
 Method to get the tpc combo hits from the tpc hit selection (used for tpc other) More...
 
bool GetIncomingParticle (const ND::TG4PrimaryVertex &G4vertex, ND::TG4PrimaryParticle &incoming)
 Method to find the incident particle (neutrino) that gave rise to a given G4 track. More...
 
void GetMomentum (ND::THandle< ND::TTrackState > state, double &p, double &ep)
 Helper method to convert TTrackState curvature information into momentum and momentum uncertainty. More...
 
int GetNumberOfHits (ND::THandle< ND::TReconBase > object)
 Method to find the total number of hits used to build the reconstructed track/pid/etc. More...
 
ND::THandle< ND::TG4Trajectory > GetParent (ND::TG4Trajectory *G4track)
 Method to get the parent G4 track for a given G4 track. More...
 
ND::THandle< ND::TG4Trajectory > GetParent (ND::THandle< ND::TG4Trajectory > G4track)
 
ND::TG4Trajectory GetTrajectory (ND::TND280Event &event, ND::THandle< ND::TReconBase > reco)
 Method to get the G4 trajectory that best matches the TRecon object. More...
 
virtual void InitializeBranches ()
 Initialize the branches in the trackerRecon eventAnalysis tree. More...
 
virtual void InitializeModule ()
 Method to initialize this module. More...
 
std::map< int, double > TrkRecModGetG4TrajectoryFractions (const ND::THandle< ND::TReconBase > track)
 Method to measure the purity of a reconstructed track against the truth. More...
 

Protected Attributes

Int_t fBufferSize
 Buffer Size for TBranch. More...
 
std::string fCVSID
 Defined if an official tagged version. More...
 
std::string fCVSTagName
 Defined if an official tagged version. More...
 
std::string fDescription
 A longish descrition of the analysis. More...
 
Int_t fEventID
 
Bool_t fFilledConfigTree
 
std::string fInputDirectory
 An input directory where analysis modules can search for extra files. More...
 
Bool_t fIsEnabled
 
Bool_t fIsMC
 
Bool_t fIsUsedForPreselection
 
std::string fName
 
TTree * fOutputTree
 
Int_t fPreselected
 
Int_t fRunID
 
Int_t fSplitLevel
 Split Level for TBranch. More...
 
Int_t fSubrunID
 
std::string fTitle
 

Private Attributes

double fCathodeOffset
 TPC cathode offset used for tpc other hits. More...
 
double fDriftVelocity
 TPC drift velocity used for tpc other hits. More...
 
double fMaxDrift
 TPC maximum drift used for tpc other hits. More...
 

Detailed Description

This module summarizes the reconstruction information from the trackerRecon.

Definition at line 32 of file TTrackerReconModule.hxx.

Member Enumeration Documentation

enum ND::TAnalysisModuleBase::EType
protectedinherited
Enumerator
kHeader 
kTruth 
kRecon 
kLowLevel 
kNTypes 

Definition at line 54 of file TAnalysisModuleBase.hxx.

Constructor & Destructor Documentation

ND::TTrackerReconModule::~TTrackerReconModule ( )
virtual

Destructor.

Definition at line 125 of file TTrackerReconModule.cxx.

Member Function Documentation

void ND::TTrackerReconModule::CheckMatchingFailure ( TTrackerResult result,
ND::THandle< ND::TReconBase >  reco 
)
protected

Method to find FGD constituent track from a matching object and fill matchingFailure_flag.

Definition at line 1862 of file TTrackerReconModule.cxx.

References eventAnalysisEnums::kFGD1, eventAnalysisEnums::kFGD2, and ND::TTrackerReconModule::TTrackerResult::matchingFailure_flag.

Referenced by FillTree().

Bool_t ND::TAnalysisModuleBase::Configure ( std::string &  option)
virtualinherited

A function that allows the module to be configured from an external class without any dependencies.

Should be overridden with a function that responds to the string option, and returns true if configuration succedded. Used in TAnalysisLoop.cxx (and RunEventAnalysis.exe) for options of the form: -O TTruthTrajectoriesModule=SaveAll

Reimplemented in ND::TTrackerECALReconModule::OutputManager, ND::TGlobalReconModule, ND::TBeamSummaryDataModule, ND::TTruthTrajectoriesModule, ND::TBasicHeaderModule, and ND::TTagsModule.

Definition at line 17 of file TAnalysisModuleBase.cxx.

bool ND::TTrackerReconModule::ExtrapolateTPC ( ND::THandle< ND::TReconPID >  in,
TClonesArray *  out,
int  idx,
ND::THandle< ND::THitSelection >  fgd 
)
protected
void ND::TTrackerReconModule::FillConfigTree ( TTree *  configTree)
protectedvirtual
bool ND::TTrackerReconModule::FillConstituentPid ( TTrackerResult result,
ND::THandle< ND::TReconPID >  in,
int &  idx 
)
protected

Method to fill information about constituent pids.

That is the pid pieces used to build the final pid. Note that only the multiple detector constituents are filled here, while the FGD and TPC only tracks are filled by calling FillTPC and FillFGD. This method is recursively called to fill all constituents, constituents of constituents, and so on. If new constituent is created it returns true, otherwise returns false, and returns the index into TTrackResult::Constituents if a new constituent was added to the tree.

Definition at line 813 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTrackerConstituent::AlgorithmName, ND::TTrackerReconModule::TTrackerConstituent::BackDirection, ND::TTrackerReconModule::TTrackerConstituent::BackMomentum, ND::TTrackerReconModule::TTrackerConstituent::BackPosition, ND::TTrackerReconModule::TTrackerConstituent::BackVariance, ND::TTrackerReconModule::TTrackerConstituent::Charge, ND::TTrackerReconModule::TTrackerConstituent::Chi2, ND::TTrackerReconModule::TTrackerConstituent::ConstitIdx, ND::TTrackerReconModule::TTrackerResult::Constituents, ND::TTrackerReconModule::TTrackerConstituent::Detectors, ND::TTrackerReconModule::TTrackerConstituent::Direction, ND::TTrackerReconModule::TTrackerConstituent::EDeposit, FillConstituentTrack(), FillTPC(), ND::TTrackerReconModule::TTrackerConstituent::FrontDirection, ND::TTrackerReconModule::TTrackerConstituent::FrontMomentum, ND::TTrackerReconModule::TTrackerConstituent::FrontPosition, ND::TTrackerReconModule::TTrackerConstituent::FrontVariance, GetDetectorNumber(), GetNumberOfHits(), ND::TTrackerReconModule::TTrackerConstituent::isForward, ND::TTrackerReconModule::TTrackerConstituent::Momentum, ND::TTrackerReconModule::TTrackerConstituent::MomentumError, ND::TTrackerReconModule::TTrackerConstituent::NConstituents, ND::TTrackerReconModule::TTrackerConstituent::NDOF, ND::TTrackerReconModule::TTrackerConstituent::NHits, ND::TTrackerReconModule::TTrackerConstituent::NNodes, ND::TTrackerReconModule::TTrackerResult::NTotalConstituents, ND::TTrackerReconModule::TTrackerResult::NTPCs, ND::TTrackerReconModule::TTrackerConstituent::Position, ND::TTrackerReconModule::TTrackerConstituent::Quality, ND::TTrackerReconModule::TTrackerResult::Quality, ND::TTrackerReconModule::TTrackerConstituent::Status, ND::TTrackerReconModule::TTrackerResult::TPC, and ND::TTrackerReconModule::TTrackerConstituent::Variance.

Referenced by FillConstituentTrack(), FillFinalPid(), and FillFinalTrack().

bool ND::TTrackerReconModule::FillConstituentTrack ( TTrackerResult result,
ND::THandle< ND::TReconTrack >  in,
int &  idx 
)
protected

Method to fill information about constituent tracks.

That is the track pieces used to build the final track. Note that only the multiple detector constituents are filled here, while the FGD and TPC only tracks are filled by calling FillTPC and FillFGD. This method is recursively called to fill all constituents, constituents of constituents, and so on. If new constituent is created it returns true, otherwise returns false, and returns the index into TTrackResult::Constituents if a new constituent was added to the tree.

Definition at line 940 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTrackerConstituent::AlgorithmName, ND::TTrackerReconModule::TTrackerConstituent::BackDirection, ND::TTrackerReconModule::TTrackerConstituent::BackMomentum, ND::TTrackerReconModule::TTrackerConstituent::BackPosition, ND::TTrackerReconModule::TTrackerConstituent::BackVariance, ND::TTrackerReconModule::TTrackerConstituent::Charge, ND::TTrackerReconModule::TTrackerConstituent::Chi2, ND::TTrackerReconModule::TTrackerConstituent::ConstitIdx, ND::TTrackerReconModule::TTrackerResult::Constituents, ND::TTrackerReconModule::TTrackerConstituent::Detectors, ND::TTrackerReconModule::TTrackerConstituent::Direction, ND::TTrackerReconModule::TTrackerConstituent::DirectionVariance, ND::TTrackerReconModule::TTrackerConstituent::EDeposit, ND::TTrackerReconModule::TTrackerResult::FGD, FillConstituentPid(), FillFGD(), FillTPC(), ND::TTrackerReconModule::TTrackerConstituent::FrontDirection, ND::TTrackerReconModule::TTrackerConstituent::FrontMomentum, ND::TTrackerReconModule::TTrackerConstituent::FrontPosition, ND::TTrackerReconModule::TTrackerConstituent::FrontVariance, GetCharge(), GetDetectorNumber(), GetMomentum(), GetNumberOfHits(), ND::TTrackerReconModule::TTrackerConstituent::isForward, ND::TTrackerReconModule::TTrackerConstituent::Momentum, ND::TTrackerReconModule::TTrackerConstituent::MomentumError, ND::TTrackerReconModule::TTrackerConstituent::NConstituents, ND::TTrackerReconModule::TTrackerConstituent::NDOF, ND::TTrackerReconModule::TTrackerResult::NFGDs, ND::TTrackerReconModule::TTrackerConstituent::NHits, ND::TTrackerReconModule::TTrackerConstituent::NNodes, ND::TTrackerReconModule::TTrackerResult::NTotalConstituents, ND::TTrackerReconModule::TTrackerResult::NTPCs, ND::TTrackerReconModule::TTrackerConstituent::Position, ND::TTrackerReconModule::TTrackerConstituent::Quality, ND::TTrackerReconModule::TTrackerResult::Quality, ND::TTrackerReconModule::TTrackerConstituent::Status, ND::TTrackerReconModule::TTrackerResult::TPC, and ND::TTrackerReconModule::TTrackerConstituent::Variance.

Referenced by FillConstituentPid(), FillFinalPid(), and FillFinalTrack().

void ND::TTrackerReconModule::FillFGD ( ND::THandle< ND::TReconTrack >  in,
TClonesArray *  out,
int  idx 
)
protected

Method to fill trackerRecon tree with FGD information Input is a TReconPID of FGD fit information.

The method makes a new TFGDTrack tree entry and fills its values. The method is passed a pointer to the TClonesArray of TFGDTrack to add values to at index idx. It is done this way so the same method can be called, but passing different pointer to TClonesArray of TFGDTrack for both the TTrackerResult::FGD and the fFGDIso isolated fgd tracks.

Definition at line 232 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TFGDTrack::Chi2, ND::TTrackerReconModule::TFGDTrack::Detector, ND::TTrackerReconModule::TFGDTrack::Direction, ND::TTrackerReconModule::TFGDTrack::EDeposit, eventAnalysisEnums::kFGD1, eventAnalysisEnums::kFGD2, ND::TTrackerReconModule::TFGDTrack::Ndof, ND::TTrackerReconModule::TFGDTrack::Position, and ND::TTrackerReconModule::TFGDTrack::UniqueID.

Referenced by FillConstituentTrack(), and FillFinalTrack().

void ND::TTrackerReconModule::FillFinalPid ( TTrackerResult result,
ND::THandle< ND::TReconPID >  reco 
)
protected

Method to fill a trackerRecon result entry.

Definition at line 1070 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTrackerNode::Charge, ND::TTrackerReconModule::TTrackerResult::Charge, ND::TTrackerReconModule::TTrackerResult::ConstitIdx, ND::TTrackerReconModule::TTrackerNode::Direction, ND::TTrackerReconModule::TTrackerResult::Direction, ND::TTrackerReconModule::TTrackerNode::DirectionVariance, ND::TTrackerReconModule::TTrackerResult::DirectionVariance, ND::TTrackerReconModule::TTrackerNode::EDeposit, ND::TTrackerReconModule::TTrackerResult::EDeposit, FillConstituentPid(), FillConstituentTrack(), FillTPC(), GetNumberOfHits(), ND::TTrackerReconModule::TTrackerResult::isForward, ND::TTrackerReconModule::TTrackerResult::Length, ND::TTrackerReconModule::TTrackerResult::Likelihoods, ND::TTrackerReconModule::TTrackerNode::Momentum, ND::TTrackerReconModule::TTrackerResult::Momentum, ND::TTrackerReconModule::TTrackerNode::MomentumError, ND::TTrackerReconModule::TTrackerResult::MomentumError, ND::TTrackerReconModule::TTrackerResult::NConstituents, ND::TTrackerReconModule::TTrackerResult::NHits, ND::TTrackerReconModule::TTrackerResult::NNodes, ND::TTrackerReconModule::TTrackerResult::Nodes, ND::TTrackerReconModule::TTrackerResult::NTPCs, ND::TTrackerReconModule::TTrackerResult::Pids, ND::TTrackerReconModule::TTrackerNode::Position, ND::TTrackerReconModule::TTrackerResult::Position, ND::TTrackerReconModule::TTrackerResult::TPC, ND::TTrackerReconModule::TTrackerNode::Variance, and ND::TTrackerReconModule::TTrackerResult::Variance.

Referenced by FillTree().

void ND::TTrackerReconModule::FillFinalTrack ( TTrackerResult result,
ND::THandle< ND::TReconTrack >  reco 
)
protected

Method to fill a trackerRecon result entry.

Definition at line 1250 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTrackerNode::Charge, ND::TTrackerReconModule::TTrackerResult::Charge, ND::TTrackerReconModule::TTrackerResult::ConstitIdx, ND::TTrackerReconModule::TTrackerNode::Direction, ND::TTrackerReconModule::TTrackerResult::Direction, ND::TTrackerReconModule::TTrackerNode::DirectionVariance, ND::TTrackerReconModule::TTrackerResult::DirectionVariance, ND::TTrackerReconModule::TTrackerNode::EDeposit, ND::TTrackerReconModule::TTrackerResult::EDeposit, ND::TTrackerReconModule::TTrackerResult::FGD, FillConstituentPid(), FillConstituentTrack(), FillFGD(), FillTPC(), GetCharge(), GetMomentum(), GetNumberOfHits(), ND::TTrackerReconModule::TTrackerResult::isForward, ND::TTrackerReconModule::TTrackerResult::Length, ND::TTrackerReconModule::TTrackerNode::Momentum, ND::TTrackerReconModule::TTrackerResult::Momentum, ND::TTrackerReconModule::TTrackerNode::MomentumError, ND::TTrackerReconModule::TTrackerResult::MomentumError, ND::TTrackerReconModule::TTrackerResult::NConstituents, ND::TTrackerReconModule::TTrackerResult::NFGDs, ND::TTrackerReconModule::TTrackerResult::NHits, ND::TTrackerReconModule::TTrackerResult::NNodes, ND::TTrackerReconModule::TTrackerResult::Nodes, ND::TTrackerReconModule::TTrackerResult::NTPCs, ND::TTrackerReconModule::TTrackerNode::Position, ND::TTrackerReconModule::TTrackerResult::Position, ND::TTrackerReconModule::TTrackerResult::TPC, ND::TTrackerReconModule::TTrackerNode::Variance, and ND::TTrackerReconModule::TTrackerResult::Variance.

Referenced by FillTree().

void ND::TTrackerReconModule::FillOther ( ND::THandle< ND::TReconTrack >  in,
TClonesArray *  out,
int  idx 
)
protected
void ND::TTrackerReconModule::FillTPC ( ND::THandle< ND::TReconPID >  in,
TClonesArray *  out,
int  idx 
)
protected

Method to fill trackerRecon tree with TPC information Input is a TReconPID of TPC fit information.

The method makes a new TTPCTrack tree entry and fills its values. The method is passed a pointer to the TClonesArray of TTPCTrack to add values to at index idx. It is done this way so the same method can be called, but passing different pointer to TClonesArray of TTPCTrack for both the TTrackerResult::TPC and the fTPCIso isolated tpc tracks.

Definition at line 263 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTPCTrack::Ccorr, ND::TTrackerReconModule::TTPCTrack::Charge, ND::TTrackerReconModule::TTPCTrack::Chi2, ND::TTrackerReconModule::TTPCTrack::dEdxexpEle, ND::TTrackerReconModule::TTPCTrack::dEdxexpKaon, ND::TTrackerReconModule::TTPCTrack::dEdxexpMuon, ND::TTrackerReconModule::TTPCTrack::dEdxexpPion, ND::TTrackerReconModule::TTPCTrack::dEdxexpProton, ND::TTrackerReconModule::TTPCTrack::Detector, ND::TTrackerReconModule::TTPCTrack::Direction, ND::TTrackerReconModule::TTPCTrack::DirectionVariance, GetConstituentTrack(), GetNumberOfHits(), ND::TTrackerReconModule::TTPCTrack::HasExtrapolation, eventAnalysisEnums::kTPC1, eventAnalysisEnums::kTPC2, eventAnalysisEnums::kTPC3, ND::TTrackerReconModule::TTPCTrack::MeanDrift, ND::TTrackerReconModule::TTPCTrack::Momentum, ND::TTrackerReconModule::TTPCTrack::MomentumError, ND::TTrackerReconModule::TTPCTrack::NConstituents, ND::TTrackerReconModule::TTPCTrack::Ndof, ND::TTrackerReconModule::TTPCTrack::NHits, ND::TTrackerReconModule::TTPCTrack::NTrun, ND::TTrackerReconModule::TTPCTrack::Position, ND::TTrackerReconModule::TTPCTrack::PositionVariance, ND::TTrackerReconModule::TTPCTrack::PullEle, ND::TTrackerReconModule::TTPCTrack::PullKaon, ND::TTrackerReconModule::TTPCTrack::PullMuon, ND::TTrackerReconModule::TTPCTrack::PullPion, ND::TTrackerReconModule::TTPCTrack::PullProton, ND::TTrackerReconModule::TTPCTrack::Sigma0, ND::TTrackerReconModule::TTPCTrack::Sigma1, ND::TTrackerReconModule::TTPCTrack::Sigma2, ND::TTrackerReconModule::TTPCTrack::SigmaEle, ND::TTrackerReconModule::TTPCTrack::SigmaKaon, ND::TTrackerReconModule::TTPCTrack::SigmaMuon, ND::TTrackerReconModule::TTPCTrack::SigmaPion, ND::TTrackerReconModule::TTPCTrack::SigmaProton, ND::TTrackerReconModule::TTPCTrack::TrCurvature, ND::TTrackerReconModule::TTPCTrack::TrCurvatureVar, ND::TTrackerReconModule::TTPCTrack::TrDirection, ND::TTrackerReconModule::TTPCTrack::TrDirectionVar, and ND::TTrackerReconModule::TTPCTrack::UniqueID.

Referenced by ExtrapolateTPC(), FillConstituentPid(), FillConstituentTrack(), FillFinalPid(), FillFinalTrack(), and FillTree().

void ND::TTrackerReconModule::FillTrueParticle ( ND::TG4Trajectory *  G4track,
double  pur,
double  eff,
ND::TTrackerReconModule::TTrueParticle trueParticle 
)
protected
void ND::TTrackerReconModule::FillTrueVertex ( bool  found,
const ND::TG4PrimaryVertex &  G4vertex,
double  pur,
double  eff,
ND::TTrueVertex vertex 
)
protected

Method to fill the true vertex information from a given G4 vertex.

Definition at line 1770 of file TTrackerReconModule.cxx.

References ND::TTrueVertex::ID, and ND::TTrueVertex::Position.

Referenced by FillTrueParticle().

void ND::TTrackerReconModule::FillVertex ( ND::THandle< ND::TReconVertex >  in,
TClonesArray *  out,
int  idx 
)
protected

Method to fill trackerRecon tree with vertex information Input is a TReconVertex.

The method makes a new TTrackerVertex tree entry and fills its values. The method is passed a pointer to the TClonesArray of TReconVertex to add values to at index idx.

Definition at line 209 of file TTrackerReconModule.cxx.

References ND::TTrackerReconModule::TTrackerVertex::AlgorithmName, ND::TTrackerReconModule::TTrackerVertex::NDOF, ND::TTrackerReconModule::TTrackerVertex::Position, ND::TTrackerReconModule::TTrackerVertex::Quality, ND::TTrackerReconModule::TTrackerVertex::Status, and ND::TTrackerReconModule::TTrackerVertex::Variance.

Referenced by FillTree().

Int_t ND::TAnalysisModuleBase::GetBufferSize ( )
inherited

ROOT output parameters, usually no need to touch.

Definition at line 123 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fBufferSize.

double ND::TTrackerReconModule::GetCharge ( ND::THandle< ND::TTrackState >  state)
protected

Helper method to convert TTrackState curvature information into track charge.

Definition at line 1242 of file TTrackerReconModule.cxx.

Referenced by FillConstituentTrack(), and FillFinalTrack().

ND::THandle< ND::TReconTrack > ND::TTrackerReconModule::GetConstituentTrack ( ND::THandle< ND::TReconPID >  in,
int &  nconstit 
)
protected

called recursively to look for bottom level track that built a PID.

In case the PID is made of several PIDs, the one with the track with smallest relative curvature error is returned.

Definition at line 644 of file TTrackerReconModule.cxx.

References GetMomentum().

Referenced by FillTPC().

std::string const ND::TAnalysisModuleBase::GetCVSID ( ) const
inherited

Definition at line 136 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fCVSID.

std::string const ND::TAnalysisModuleBase::GetCVSTagName ( ) const
inherited

Definition at line 135 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fCVSTagName.

std::string const ND::TAnalysisModuleBase::GetDescription ( ) const
inherited

Definition at line 134 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fDescription.

int ND::TTrackerReconModule::GetDetectorNumber ( ND::THandle< ND::TReconBase >  object)
protected

Method to build an integer key that describes the detectors used to build the TRecon object.

Each base 10 digit of the integer represents one detector that was used. the numbering of the detectors is: 1=TPC1, 2=TPC2, 3=TPC3, 4=FGD1, 5=FGD2, 6=DSECAL, 7=BarrelECAL, 8=P0D, 9=SMRD

Definition at line 1370 of file TTrackerReconModule.cxx.

References eventAnalysisEnums::kFGD1, eventAnalysisEnums::kFGD2, eventAnalysisEnums::kP0D, eventAnalysisEnums::kSMRD, eventAnalysisEnums::kTPC1, eventAnalysisEnums::kTPC2, and eventAnalysisEnums::kTPC3.

Referenced by FillConstituentPid(), FillConstituentTrack(), and FillTree().

std::string const ND::TAnalysisModuleBase::GetDirectoryName ( ) const
inherited

Returns the name of the directory which the output of a particular module will be saved in.

Definition at line 22 of file TAnalysisModuleBase.cxx.

Referenced by ND::TAnalysisLoop::Initialize().

bool ND::TTrackerReconModule::GetG4Vertex ( ND::TG4Trajectory *  G4track,
ND::TG4PrimaryVertex &  G4vertex 
)
protected

Method to find the best matching G4 vertex for a given G4 track.

Definition at line 1785 of file TTrackerReconModule.cxx.

Referenced by FillTrueParticle().

ND::THandle< ND::THitSelection > ND::TTrackerReconModule::GetHitsFromComboHits ( ND::THandle< ND::THitSelection >  tpc)
protected

Method to get the tpc combo hits from the tpc hit selection (used for tpc other)

Definition at line 710 of file TTrackerReconModule.cxx.

Referenced by FillOther(), and FillTree().

bool ND::TTrackerReconModule::GetIncomingParticle ( const ND::TG4PrimaryVertex &  G4vertex,
ND::TG4PrimaryParticle &  incoming 
)
protected

Method to find the incident particle (neutrino) that gave rise to a given G4 track.

Definition at line 1813 of file TTrackerReconModule.cxx.

void ND::TTrackerReconModule::GetMomentum ( ND::THandle< ND::TTrackState >  state,
double &  p,
double &  ep 
)
protected

Helper method to convert TTrackState curvature information into momentum and momentum uncertainty.

Definition at line 1197 of file TTrackerReconModule.cxx.

Referenced by FillConstituentTrack(), FillFinalTrack(), and GetConstituentTrack().

int ND::TTrackerReconModule::GetNumberOfHits ( ND::THandle< ND::TReconBase >  object)
protected

Method to find the total number of hits used to build the reconstructed track/pid/etc.

Definition at line 1840 of file TTrackerReconModule.cxx.

Referenced by FillConstituentPid(), FillConstituentTrack(), FillFinalPid(), FillFinalTrack(), and FillTPC().

TTree const* ND::TAnalysisModuleBase::GetOutputTree ( ) const
inherited

The output tree.

Definition at line 139 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fOutputTree.

ND::THandle< ND::TG4Trajectory > ND::TTrackerReconModule::GetParent ( ND::TG4Trajectory *  G4track)
protected

Method to get the parent G4 track for a given G4 track.

Definition at line 1736 of file TTrackerReconModule.cxx.

ND::THandle<ND::TG4Trajectory> ND::TTrackerReconModule::GetParent ( ND::THandle< ND::TG4Trajectory >  G4track)
protected
Int_t ND::TAnalysisModuleBase::GetSplitLevel ( )
inherited

ROOT output parameters, usually no need to touch.

Definition at line 129 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fSplitLevel.

char const * ND::TAnalysisModuleBase::GetTitle ( )
inherited

Definition at line 118 of file TAnalysisModuleBase.cxx.

Referenced by ND::TAnalysisLoop::Initialize().

ND::TG4Trajectory ND::TTrackerReconModule::GetTrajectory ( ND::TND280Event &  event,
ND::THandle< ND::TReconBase >  reco 
)
protected

Method to get the G4 trajectory that best matches the TRecon object.

Definition at line 1625 of file TTrackerReconModule.cxx.

virtual EType ND::TAnalysisReconModuleBase::GetTreeType ( ) const
virtualinherited

Returns the type of tree, header, truth, or recon.

This is overridden in the derived base classes such as TAnalysisReconModuleBase, so users do not need to override it explicitly

Implements ND::TAnalysisModuleBase.

Reimplemented in ND::TP0DReconModule, and ND::TSFGReconModule.

Definition at line 17 of file TAnalysisReconModuleBase.hxx.

References ND::TAnalysisModuleBase::kRecon.

void ND::TAnalysisModuleBase::Initialize ( TTree *  tree)
inherited

Definition at line 37 of file TAnalysisModuleBase.cxx.

Referenced by ND::TAnalysisLoop::Initialize().

void ND::TTrackerReconModule::InitializeModule ( )
protectedvirtual

Method to initialize this module.

Reimplemented from ND::TAnalysisModuleBase.

Definition at line 143 of file TTrackerReconModule.cxx.

References fDriftVelocity.

virtual Bool_t ND::TAnalysisModuleBase::IsEnabled ( ) const
virtualinherited

Whether the module is enable or not.

Definition at line 84 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fIsEnabled.

Referenced by ND::TAnalysisLoop::Initialize(), and ND::TAnalysisLoop::operator()().

virtual Bool_t ND::TAnalysisModuleBase::IsEnabledByDefault ( ) const
virtualinherited
bool ND::TAnalysisModuleBase::IsFullEventWorthSaving ( ND::TND280Event &  event)
virtualinherited

Whether the module thinks it is worth saving the entire oaEvent event tree entry for this event.

eventAnalysis can be used for event pre-selection in this way. Activated with the –oaEvent-preselection=<moduleclass>> command- line argument

Reimplemented in ND::TTrackerECALReconModule::OutputManager, ND::TReconPerformanceEvalModule, and ND::TTRExReconModule.

Definition at line 90 of file TAnalysisModuleBase.cxx.

virtual Bool_t ND::TAnalysisModuleBase::IsUsedForPreselection ( ) const
virtualinherited

Whether the module should call IsFullEventWorthSaving() function for each event, to decide if the full oaEvent info for that event should be saved in the output.

Definition at line 93 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fIsUsedForPreselection.

Referenced by ND::TAnalysisLoop::Initialize(), and ND::TAnalysisLoop::operator()().

void ND::TAnalysisModuleBase::KillOutputTree ( )
inherited

Definition at line 140 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fOutputTree.

void ND::TAnalysisModuleBase::Print ( )
virtualinherited

Prints a simple message describing the module.

Should be overridden for more detail

Definition at line 99 of file TAnalysisModuleBase.cxx.

Referenced by ND::TAnalysisLoop::Initialize().

bool ND::TAnalysisModuleBase::Process ( ND::TND280Event &  event)
virtualinherited

Gets the run and event IDs and calls FillTree with the event, and then actually calls fOutputTree->Fill.

Definition at line 77 of file TAnalysisModuleBase.cxx.

Referenced by ND::TAnalysisLoop::operator()().

Bool_t ND::TTrackerReconModule::ProcessFirstEvent ( ND::TND280Event &  event)
virtual

Method for special handling of first event.

Implements ND::TAnalysisModuleBase.

Definition at line 129 of file TTrackerReconModule.cxx.

References fCathodeOffset, and fMaxDrift.

virtual void ND::TAnalysisModuleBase::SayAvailableOpts ( std::string  indent = "")
virtualinherited

Subclasses should override this to let a user know what options are available.

Reimplemented in ND::TTrackerECALReconModule::OutputManager, ND::TGlobalReconModule, ND::TTagsModule, and ND::TBasicHeaderModule.

Definition at line 156 of file TAnalysisModuleBase.hxx.

void ND::TAnalysisModuleBase::SetBufferSize ( Int_t  buffersize)
inherited

ROOT output parameters, usually no need to touch.

Definition at line 126 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fBufferSize.

virtual void ND::TAnalysisModuleBase::SetDisabled ( )
virtualinherited

Disables the module.

Is called when an exception is thrown inside the module.

Definition at line 74 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::SetEnabled().

Referenced by ND::TAnalysisLoop::Initialize(), and ND::TAnalysisLoop::operator()().

virtual void ND::TAnalysisModuleBase::SetEnabled ( Bool_t  isenabled = true)
virtualinherited

Sets whether the module is enabled.

This only refer to modules which have been included for consideration by being instantiated in TAnalysisLoop.cxx or similar.

Definition at line 70 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fIsEnabled.

Referenced by ND::TAnalysisLoop::Initialize(), ND::TAnalysisModuleBase::SetDisabled(), and ND::TAnalysisLoop::SetOption().

void ND::TAnalysisModuleBase::SetInputDirectory ( std::string  dir)
inherited

Definition at line 158 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fInputDirectory.

void ND::TAnalysisModuleBase::SetSplitLevel ( Int_t  splitlevel)
inherited

ROOT output parameters, usually no need to touch.

Definition at line 132 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fSplitLevel.

Referenced by InitializeBranches(), ND::TGlobalReconModule::InitializeBranches(), and ND::TP0DECALReconModule::TP0DECALReconModule().

virtual void ND::TAnalysisModuleBase::SetUsedForPreselection ( Bool_t  isused = true)
virtualinherited

Sets whether the module should call IsFullEventWorthSaving() function for each event, to decide if the full oaEvent info for that event should be saved in the output.

Definition at line 79 of file TAnalysisModuleBase.hxx.

References ND::TAnalysisModuleBase::fIsUsedForPreselection.

Referenced by ND::TAnalysisLoop::SetOption().

std::map<int, double> ND::TTrackerReconModule::TrkRecModGetG4TrajectoryFractions ( const ND::THandle< ND::TReconBase >  track)
protected

Method to measure the purity of a reconstructed track against the truth.

Member Data Documentation

double ND::TTrackerReconModule::fCathodeOffset
private

TPC cathode offset used for tpc other hits.

Definition at line 534 of file TTrackerReconModule.hxx.

Referenced by FillConfigTree(), FillOther(), FillTree(), and ProcessFirstEvent().

double ND::TTrackerReconModule::fDriftVelocity
private

TPC drift velocity used for tpc other hits.

Definition at line 535 of file TTrackerReconModule.hxx.

Referenced by FillConfigTree(), FillOther(), FillTree(), and InitializeModule().

Int_t ND::TAnalysisModuleBase::fEventID
protectedinherited

Definition at line 198 of file TAnalysisModuleBase.hxx.

TClonesArray* ND::TTrackerReconModule::fFGDOther

The vector of FGD tracks with no fit.

Definition at line 513 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fFGDUnused

The vector of unused TPC hits.

Definition at line 527 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Bool_t ND::TAnalysisModuleBase::fFilledConfigTree
protectedinherited
std::string ND::TAnalysisModuleBase::fInputDirectory
protectedinherited

An input directory where analysis modules can search for extra files.

Definition at line 201 of file TAnalysisModuleBase.hxx.

Referenced by ND::TAnalysisModuleBase::SetInputDirectory().

Bool_t ND::TAnalysisModuleBase::fIsUsedForPreselection
protectedinherited
double ND::TTrackerReconModule::fMaxDrift
private

TPC maximum drift used for tpc other hits.

Definition at line 533 of file TTrackerReconModule.hxx.

Referenced by FillConfigTree(), FillOther(), FillTree(), and ProcessFirstEvent().

std::string ND::TAnalysisModuleBase::fName
protectedinherited

Definition at line 203 of file TAnalysisModuleBase.hxx.

Int_t ND::TTrackerReconModule::fNFGDOther

The number of FGD tracks with no fit (none ever?).

Definition at line 512 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNFGDUnused

The number of unused FGD hits.

Definition at line 526 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNTPCExtrapolation

The number of TPC tracks extrapolated into theFGD following Claudio's (2010a) method.

Definition at line 529 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNTPCIso

The number of isolated TPC tracks with fits (none ever?)

Definition at line 520 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNTPCOther

The number of TPC tracks with no fit.

Definition at line 515 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNTPCUnused

The number of unused TPC hits.

Definition at line 523 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNTracks

The number of trackerRecon results.

Definition at line 509 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TTrackerReconModule::fNVertices

Tree Entries.

The number of added vertices

Definition at line 505 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

Int_t ND::TAnalysisModuleBase::fPreselected
protectedinherited

Definition at line 199 of file TAnalysisModuleBase.hxx.

Int_t ND::TAnalysisModuleBase::fRunID
protectedinherited

Definition at line 196 of file TAnalysisModuleBase.hxx.

Int_t ND::TAnalysisModuleBase::fSubrunID
protectedinherited

Definition at line 197 of file TAnalysisModuleBase.hxx.

std::string ND::TAnalysisModuleBase::fTitle
protectedinherited

Definition at line 204 of file TAnalysisModuleBase.hxx.

TClonesArray* ND::TTrackerReconModule::fTPCExtrapolation

The vector of TPC tracks extrapolatedinto the FGD following Claudio's (2010a)method.

Definition at line 530 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fTPCIso

The vector of isolated TPC tracks with fits.

Definition at line 521 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fTPCOther

The vector of TPC tracks with no fit.

Definition at line 516 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fTPCUnused

The vector of unused TPC hits.

Definition at line 524 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fTracks

The vector of overall trackerRecon results.

Definition at line 510 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().

TClonesArray* ND::TTrackerReconModule::fVertices

The vector of trackerRecon vertices (none ever?).

Definition at line 507 of file TTrackerReconModule.hxx.

Referenced by FillTree(), InitializeBranches(), and TTrackerReconModule().


The documentation for this class was generated from the following files:

Package Summary
Package Name: eventAnalysis
Package Version: 7.0-49-g0ac7482
Package Manager:

Generated on Mon Mar 25 2024 14:44:03 for eventAnalysis by doxygen 1.8.5