CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
TauSpinnerCMS Class Reference

#include <TauSpinnerCMS.h>

Inheritance diagram for TauSpinnerCMS:
edm::EDProducer edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

virtual void beginJob ()
 
virtual void endJob ()
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
virtual void produce (edm::Event &, const edm::EventSetup &)
 
 TauSpinnerCMS (const edm::ParameterSet &)
 
virtual ~TauSpinnerCMS ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

void GetLastSelf (const reco::GenParticle *Particle)
 
void GetRecoDaughters (const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
 
bool isFirst (const reco::GenParticle *Particle)
 
int readParticlesfromReco (edm::Event &e, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters)
 

Private Attributes

double CMSEnergy_
 
edm::EDGetTokenT
< edm::HepMCProduct
EvtHandleToken_
 
edm::InputTag gensrc_
 
edm::EDGetTokenT
< reco::GenParticleCollection
gensrcToken_
 
int Ipol_
 
bool isLHPDFConfigured_
 
bool isReco_
 
bool isTauolaConfigured_
 
std::string LHAPDFname_
 
int MotherPDGID_
 
int nonSM2_
 
int nonSMN_
 
double roundOff_
 

Static Private Attributes

static bool isTauSpinnerConfigure =false
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Definition at line 35 of file TauSpinnerCMS.h.

Constructor & Destructor Documentation

TauSpinnerCMS::TauSpinnerCMS ( const edm::ParameterSet pset)
explicit

Definition at line 33 of file TauSpinnerCMS.cc.

References decayRandomEngine, EvtHandleToken_, edm::hlt::Exception, gensrc_, gensrcToken_, and isReco_.

33  :
34  isReco_(pset.getParameter<bool>("isReco"))
35  ,isTauolaConfigured_(pset.getParameter<bool>("isTauolaConfigured" ))
36  ,isLHPDFConfigured_(pset.getParameter<bool>("isLHPDFConfigured" ))
37  ,LHAPDFname_(pset.getUntrackedParameter("LHAPDFname",(string)("MSTW2008nnlo90cl.LHgrid")))
38  ,CMSEnergy_(pset.getParameter<double>("CMSEnergy"))//GeV
39  ,gensrc_(pset.getParameter<edm::InputTag>("gensrc"))
40  ,MotherPDGID_(pset.getUntrackedParameter("MotherPDGID",(int)(-1)))
41  ,Ipol_(pset.getUntrackedParameter("Ipol",(int)(0)))
42  ,nonSM2_(pset.getUntrackedParameter("nonSM2",(int)(0)))
43  ,nonSMN_(pset.getUntrackedParameter("nonSMN",(int)(0)))
44  ,roundOff_(pset.getUntrackedParameter("roundOff",(double)(0.01)))
45 {
46  produces<bool>("TauSpinnerWTisValid").setBranchAlias("TauSpinnerWTisValid");
47  produces<double>("TauSpinnerWT").setBranchAlias("TauSpinnerWT");
48  produces<double>("TauSpinnerWTFlip").setBranchAlias("TauSpinnerWTFlip");
49  produces<double>("TauSpinnerWThplus").setBranchAlias("TauSpinnerWThplus");
50  produces<double>("TauSpinnerWThminus").setBranchAlias("TauSpinnerWThminus");
51 
52  if(!isReco_) EvtHandleToken_ = consumes<HepMCProduct>(gensrc_);
53  if(isReco_) gensrcToken_= consumes<reco::GenParticleCollection>(gensrc_);
54 
56  if(!rng.isAvailable()) {
57  throw cms::Exception("Configuration")
58  << "The RandomNumberProducer module requires the RandomNumberGeneratorService\n"
59  "which appears to be absent. Please add that service to your configuration\n"
60  "or remove the modules that require it." << std::endl;
61  }
62  decayRandomEngine = &rng->getEngine();
63 
64 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::GenParticleCollection > gensrcToken_
Definition: TauSpinnerCMS.h:61
double roundOff_
Definition: TauSpinnerCMS.h:75
edm::EDGetTokenT< edm::HepMCProduct > EvtHandleToken_
Definition: TauSpinnerCMS.h:60
bool isTauolaConfigured_
Definition: TauSpinnerCMS.h:52
std::string LHAPDFname_
Definition: TauSpinnerCMS.h:54
edm::InputTag gensrc_
Definition: TauSpinnerCMS.h:56
double CMSEnergy_
Definition: TauSpinnerCMS.h:55
CLHEP::HepRandomEngine * decayRandomEngine
bool isLHPDFConfigured_
Definition: TauSpinnerCMS.h:53
virtual TauSpinnerCMS::~TauSpinnerCMS ( )
inlinevirtual

Definition at line 42 of file TauSpinnerCMS.h.

42 {} // no need to delete ROOT stuff

Member Function Documentation

void TauSpinnerCMS::beginJob ( void  )
virtual

Reimplemented from edm::EDProducer.

Definition at line 66 of file TauSpinnerCMS.cc.

References CMSEnergy_, Ipol_, isLHPDFConfigured_, isTauolaConfigured_, isTauSpinnerConfigure, LHAPDFname_, nonSM2_, and nonSMN_.

67 {
69  Tauolapp::Tauola::initialize();
70  }
71  if(!isLHPDFConfigured_){
72  LHAPDF::initPDFSetByName(LHAPDFname_);
73  }
76  bool Ipp = true; // for pp collisions
77  // Initialize TauSpinner
78  //Ipol - polarization of input sample
79  //nonSM2 - nonstandard model calculations
80  //nonSMN
81  TauSpinner::initialize_spinner(Ipp,Ipol_,nonSM2_,nonSMN_,CMSEnergy_);
82  }
83 }
static bool isTauSpinnerConfigure
Definition: TauSpinnerCMS.h:58
bool isTauolaConfigured_
Definition: TauSpinnerCMS.h:52
std::string LHAPDFname_
Definition: TauSpinnerCMS.h:54
double CMSEnergy_
Definition: TauSpinnerCMS.h:55
bool isLHPDFConfigured_
Definition: TauSpinnerCMS.h:53
void TauSpinnerCMS::endJob ( void  )
virtual

Reimplemented from edm::EDProducer.

Definition at line 179 of file TauSpinnerCMS.cc.

179 {}
void TauSpinnerCMS::endRun ( const edm::Run r,
const edm::EventSetup  
)
virtual

Reimplemented from edm::EDProducer.

Definition at line 177 of file TauSpinnerCMS.cc.

177 {}
void TauSpinnerCMS::GetLastSelf ( const reco::GenParticle Particle)
private

Definition at line 236 of file TauSpinnerCMS.cc.

References reco::CompositeRefCandidateT< D >::daughter(), i, reco::CompositeRefCandidateT< D >::numberOfDaughters(), and reco::LeafCandidate::pdgId().

Referenced by readParticlesfromReco().

236  {
237  for (unsigned int i=0; i< Particle->numberOfDaughters(); i++){
238  const reco::GenParticle *dau=static_cast<const reco::GenParticle*>(Particle->daughter(i));
239  if(Particle->pdgId()==dau->pdgId()){
240  Particle=dau;
241  GetLastSelf(Particle);
242  }
243  }
244 }
int i
Definition: DBlmapReader.cc:9
void GetLastSelf(const reco::GenParticle *Particle)
virtual int pdgId() const GCC11_FINAL
PDG identifier.
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
void TauSpinnerCMS::GetRecoDaughters ( const reco::GenParticle Particle,
std::vector< TauSpinner::SimpleParticle > &  daughters,
int  parentpdgid 
)
private

Definition at line 256 of file TauSpinnerCMS.cc.

References funct::abs(), reco::CompositeRefCandidateT< D >::daughter(), i, reco::CompositeRefCandidateT< D >::numberOfDaughters(), reco::LeafCandidate::p4(), and reco::LeafCandidate::pdgId().

Referenced by readParticlesfromReco().

256  {
257  if( Particle->numberOfDaughters()==0 || abs(Particle->pdgId())==111){
258  SimpleParticle tp(Particle->p4().Px(), Particle->p4().Py(), Particle->p4().Pz(), Particle->p4().E(), Particle->pdgId());
259  daughters.push_back(tp);
260  return;
261  }
262  for (unsigned int i=0; i< Particle->numberOfDaughters(); i++){
263  const reco::Candidate *dau=Particle->daughter(i);
264  GetRecoDaughters(static_cast<const reco::GenParticle*>(dau),daughters,Particle->pdgId());
265  }
266 }
int i
Definition: DBlmapReader.cc:9
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
virtual int pdgId() const GCC11_FINAL
PDG identifier.
void GetRecoDaughters(const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool TauSpinnerCMS::isFirst ( const reco::GenParticle Particle)
private

Definition at line 246 of file TauSpinnerCMS.cc.

References i, reco::CompositeRefCandidateT< D >::mother(), reco::CompositeRefCandidateT< D >::numberOfMothers(), and reco::LeafCandidate::pdgId().

Referenced by readParticlesfromReco().

246  {
247  for (unsigned int i=0; i< Particle->numberOfMothers(); i++){
248  const reco::GenParticle *moth=static_cast<const reco::GenParticle*>(Particle->mother(i));
249  if(Particle->pdgId()==moth->pdgId()){
250  return false;
251  }
252  }
253  return true;
254 }
int i
Definition: DBlmapReader.cc:9
virtual int pdgId() const GCC11_FINAL
PDG identifier.
virtual size_t numberOfMothers() const
number of mothers
virtual const Candidate * mother(size_type=0) const
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) ...
void TauSpinnerCMS::produce ( edm::Event e,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 85 of file TauSpinnerCMS.cc.

References funct::abs(), gather_cfg::cout, EvtHandleToken_, edm::Event::getByToken(), i, isReco_, MotherPDGID_, edm::Event::put(), readParticlesFromHepMC(), readParticlesfromReco(), reco::return(), roundOff_, metsig::tau, and X.

85  {
86  double WT=1.0;
87  double WTFlip=1.0;
88  double polSM=-999; //range [-1,1]
89  SimpleParticle X, tau, tau2;
90  std::vector<SimpleParticle> tau_daughters, tau_daughters2;
91  int stat(0);
92  if(isReco_){
93  stat=readParticlesfromReco(e,X,tau,tau2,tau_daughters,tau_daughters2);
94  }
95  else{
96  Handle< HepMCProduct > EvtHandle ;
97  e.getByToken(EvtHandleToken_, EvtHandle ) ;
98  const HepMC::GenEvent* Evt = EvtHandle->GetEvent() ;
99  stat=readParticlesFromHepMC(Evt,X,tau,tau2,tau_daughters,tau_daughters2);
100  }
101  if(MotherPDGID_<0 || abs(X.pdgid())==MotherPDGID_){
102  if(stat!=1){
103  // Determine the weight
104  if( abs(X.pdgid())==24 || abs(X.pdgid())==37 ){
105  TLorentzVector tau_1r(0,0,0,0);
106  TLorentzVector tau_1(tau.px(),tau.py(),tau.pz(),tau.e());
107  for(unsigned int i=0; i<tau_daughters.size();i++){
108  tau_1r+=TLorentzVector(tau_daughters.at(i).px(),tau_daughters.at(i).py(),tau_daughters.at(i).pz(),tau_daughters.at(i).e());
109  }
110  if(fabs(tau_1r.M()-tau_1.M())<roundOff_){
111  WT = TauSpinner::calculateWeightFromParticlesWorHpn(X, tau, tau2, tau_daughters); // note that tau2 is tau neutrino
112  polSM=getTauSpin();
113  WTFlip=(2.0-WT)/WT;
114  }
115  }
116  else if( X.pdgid()==25 || X.pdgid()==36 || X.pdgid()==22 || X.pdgid()==23 ){
117  TLorentzVector tau_1r(0,0,0,0), tau_2r(0,0,0,0);
118  TLorentzVector tau_1(tau.px(),tau.py(),tau.pz(),tau.e()), tau_2(tau2.px(),tau2.py(),tau2.pz(),tau2.e());
119  for(unsigned int i=0; i<tau_daughters.size();i++){
120  tau_1r+=TLorentzVector(tau_daughters.at(i).px(),tau_daughters.at(i).py(),tau_daughters.at(i).pz(),tau_daughters.at(i).e());
121  }
122  for(unsigned int i=0; i<tau_daughters2.size();i++){
123  tau_2r+=TLorentzVector(tau_daughters2.at(i).px(),tau_daughters2.at(i).py(),tau_daughters2.at(i).pz(),tau_daughters2.at(i).e());
124  }
125 
126  if(fabs(tau_1r.M()-tau_1.M())<roundOff_ && fabs(tau_2r.M()-tau_2.M())<roundOff_){
127  WT = TauSpinner::calculateWeightFromParticlesH(X, tau, tau2, tau_daughters,tau_daughters2);
128  //std::cout << "WT " << WT << std::endl;
129  polSM=getTauSpin();
130  if(X.pdgid()==25 || X.pdgid()==22 || X.pdgid()==23 ){
131  if(X.pdgid()==25) X.setPdgid(23);
132  if( X.pdgid()==22 || X.pdgid()==23 ) X.setPdgid(25);
133 
134  double WTother=TauSpinner::calculateWeightFromParticlesH(X, tau, tau2, tau_daughters,tau_daughters2);
135  WTFlip=WTother/WT;
136  }
137  }
138  }
139  else{
140  cout<<"TauSpinner: WARNING: Unexpected PDG for tau mother: "<<X.pdgid()<<endl;
141  }
142  }
143  }
144  bool isValid=true;
145  if(!(0<=WT && WT<10)){isValid=false; WT=1.0; WTFlip=1.0;}
146  std::auto_ptr<bool> TauSpinnerWeightisValid(new bool);
147  *TauSpinnerWeightisValid =isValid;
148  e.put(TauSpinnerWeightisValid,"TauSpinnerWTisValid");
149 
150  // regular weight
151  std::auto_ptr<double> TauSpinnerWeight(new double);
152  *TauSpinnerWeight =WT;
153  e.put(TauSpinnerWeight,"TauSpinnerWT");
154 
155  // flipped weight (ie Z->H or H->Z)
156  std::auto_ptr<double> TauSpinnerWeightFlip(new double);
157  *TauSpinnerWeightFlip =WTFlip;
158  e.put(TauSpinnerWeightFlip,"TauSpinnerWTFlip");
159 
160  // h+ polarization
161  double WThplus=WT;
162  if(polSM<0.0 && polSM!=-999 && isValid) WThplus=0;
163  std::auto_ptr<double> TauSpinnerWeighthplus(new double);
164  *TauSpinnerWeighthplus = WThplus;
165  e.put(TauSpinnerWeighthplus,"TauSpinnerWThplus");
166 
167  // h- polarization
168  double WThminus=WT;
169  if(polSM>0.0&& polSM!=-999 && isValid) WThminus=0;
170  std::auto_ptr<double> TauSpinnerWeighthminus(new double);
171  *TauSpinnerWeighthminus = WThminus;
172  e.put(TauSpinnerWeighthminus,"TauSpinnerWThminus");
173 
174  return ;
175 }
int i
Definition: DBlmapReader.cc:9
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
#define X(str)
Definition: MuonsGrabber.cc:48
double roundOff_
Definition: TauSpinnerCMS.h:75
edm::EDGetTokenT< edm::HepMCProduct > EvtHandleToken_
Definition: TauSpinnerCMS.h:60
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int readParticlesfromReco(edm::Event &e, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters)
int readParticlesFromHepMC(const HepMC::GenEvent *event, TauSpinner::SimpleParticle &X, TauSpinner::SimpleParticle &tau, TauSpinner::SimpleParticle &tau2, std::vector< TauSpinner::SimpleParticle > &tau_daughters, std::vector< TauSpinner::SimpleParticle > &tau2_daughters)
return(e1-e2)*(e1-e2)+dp *dp
tuple cout
Definition: gather_cfg.py:121
int TauSpinnerCMS::readParticlesfromReco ( edm::Event e,
TauSpinner::SimpleParticle &  X,
TauSpinner::SimpleParticle &  tau,
TauSpinner::SimpleParticle &  tau2,
std::vector< TauSpinner::SimpleParticle > &  tau_daughters,
std::vector< TauSpinner::SimpleParticle > &  tau2_daughters 
)
private

Definition at line 181 of file TauSpinnerCMS.cc.

References funct::abs(), reco::Candidate::daughter(), genParticleCandidates2GenParticles_cfi::genParticles, gensrcToken_, edm::Event::getByToken(), GetLastSelf(), GetRecoDaughters(), i, isFirst(), NULL, reco::LeafCandidate::p4(), reco::Candidate::pdgId(), and reco::LeafCandidate::pdgId().

Referenced by produce().

182  {
184  e.getByToken(gensrcToken_, genParticles);
185  for(reco::GenParticleCollection::const_iterator itr = genParticles->begin(); itr!= genParticles->end(); ++itr){
186  int pdgid=abs(itr->pdgId());
187  if(pdgid==24 || pdgid==37 || pdgid ==25 || pdgid==36 || pdgid==22 || pdgid==23 ){
188  const reco::GenParticle *hx=&(*itr);
189  if(!isFirst(hx)) continue;
190  GetLastSelf(hx);
191  const reco::GenParticle *recotau1=NULL;
192  const reco::GenParticle *recotau2=NULL;
193  unsigned int ntau(0),ntauornu(0);
194  for(unsigned int i=0; i<itr->numberOfDaughters(); i++){
195  const reco::Candidate *dau=itr->daughter(i);
196  if(abs(dau->pdgId())!=pdgid){
197  if(abs(dau->pdgId())==15 || abs(dau->pdgId())==16){
198  if(ntau==0 && abs(dau->pdgId())==15){
199  recotau1=static_cast<const reco::GenParticle*>(dau);
200  GetLastSelf(recotau1);
201  ntau++;
202  }
203  else if((ntau==1 && abs(dau->pdgId())==15) || abs(dau->pdgId())==16){
204  recotau2=static_cast<const reco::GenParticle*>(dau);
205  if(abs(dau->pdgId())==15){ntau++;GetLastSelf(recotau2);}
206  }
207  ntauornu++;
208  }
209  }
210  }
211  if((ntau==2 && ntauornu==2) || (ntau==1 && ntauornu==2)){
212  X.setPx(itr->p4().Px());
213  X.setPy(itr->p4().Py());
214  X.setPz(itr->p4().Pz());
215  X.setE (itr->p4().E());
216  X.setPdgid(itr->pdgId());
217  tau.setPx(recotau1->p4().Px());
218  tau.setPy(recotau1->p4().Py());
219  tau.setPz(recotau1->p4().Pz());
220  tau.setE (recotau1->p4().E());
221  tau.setPdgid(recotau1->pdgId());
222  GetRecoDaughters(recotau1,tau_daughters,recotau1->pdgId());
223  tau2.setPx(recotau2->p4().Px());
224  tau2.setPy(recotau2->p4().Py());
225  tau2.setPz(recotau2->p4().Pz());
226  tau2.setE (recotau2->p4().E());
227  tau2.setPdgid(recotau2->pdgId());
228  if(ntau==2)GetRecoDaughters(recotau2,tau2_daughters,recotau2->pdgId());
229  return 0;
230  }
231  }
232  }
233  return 1;
234 }
int i
Definition: DBlmapReader.cc:9
void GetLastSelf(const reco::GenParticle *Particle)
virtual const Candidate * daughter(size_type i) const =0
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
edm::EDGetTokenT< reco::GenParticleCollection > gensrcToken_
Definition: TauSpinnerCMS.h:61
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
virtual int pdgId() const GCC11_FINAL
PDG identifier.
bool isFirst(const reco::GenParticle *Particle)
#define X(str)
Definition: MuonsGrabber.cc:48
#define NULL
Definition: scimark2.h:8
void GetRecoDaughters(const reco::GenParticle *Particle, std::vector< TauSpinner::SimpleParticle > &daughters, int parentpdgid)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
virtual int pdgId() const =0
PDG identifier.

Member Data Documentation

double TauSpinnerCMS::CMSEnergy_
private

Definition at line 55 of file TauSpinnerCMS.h.

Referenced by beginJob().

edm::EDGetTokenT<edm::HepMCProduct> TauSpinnerCMS::EvtHandleToken_
private

Definition at line 60 of file TauSpinnerCMS.h.

Referenced by produce(), and TauSpinnerCMS().

edm::InputTag TauSpinnerCMS::gensrc_
private

Definition at line 56 of file TauSpinnerCMS.h.

Referenced by TauSpinnerCMS().

edm::EDGetTokenT<reco::GenParticleCollection> TauSpinnerCMS::gensrcToken_
private

Definition at line 61 of file TauSpinnerCMS.h.

Referenced by readParticlesfromReco(), and TauSpinnerCMS().

int TauSpinnerCMS::Ipol_
private

Definition at line 57 of file TauSpinnerCMS.h.

Referenced by beginJob().

bool TauSpinnerCMS::isLHPDFConfigured_
private

Definition at line 53 of file TauSpinnerCMS.h.

Referenced by beginJob().

bool TauSpinnerCMS::isReco_
private

Definition at line 51 of file TauSpinnerCMS.h.

Referenced by produce(), and TauSpinnerCMS().

bool TauSpinnerCMS::isTauolaConfigured_
private

Definition at line 52 of file TauSpinnerCMS.h.

Referenced by beginJob().

bool TauSpinnerCMS::isTauSpinnerConfigure =false
staticprivate

Definition at line 58 of file TauSpinnerCMS.h.

Referenced by beginJob().

std::string TauSpinnerCMS::LHAPDFname_
private

Definition at line 54 of file TauSpinnerCMS.h.

Referenced by beginJob().

int TauSpinnerCMS::MotherPDGID_
private

Definition at line 57 of file TauSpinnerCMS.h.

Referenced by produce().

int TauSpinnerCMS::nonSM2_
private

Definition at line 57 of file TauSpinnerCMS.h.

Referenced by beginJob().

int TauSpinnerCMS::nonSMN_
private

Definition at line 57 of file TauSpinnerCMS.h.

Referenced by beginJob().

double TauSpinnerCMS::roundOff_
private

Definition at line 75 of file TauSpinnerCMS.h.

Referenced by produce().