![]() |
![]() |
#include <MyPFRootEventManager.h>
Public Member Functions | |
MyPFRootEventManager (const char *file) | |
bool | processEntry (int entry) |
process one entry (pass the TTree entry) More... | |
void | write () |
~MyPFRootEventManager () | |
![]() | |
const reco::PFBlockCollection & | blocks () const |
int | chargeValue (const int &pdgId) const |
const reco::PFSimParticle & | closestParticle (reco::PFTrajectoryPoint::LayerType layer, double eta, double phi, double &peta, double &pphi, double &pe) const |
find the closest PFSimParticle to a point (eta,phi) in a given detector More... | |
void | clustering () |
read data from testbeam tree More... | |
void | connect (const char *infilename="") |
open the root file and connect to the tree More... | |
bool | countChargedAndPhotons () const |
bool | eventAccepted () const |
returns true if the event is accepted(have a look at the function implementation) More... | |
int | eventNumber () |
int | eventToEntry (int run, int lumi, int event) const |
std::string | expand (const std::string &oldString) const |
void | fillClusterMask (std::vector< bool > &mask, const reco::PFClusterCollection &clusters) const |
cluster mask set to true for rechits inside TCutG More... | |
void | fillOutEventWithBlocks (const reco::PFBlockCollection &blocks) |
fills outEvent with blocks More... | |
void | fillOutEventWithCaloTowers (const CaloTowerCollection &cts) |
fills outEvent with calo towers More... | |
void | fillOutEventWithClusters (const reco::PFClusterCollection &clusters) |
fills OutEvent with clusters More... | |
void | fillOutEventWithPFCandidates (const reco::PFCandidateCollection &pfCandidates) |
fills OutEvent with candidates More... | |
void | fillOutEventWithSimParticles (const reco::PFSimParticleCollection &ptcs) |
fills OutEvent with sim particles More... | |
void | fillPhotonMask (std::vector< bool > &mask, const reco::PhotonCollection &photons) const |
photon mask set to true for photons inside TCutG More... | |
void | fillRecHitMask (std::vector< bool > &mask, const reco::PFRecHitCollection &rechits) const |
rechit mask set to true for rechits inside TCutG More... | |
void | fillTrackMask (std::vector< bool > &mask, const reco::PFRecTrackCollection &tracks) const |
track mask set to true for rechits inside TCutG More... | |
void | fillTrackMask (std::vector< bool > &mask, const reco::GsfPFRecTrackCollection &tracks) const |
std::string | getGenParticleName (int partId, std::string &latexStringName) const |
get name of genParticle More... | |
bool | highPtJet (double ptMin) const |
returns true if there is at least one jet with pT>pTmin More... | |
bool | highPtPFCandidate (double ptMin, reco::PFCandidate::ParticleType type=reco::PFCandidate::X) const |
returns true if there is a PFCandidate of a given type over a given pT More... | |
void | initializeEventInformation () |
bool | isHadronicTau () const |
study the sim event to check if the tau decay is hadronic More... | |
void | mcTruthMatching (std::ostream &out, const reco::PFCandidateCollection &candidates, std::vector< std::list< simMatch > > &candSimMatchTrack, std::vector< std::list< simMatch > > &candSimMatchEcal) const |
void | particleFlow () |
performs particle flow More... | |
void | pfCandCompare (int) |
compare particle flow More... | |
PFRootEventManager () | |
default constructor More... | |
PFRootEventManager (const char *file) | |
void | PreprocessRecHits (reco::PFRecHitCollection &rechits, bool findNeighbours) |
preprocess a rechit vector from a given rechit branch More... | |
void | PreprocessRecTracks (reco::PFRecTrackCollection &rectracks) |
preprocess a rectrack vector from a given rectrack branch More... | |
void | PreprocessRecTracks (reco::GsfPFRecTrackCollection &rectracks) |
void | print (std::ostream &out=std::cout, int maxNLines=-1) const |
print information More... | |
void | printCluster (const reco::PFCluster &cluster, std::ostream &out=std::cout) const |
void | printClusters (const reco::PFClusterCollection &clusters, std::ostream &out=std::cout) const |
print clusters More... | |
void | printGenParticles (std::ostream &out=std::cout, int maxNLines=-1) const |
print the HepMC truth More... | |
void | printMCCalib (std::ofstream &out) const |
print calibration information More... | |
void | printRecHit (const reco::PFRecHit &rh, unsigned index, const char *seed=" ", std::ostream &out=std::cout) const |
void | printRecHits (const reco::PFRecHitCollection &rechits, const PFClusterAlgo &clusterAlgo, std::ostream &out=std::cout) const |
print rechits More... | |
virtual bool | processEvent (int run, int lumi, int event) |
process one event (pass the CMS event number) More... | |
void | readCMSSWJets () |
bool | readFromSimulation (int entry) |
read data from simulation tree More... | |
void | readOptions (const char *file, bool refresh=true, bool reconnect=false) |
virtual void | readSpecificOptions (const char *file) |
void | reconstructCaloJets () |
reconstruct calo jets More... | |
void | reconstructFWLiteJets (const reco::CandidatePtrVector &Candidates, std::vector< ProtoJet > &output) |
used by the reconstruct*Jets functions More... | |
void | reconstructGenJets () |
reconstruct gen jets More... | |
void | reconstructPFJets () |
reconstruct pf jets More... | |
void | reset () |
reset before next event More... | |
void | setRecHitNeigbours (reco::PFRecHit &rh, const std::map< unsigned, unsigned > &detId2index) |
edm::InputTag | stringToTag (const std::vector< std::string > &tagname) |
returns an InputTag from a vector of strings More... | |
double | tauBenchmark (const reco::PFCandidateCollection &candidates) |
COLIN need to get rid of this mess. More... | |
bool | trackInsideGCut (const reco::PFTrack &track) const |
is PFTrack inside cut G ? yes if at least one trajectory point is inside. More... | |
TTree * | tree () |
get tree More... | |
virtual | ~PFRootEventManager () |
destructor More... | |
Definition at line 17 of file MyPFRootEventManager.h.
MyPFRootEventManager::MyPFRootEventManager | ( | const char * | file | ) |
Definition at line 10 of file MyPFRootEventManager.cc.
MyPFRootEventManager::~MyPFRootEventManager | ( | ) |
Definition at line 20 of file MyPFRootEventManager.cc.
|
virtual |
process one entry (pass the TTree entry)
Reimplemented from PFRootEventManager.
Definition at line 25 of file MyPFRootEventManager.cc.
References PFRootEventManager::clustersECAL_, gather_cfg::cout, i, PFRootEventManager::processEntry(), and PFRootEventManager::trueParticles_.
|
virtual |
Reimplemented from PFRootEventManager.
Definition at line 61 of file MyPFRootEventManager.cc.
References PFRootEventManager::outFile_.