00001 #ifndef StarterKit_HistoTau_h
00002 #define StarterKit_HistoTau_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #include "PhysicsTools/StarterKit/interface/HistoGroup.h"
00038 #include "PhysicsTools/StarterKit/interface/HistoTrack.h"
00039
00040
00041 #include "DataFormats/PatCandidates/interface/Tau.h"
00042
00043
00044
00045 #include <string>
00046 #include <vector>
00047
00048
00049 #include <TH1D.h>
00050
00051 namespace pat {
00052
00053 class HistoTau : public HistoGroup<Tau> {
00054
00055 public:
00056 HistoTau(std::string dir = "tau", std::string group = "Tau",std::string pre="tau",
00057 double pt1=0, double pt2=200, double m1=0, double m2=200,
00058 TFileDirectory * parentDir=0 );
00059 virtual ~HistoTau() { } ;
00060
00061
00062
00063 virtual void fill( const Tau *tau, uint iPart = 1, double weight = 1.0 );
00064 virtual void fill( const Tau &tau, uint iPart = 1, double weight = 1.0 ) { fill(&tau, iPart, weight); }
00065
00066
00067
00068 virtual void fill( const reco::ShallowClonePtrCandidate *tau, uint iPart = 1, double weight = 1.0 );
00069 virtual void fill( const reco::ShallowClonePtrCandidate &tau, uint iPart = 1, double weight = 1.0 )
00070 { fill(&tau, iPart, weight); }
00071
00072 virtual void fillCollection( const std::vector<Tau> & coll, double weight = 1.0 );
00073
00074
00075 void clearVec();
00076
00077 protected:
00078 HistoTrack * histoLeadingTrack_;
00079 HistoTrack * histoSignalTrack_;
00080 HistoTrack * histoIsolationTrack_;
00081 PhysVarHisto * h_emEnergyFraction_ ;
00082 PhysVarHisto * h_eOverP_ ;
00083 };
00084 }
00085 #endif