AnalysisBase.h
Go to the documentation of this file.
54 AnalysisBase(std::string inFile, std::string outFol, std::string outPre, double xs, double xserr, std::map<std::string, std::string> branches, std::map<std::string, std::vector<int> > flags);
137 std::vector<T*> filterPhaseSpace(std::vector<T*> unfiltered, double pTmin = 0., double etamin = -100, double etamax = 100, bool exclude_overlap = false) {
161 std::vector<X*> overlapRemoval(std::vector<X*> candidates, std::vector<Y*> neighbours, double dR) {
227 std::vector<Electron*> filterIsolation(std::vector<Electron*> unfiltered, std::vector<int> relative_flags = std::vector<int>()) {
228 // Translate the relative isolation number of the analysis in the absolute number within all analyses
258 std::vector<Muon*> filterIsolation(std::vector<Muon*> unfiltered, std::vector<int> relative_flags = std::vector<int>()) {
259 // Translate the relative isolation number of the analysis in the absolute number within all analyses
291 std::vector<Photon*> filterIsolation(std::vector<Photon*> unfiltered, std::vector<int> relative_flags = std::vector<int>()) {
292 // Translate the relative isolation number of the analysis in the absolute number within all analyses
376 double mT2(const TLorentzVector & vis1, const TLorentzVector & vis2, double m_inv, const TLorentzVector & invis = TLorentzVector(0., 0., 0., 0.));
390 double mCTcorr(const TLorentzVector & v1, const TLorentzVector & v2, const TLorentzVector & vds, const TLorentzVector & invis, const double ecm = 8000.0, const double mxlo = 0.0);
397 double mCTy(const TLorentzVector & v1, const TLorentzVector & v2, const TLorentzVector & vds, const TLorentzVector & invis);
405 double mT2_bl(const TLorentzVector & pl_in, const TLorentzVector & pb1_in, const TLorentzVector & pb2_in, const TLorentzVector & invis = TLorentzVector(0., 0., 0., 0.));
419 std::vector<double> razor(const std::vector<TLorentzVector> & obj, const TLorentzVector & invis = TLorentzVector(0., 0., 0., 0.));
549 };
618 // If these flags are set, the corresponding containers won't be set up (to save computing time)
634 std::vector<T*> filterFlags(std::vector<T*> unfiltered, std::string whichFlag, std::vector<int> flags) {
651 if(std::find(candidates_flags.begin(), candidates_flags.end(), flags[iso]) == candidates_flags.end()) {
std::vector< X * > overlapRemoval(std::vector< X * > candidates, std::vector< Y * > neighbours, double dR) Remove objects if they are to close. Definition: AnalysisBase.h:161 std::vector< std::ofstream * > fStreams Container of output file streams booked via bookFile() Definition: AnalysisBase.h:496 double mT2(const TLorentzVector &vis1, const TLorentzVector &vis2, double m_inv, const TLorentzVector &invis=TLorentzVector(0., 0., 0., 0.)) Evaluates . Definition: AnalysisBase.cc:333 void bookSignalRegions(std::string listOfRegions) Function to book signal regions. Definition: AnalysisBase.cc:56 std::vector< Photon * > filterIsolation(std::vector< Photon * > unfiltered, std::vector< int > relative_flags=std::vector< int >()) Remove photons that are not isolated. Definition: AnalysisBase.h:291 double alphaT(const std::vector< Jet * > &jets, const double thresh_ET=0.) Evaluates . Definition: AnalysisBase.cc:404 std::vector< Muon * > muonsCombined Container of 'muonsCombinedPlus' objects that pass 'CB' efficiency. Definition: AnalysisBase.h:107 std::vector< Photon * > photons Container of all truth photons after detector smearing and loose isolation condition. Definition: AnalysisBase.h:110 std::vector< X * > overlapRemoval(std::vector< X * > candidates, double dR) Remove objects if they are to close to any other object in the same list. Definition: AnalysisBase.h:191 double normalize(double x) Normalises number to luminosity and cross section. Definition: AnalysisBase.h:547 double mT(const TLorentzVector &vis, const TLorentzVector &invis) Evaluates the transverse mass . Definition: AnalysisBase.cc:328 std::vector< Electron * > electronsLoose Container of 'electrons' objects that pass loose isolation condition. Definition: AnalysisBase.h:102 std::vector< Electron * > filterIsolation(std::vector< Electron * > unfiltered, int relative_flag) Remove electrons that are not isolated (simplified function for exactly one condition given as one in... Definition: AnalysisBase.h:246 std::vector< Jet * > jets2 Container of all reconstructed 'second type' jets if defined in analysis settings. Definition: AnalysisBase.h:109 std::vector< Muon * > filterIsolation(std::vector< Muon * > unfiltered, int relative_flag) Remove muons that are not isolated (simplified function for exactly one condition given as one intege... Definition: AnalysisBase.h:277 ~AnalysisBase() Destructor function to free pointers and close opened file streams. Definition: AnalysisBase.cc:44 void countControlEvent(std::string region) Function to count a given event for a control region. Definition: AnalysisBase.h:469 double mCT(const TLorentzVector &v1, const TLorentzVector &v2) Evaluates normal . Definition: AnalysisBase.cc:353 void countCutflowEvent(std::string region) Function to count a given event for a cutflow region. Definition: AnalysisBase.h:474 void bookCutflowRegions(std::string listOfRegions) Function to book cutflow regions. Definition: AnalysisBase.cc:89 double mT2_bl(const TLorentzVector &pl_in, const TLorentzVector &pb1_in, const TLorentzVector &pb2_in, const TLorentzVector &invis=TLorentzVector(0., 0., 0., 0.)) Evaluates . Definition: AnalysisBase.cc:381 std::vector< Photon * > filterIsolation(std::vector< Photon * > unfiltered, int relative_flag) Remove photons that are not isolated (simplified function for exactly one condition given as one inte... Definition: AnalysisBase.h:310 std::vector< Electron * > filterIsolation(std::vector< Electron * > unfiltered, std::vector< int > relative_flags=std::vector< int >()) Remove electrons that are not isolated. Definition: AnalysisBase.h:227 std::vector< Electron * > electrons Container of all truth electrons after detector smearing in acceptance range. Definition: AnalysisBase.h:101 std::vector< Muon * > filterIsolation(std::vector< Muon * > unfiltered, std::vector< int > relative_flags=std::vector< int >()) Remove muons that are not isolated. Definition: AnalysisBase.h:258 std::vector< Electron * > electronsTight Container of 'electronsLoose' objects that pass 'medium' efficiency cut. Definition: AnalysisBase.h:104 virtual void analyze() Function containing the event wise analysis code. Definition: AnalysisBase.h:82 void countSignalEvent(std::string region) Function to count a given event for a signal region. Definition: AnalysisBase.h:464 void loopOverEvents() Internal function that starts the event loop in main(). Definition: AnalysisBase.cc:107 void setAnalysisName(std::string name) Sets the analysis name to denote the name of the output files. Definition: AnalysisBase.h:536 std::vector< Muon * > muons Container of all truth muons after detector smearing in acceptance range. Definition: AnalysisBase.h:105 AnalysisBase(std::string inFile, std::string outFol, std::string outPre, double xs, double xserr, std::map< std::string, std::string > branches, std::map< std::string, std::vector< int > > flags) Constructor function to load the Delphes ROOT file. Definition: AnalysisBase.cc:3 bool checkBTag(Jet *candidate, int relative_flag=0, std::string option="") Checks if candidate jet fulfills given b-jet identification. Definition: AnalysisBase.cc:269 void setInformation(std::string s) Sets the header that is printed on top of all output files. Definition: AnalysisBase.h:524 int bookFile(std::string name, bool noheader=false) Function to book file streams accessible via fStreams and fNames. Definition: AnalysisBase.cc:235 std::vector< Electron * > electronsMedium Container of 'electronsLoose' objects that pass 'medium' efficiency cut. Definition: AnalysisBase.h:103 std::vector< double > razor(const std::vector< TLorentzVector > &obj, const TLorentzVector &invis=TLorentzVector(0., 0., 0., 0.)) Evaluates razor. Definition: AnalysisBase.cc:434 bool checkTauTag(Jet *candidate, std::string efficiency) Checks if candidate jet fulfills given tau identification cut. Definition: AnalysisBase.cc:258 std::vector< T * > filterPhaseSpace(std::vector< T * > unfiltered, double pTmin=0., double etamin=-100, double etamax=100, bool exclude_overlap=false) Require objects to have a certain ptmin and lie within a certain eta range. Definition: AnalysisBase.h:137 double mCTcorr(const TLorentzVector &v1, const TLorentzVector &v2, const TLorentzVector &vds, const TLorentzVector &invis, const double ecm=8000.0, const double mxlo=0.0) Evaluates boost corrected . Definition: AnalysisBase.cc:361 The base class which defines the structure and functionality of all CheckMATE analyses. Definition: AnalysisBase.h:47 std::vector< Muon * > muonsCombinedPlus Container of objects that pass loose isolation condition and 'CBplusST' efficiency. Definition: AnalysisBase.h:106 void ignore(std::string ignore_what) Does not read out unneeded ROOT information. Definition: AnalysisBase.cc:296 void bookControlRegions(std::string listOfRegions) Function to book control regions. Definition: AnalysisBase.cc:73 double mCTy(const TLorentzVector &v1, const TLorentzVector &v2, const TLorentzVector &vds, const TLorentzVector &invis) Evaluates transverse. Definition: AnalysisBase.cc:371 Definition: DelphesClasses.h:269 std::vector< std::string > fNames Container of output file names booked via bookFile() Definition: AnalysisBase.h:497 Generated on Tue Dec 9 2014 17:18:36 for AnalysisBase Documentation by 1.8.6 |