CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pftools::TreeUtility Class Reference

Utility class to create particles and detector elements from a Root file. More...

#include <TreeUtility.h>

Public Member Functions

unsigned convertCalibratablesToParticleDeposits (const std::vector< Calibratable > &input, std::vector< ParticleDepositPtr > &toBeFilled, CalibrationTarget target, DetectorElementPtr offset, DetectorElementPtr ecal, DetectorElementPtr hcal, bool includeOffset=false)
 
void dumpCaloDataToCSV (TChain &chain, std::string csvFilename, double range, bool gaus=false)
 
unsigned getCalibratablesFromRootFile (TChain &tree, std::vector< Calibratable > &toBeFilled)
 
unsigned getParticleDepositsDirectly (TChain &sourceChain, std::vector< ParticleDepositPtr > &toBeFilled, CalibrationTarget target, DetectorElementPtr offset, DetectorElementPtr ecal, DetectorElementPtr hcal, bool includeOffset=false)
 
 TreeUtility ()
 
virtual ~TreeUtility ()
 

Private Attributes

std::map< std::string, unsigned > vetos_
 

Detailed Description

Utility class to create particles and detector elements from a Root file.

Author
Jamie Ballin
Date
April 2008

Definition at line 27 of file TreeUtility.h.

Constructor & Destructor Documentation

TreeUtility::TreeUtility ( )

Definition at line 11 of file TreeUtility.cc.

TreeUtility::~TreeUtility ( )
virtual

Definition at line 14 of file TreeUtility.cc.

Member Function Documentation

unsigned TreeUtility::convertCalibratablesToParticleDeposits ( const std::vector< Calibratable > &  input,
std::vector< ParticleDepositPtr > &  toBeFilled,
CalibrationTarget  target,
DetectorElementPtr  offset,
DetectorElementPtr  ecal,
DetectorElementPtr  hcal,
bool  includeOffset = false 
)

Definition at line 238 of file TreeUtility.cc.

void TreeUtility::dumpCaloDataToCSV ( TChain &  chain,
std::string  csvFilename,
double  range,
bool  gaus = false 
)

Definition at line 48 of file TreeUtility.cc.

unsigned TreeUtility::getCalibratablesFromRootFile ( TChain &  tree,
std::vector< Calibratable > &  toBeFilled 
)

Definition at line 21 of file TreeUtility.cc.

unsigned TreeUtility::getParticleDepositsDirectly ( TChain &  sourceChain,
std::vector< ParticleDepositPtr > &  toBeFilled,
CalibrationTarget  target,
DetectorElementPtr  offset,
DetectorElementPtr  ecal,
DetectorElementPtr  hcal,
bool  includeOffset = false 
)

Definition at line 116 of file TreeUtility.cc.

Member Data Documentation

std::map<std::string, unsigned> pftools::TreeUtility::vetos_
private

Definition at line 51 of file TreeUtility.h.