#include <PFRootEventManagerColin.h>
Public Types | |
enum | Mode { Neutral =0, HIGH_E_TAUS =1 } |
Public Types inherited from PFRootEventManager | |
typedef std::map< int, int > | EventToEntry |
typedef std::map< int, EventToEntry > | LumisMap |
typedef std::map< int, LumisMap > | RunsMap |
enum | Verbosity { SHUTUP = 0, VERBOSE } |
enum | View_t { XY = 0, RZ = 1, EPE = 2, EPH = 3, NViews = 4 } |
viewport definition More... | |
Public Member Functions | |
PFRootEventManagerColin (const char *file) | |
bool | processEntry (int entry) |
process one entry (pass the TTree entry) More... | |
bool | processHIGH_E_TAUS () |
bool | processNeutral () |
void | readSpecificOptions (const char *file) |
void | write () |
~PFRootEventManagerColin () | |
Public Member Functions inherited from PFRootEventManager | |
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 | 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) |
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 63 of file PFRootEventManagerColin.h.
PFRootEventManagerColin::PFRootEventManagerColin | ( | const char * | file | ) |
Definition at line 11 of file PFRootEventManagerColin.cc.
References neutralEvent_, outTreeMy_, readSpecificOptions(), and tauEvent_.
PFRootEventManagerColin::~PFRootEventManagerColin | ( | ) |
Definition at line 32 of file PFRootEventManagerColin.cc.
|
virtual |
process one entry (pass the TTree entry)
Reimplemented from PFRootEventManager.
Definition at line 77 of file PFRootEventManagerColin.cc.
References ExpressReco_HICollisions_FallBack::cerr, HIGH_E_TAUS, mode_, Neutral, outTreeMy_, PFRootEventManager::processEntry(), processHIGH_E_TAUS(), processNeutral(), NeutralEvent::rCode, TauEvent::reset(), and tauEvent_.
bool PFRootEventManagerColin::processHIGH_E_TAUS | ( | ) |
Definition at line 192 of file PFRootEventManagerColin.cc.
References abs, reco::PFBlock::associatedElements(), Association::block, DeDxDiscriminatorTools::charge(), reco::PFTrack::charge(), ExpressReco_HICollisions_FallBack::chi2, TauEvent::chi2ECAL, reco::PFTrajectoryPoint::ClosestApproach, PFRootEventManager::clustersECAL_, PFRootEventManager::clustersHCAL_, reco::PFSimParticle::daughterIds(), reco::PFBlockElement::ECAL, NeutralEvent::eECAL, NeutralEvent::eHCAL, reco::PFBlock::elements(), asciidump::elements, NeutralEvent::eNeutral, NeutralEvent::etaECAL, NeutralEvent::etaHCAL, NeutralEvent::etaNeutral, TauEvent::etaTrack, reco::PFBlockElement::HCAL, i, getHLTprescales::index, edm::Ref< C, T, F >::isNull(), reco::PFBlock::linkData(), NeutralEvent::nECAL, NeutralEvent::nHCAL, reco::PFSimParticle::pdgCode(), PFRootEventManager::pfBlocks_, TauEvent::pHadron, TauEvent::pTrack, TauEvent::ptTrack, NeutralEvent::rCode, PFRootEventManager::recTracks_, edm::OwnVector< T, P >::size(), tauEvent_, reco::PFBlockElement::TRACK, and PFRootEventManager::trueParticles_.
Referenced by processEntry().
bool PFRootEventManagerColin::processNeutral | ( | ) |
Definition at line 117 of file PFRootEventManagerColin.cc.
References ExpressReco_HICollisions_FallBack::cerr, NeutralEvent::eECAL, NeutralEvent::eHCAL, NeutralEvent::eNeutral, eta(), NeutralEvent::etaNeutral, configurableAnalysis::GenParticle, edm::HepMCProduct::GetEvent(), i, PFRootEventManager::MCTruth_, NeutralEvent::nECAL, neutralEvent_, NeutralEvent::nHCAL, outTreeMy_, phi, and NeutralEvent::reset().
Referenced by processEntry().
|
virtual |
Reimplemented from PFRootEventManager.
Definition at line 39 of file PFRootEventManagerColin.cc.
References ExpressReco_HICollisions_FallBack::cerr, gather_cfg::cout, cmsRelvalreport::exit, IO::GetOpt(), HIGH_E_TAUS, mode_, Neutral, neutralEvent_, PFRootEventManager::options_, PFRootEventManager::outFile_, outTreeMy_, and tauEvent_.
Referenced by PFRootEventManagerColin().
|
virtual |
Reimplemented from PFRootEventManager.
Definition at line 366 of file PFRootEventManagerColin.cc.
References PFRootEventManager::outFile_, outTreeMy_, and PFRootEventManager::write().
int PFRootEventManagerColin::mode_ |
Definition at line 88 of file PFRootEventManagerColin.h.
Referenced by processEntry(), and readSpecificOptions().
NeutralEvent* PFRootEventManagerColin::neutralEvent_ |
Definition at line 86 of file PFRootEventManagerColin.h.
Referenced by PFRootEventManagerColin(), processNeutral(), and readSpecificOptions().
TTree* PFRootEventManagerColin::outTreeMy_ |
Definition at line 85 of file PFRootEventManagerColin.h.
Referenced by PFRootEventManagerColin(), processEntry(), processNeutral(), readSpecificOptions(), and write().
TauEvent* PFRootEventManagerColin::tauEvent_ |
Definition at line 87 of file PFRootEventManagerColin.h.
Referenced by PFRootEventManagerColin(), processEntry(), processHIGH_E_TAUS(), and readSpecificOptions().