83 verbosity_ (cfg.getParameter<int> (
"verbosity" )),
84 hyps_ (cfg.getParameter<std::vector<std::string> >(
"hypotheses" )),
85 genEvt_ (cfg.getParameter<edm::InputTag> (
"genEvent" )),
86 decayChnTop1_(cfg.getParameter<int> (
"decayChannel1")),
87 decayChnTop2_(cfg.getParameter<int> (
"decayChannel2"))
90 if( cfg.
exists(
"kinFit") ) {
96 if( cfg.
exists(
"kinSolution") ) {
102 if( cfg.
exists(
"genMatch") ) {
108 if( cfg.
exists(
"mvaDisc") ) {
121 template <
typename C>
133 ttEvent.setGenEvent(genEvt);
137 typedef std::vector<std::string>::const_iterator EventHypo;
138 for(EventHypo
h=hyps_.begin();
h!=hyps_.end(); ++
h){
145 typedef std::vector<TtEvent::HypoCombPair>::const_iterator HypMatch;
146 for(HypMatch hm=hypMatchVec->begin(); hm != hypMatchVec->end(); ++hm){
155 ttEvent.setFitChi2( *fitChi2 );
159 ttEvent.setFitProb( *fitProb );
166 ttEvent.setGenMatchSumPt( *sumPt );
170 ttEvent.setGenMatchSumDR( *sumDR );
177 ttEvent.setMvaMethod( *meth );
181 ttEvent.setMvaDiscriminators( *disc );
185 fillSpecific(ttEvent, evt);
188 ttEvent.print(verbosity_);
191 std::auto_ptr<C> pOut(
new C);
223 typedef std::vector<std::string>::const_iterator EventHypo;
224 for(EventHypo
h=hyps_.begin();
h!=hyps_.end(); ++
h){
229 evt.
getByLabel(*
h,
"NumberOfRealNeutrinoSolutions", numberOfRealNeutrinoSolutions);
void setWrongCharge(const bool &val)
set right or wrong charge combination of kKinSolution hypothesis
T getParameter(std::string const &) const
HypoClassKey
supported classes of event hypotheses
bool isHypoAvailable(const std::string &key, const unsigned &cmb=0) const
virtual void produce(edm::Event &, const edm::EventSetup &)
TtEvtBuilder(const edm::ParameterSet &)
default constructor
edm::InputTag genEvt_
TtGenEvent.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void setNumberOfRealNeutrinoSolutions(const HypoClassKey &key, const int &nr)
set number of real neutrino solutions for a given hypo class
Class derived from the TtEvent for the semileptonic decay channel.
static double fitChi2(const CachingVertex< 5 > &vtx)
edm::ParameterSet genMatch_
~TtEvtBuilder()
default destructor
Template class to fill the TtEvent structure.
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void fillSpecific(C &, const edm::Event &)
fill data members that are decay-channel specific
std::vector< std::string > hyps_
vector of hypothesis class names
int verbosity_
vebosity level
edm::ParameterSet mvaDisc_
Class derived from the TtEvent for the full leptonic decay channel.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setSolWeight(const std::vector< double > &val)
set weight of kKinSolution hypothesis
edm::ParameterSet kinFit_
edm::InputTag wrongCharge_
edm::ParameterSet kinSolution_
Class derived from the TtEvent for the full hadronic decay channel.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.