CMS 3D CMS Logo

decayParser.h
Go to the documentation of this file.
1 #ifndef CANDCOMBINER_DECAYPARSER_H
2 #define CANDCOMBINER_DECAYPARSER_H
3 // -*- C++ -*-
4 //
5 // Package: CandCombiner
6 // Class : decayParser
7 //
16 //
17 // Original Author:
18 // Created: Sun Aug 7 20:26:36 EDT 2005
19 // $Id: decayParser.h,v 1.2 2009/05/08 12:54:34 llista Exp $
20 //
21 
22 // system include files
23 
24 // user include files
25 #include <vector>
26 #include <iostream>
27 #include <string>
28 #include <boost/spirit/include/classic_core.hpp>
29 #include <boost/spirit/include/classic_push_back_actor.hpp>
31 
32 // forward declarations
33 
34 namespace cand {
35  namespace parser {
36  struct ConjInfo {
40  ConjInfo(const char* begin, const char* end) : mode_(kPrimary), tag_(std::string(begin, end)) {}
41  };
42 
43  inline std::ostream& operator<<(std::ostream& out, const ConjInfo& info) {
44  return out << info.tag_.encode() << " "
45  << (0 == info.mode_
46  ? "p"
47  : (info.mode_ == ConjInfo::kBar ? "b" : (info.mode_ == ConjInfo::kPlus ? "+" : "-")));
48  }
49 
50  bool decayParser(const std::string& iValue, std::vector<ConjInfo>& oStrings);
51  } // namespace parser
52 } // namespace cand
53 
54 #endif /* CANDCOMBINER_DECAYPARSER_H */
cand::parser::ConjInfo::kMinus
Definition: decayParser.h:37
cand::parser::ConjInfo::ConjInfo
ConjInfo(const std::string &tag)
Definition: decayParser.h:39
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
cand::parser::ConjInfo
Definition: decayParser.h:36
cand::parser::ConjInfo::ConjInfo
ConjInfo(const char *begin, const char *end)
Definition: decayParser.h:40
cand::parser::ConjInfo::kPrimary
Definition: decayParser.h:37
end
#define end
Definition: vmac.h:39
cand::parser::operator<<
std::ostream & operator<<(std::ostream &out, const ConjInfo &info)
Definition: decayParser.h:43
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cand::parser::decayParser
bool decayParser(const std::string &iValue, std::vector< ConjInfo > &oStrings)
cand
Definition: decayParser.h:34
cand::parser::ConjInfo::kPlus
Definition: decayParser.h:37
cand::parser::ConjInfo::tag_
edm::InputTag tag_
Definition: decayParser.h:38
InputTag.h
std
Definition: JetResolutionObject.h:76
cand::parser::ConjInfo::kBar
Definition: decayParser.h:37
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
cand::parser::ConjInfo::mode_
enum cand::parser::ConjInfo::Mode mode_
edm::InputTag
Definition: InputTag.h:15
begin
#define begin
Definition: vmac.h:32
cand::parser::ConjInfo::Mode
Mode
Definition: decayParser.h:37