FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
PndFsmDrcDisc Class Reference

#include <PndFsmDrcDisc.h>

Inheritance diagram for PndFsmDrcDisc:
PndFsmAbsDet

Public Member Functions

 PndFsmDrcDisc ()
 
 PndFsmDrcDisc (ArgList &par)
 
virtual ~PndFsmDrcDisc ()
 
virtual PndFsmResponserespond (PndFsmTrack *t)
 
const std::string & detName ()
 
void setName (std::string &name)
 
Bool_t doesPid () const
 
void setStorePid (Bool_t doespid=kTRUE)
 

Protected Member Functions

void parseParameterList (ArgList &par)
 

Protected Attributes

std::string _detName
 
double _efficiency
 
TRandom3 * _rand
 
TDatabasePDG * _fdbPDG
 
Bool_t _doesPid
 

Private Member Functions

bool detected (PndFsmTrack *t) const
 
double compThetaC (double p, double m)
 
double gauss (double x, double x0, double s)
 
void initParameters ()
 
void print (std::ostream &o)
 
bool setParameter (std::string &name, double value)
 
bool setParameter (std::string &name, std::string &value)
 
bool readParameters ()
 

Private Attributes

TH2F * trapfrac [5]
 
double _thtMin
 
double _thtMax
 
double _radiationLength
 
double _pmin
 
double _dthtc
 
double _nPhotMin
 
double _nRefrac
 
double _Bfield
 
double _effNPhotons
 
double _dDisc
 
double _dp
 
double _trap
 
std::string _parFileName
 

Detailed Description

Definition at line 42 of file PndFsmDrcDisc.h.

Constructor & Destructor Documentation

PndFsmDrcDisc::PndFsmDrcDisc ( )

Default ctor.

Definition at line 60 of file PndFsmDrcDisc.cxx.

References _thtMax, _thtMin, initParameters(), and readParameters().

61 {
63 
64  _thtMin=_thtMin*M_PI/180.0;
65  _thtMax=_thtMax*M_PI/180.0;
66 
68 
69  //print(std::cout);
70 }
PndFsmDrcDisc::PndFsmDrcDisc ( ArgList par)

Definition at line 72 of file PndFsmDrcDisc.cxx.

References _thtMax, _thtMin, initParameters(), PndFsmAbsDet::parseParameterList(), and readParameters().

73 {
75  //set default parameter values and parses a parameter list
76  //i.e. std::list<std::string> of the form
77  //"a=1" "b=2" "c=3"
79 
80  _thtMin=_thtMin*M_PI/180.0;
81  _thtMax=_thtMax*M_PI/180.0;
82 
84 
85  //print(std::cout);
86 }
Double_t par[3]
void parseParameterList(ArgList &par)
PndFsmDrcDisc::~PndFsmDrcDisc ( )
virtual

Destructor

Definition at line 92 of file PndFsmDrcDisc.cxx.

93 {
94 }

Member Function Documentation

double PndFsmDrcDisc::compThetaC ( double  p,
double  m 
)
private

Definition at line 217 of file PndFsmDrcDisc.cxx.

References _nRefrac, acos(), sqrt(), and val.

Referenced by respond().

218 {
219  double val=0.0;
220  if (p==0) return 0.0;
221  if ( (val = (p*p+m*m)/(p*p*_nRefrac*_nRefrac)) <= 1.0 ) return acos(sqrt(val));
222  else return 0.0;
223 }
friend F32vec4 acos(const F32vec4 &a)
Definition: P4_F32vec4.h:113
__m128 m
Definition: P4_F32vec4.h:28
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
Double_t p
Definition: anasim.C:58
bool PndFsmDrcDisc::detected ( PndFsmTrack t) const
private

Definition at line 227 of file PndFsmDrcDisc.cxx.

References PndFsmAbsDet::_efficiency, PndFsmAbsDet::_fdbPDG, _nRefrac, _thtMin, FsmDetEnum::Drc, PndFsmTrack::hitMapResponse(), PndFsmTrack::hitMapValid(), p, PndFsmTrack::p4(), PndFsmTrack::pdt(), sqrt(), and theta.

Referenced by respond().

228 {
229  if (t->hitMapValid()) {
230  return t->hitMapResponse(FsmDetEnum::Drc);
231  } else {
232  int lundId=abs(t->pdt());
233  TParticlePDG* part = _fdbPDG->GetParticle(lundId);
234  double mass = (part) ? part->Mass() : t->p4().M();
235  double p_cerenkov_min=mass/sqrt(_nRefrac*_nRefrac - 1.0);
236  double theta = t->p4().Theta();
237  double p=t->p4().Vect().Mag();
238 
239  bool correctPidType=(lundId==11 || lundId==13 || lundId==211 || lundId==321 || lundId==2212);
240 
241  return ( p>p_cerenkov_min && theta>=_thtMin && theta<=_thtMax && correctPidType && _rand->Uniform()<=_efficiency);
242  }
243 }
double _efficiency
Definition: PndFsmAbsDet.h:93
TDatabasePDG * _fdbPDG
Definition: PndFsmAbsDet.h:95
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
bool hitMapResponse(unsigned int)
Definition: PndFsmTrack.h:86
Double_t p
Definition: anasim.C:58
TLorentzVector p4()
Definition: PndFsmTrack.h:72
bool hitMapValid()
Definition: PndFsmTrack.h:85
const std::string& PndFsmAbsDet::detName ( )
inlineinherited
Bool_t PndFsmAbsDet::doesPid ( ) const
inlineinherited

Definition at line 76 of file PndFsmAbsDet.h.

References PndFsmAbsDet::_doesPid.

Referenced by PndFastSim::Register(), and PndFastSim::smearTrack().

76 {return _doesPid;};
Bool_t _doesPid
Definition: PndFsmAbsDet.h:96
double PndFsmDrcDisc::gauss ( double  x,
double  x0,
double  s 
)
private

Definition at line 210 of file PndFsmDrcDisc.cxx.

References exp(), and sqrt().

Referenced by respond().

211 {
212  return (1.0/(sqrt(2.0*M_PI)*s))*
213  exp(-(x-x0)*(x-x0)/(2.0*s*s));
214 }
Double_t x0
Definition: checkhelixhit.C:70
friend F32vec4 exp(const F32vec4 &a)
Definition: P4_F32vec4.h:109
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
TLorentzVector s
Definition: Pnd2DStar.C:50
Double_t x
void PndFsmDrcDisc::initParameters ( )
privatevirtual

Reimplemented from PndFsmAbsDet.

Definition at line 266 of file PndFsmDrcDisc.cxx.

References _Bfield, _dDisc, PndFsmAbsDet::_detName, _dp, _dthtc, PndFsmAbsDet::_efficiency, _effNPhotons, _nPhotMin, _nRefrac, _parFileName, _pmin, _radiationLength, _thtMax, _thtMin, and _trap.

Referenced by PndFsmDrcDisc().

267 {
268  _detName = "DrcDisc";
269  _thtMin = 5.0;
270  _thtMax = 22.0;
271  _radiationLength = 0.0;
272  _pmin = 0.0;
273  _dthtc = 0.01;
274  _nPhotMin = 5;
275  _nRefrac = 1.472;
276  _Bfield = 2.;
277  _effNPhotons = 0.1;
278  _dDisc = 0.017;
279  _dp = 0.01;
280  _trap = 0.7;
281  _efficiency = 1.0;
282  _parFileName = "$VMCWORKDIR/fastsim/trapfrac_disc.root";
283 }
double _efficiency
Definition: PndFsmAbsDet.h:93
double _effNPhotons
Definition: PndFsmDrcDisc.h:95
std::string _parFileName
Definition: PndFsmDrcDisc.h:99
std::string _detName
Definition: PndFsmAbsDet.h:92
double _nPhotMin
Definition: PndFsmDrcDisc.h:92
double _radiationLength
Definition: PndFsmDrcDisc.h:89
void PndFsmAbsDet::parseParameterList ( ArgList par)
protectedinherited

Definition at line 119 of file PndFsmAbsDet.cxx.

References CStrTok::GetFirst(), CStrTok::GetNext(), name, and PndFsmAbsDet::setParameter().

Referenced by PndFsmAbsDet::PndFsmAbsDet(), PndFsmCmpDet::PndFsmCmpDet(), PndFsmCombiDet::PndFsmCombiDet(), PndFsmDetTemplate::PndFsmDetTemplate(), PndFsmDrcBarrel::PndFsmDrcBarrel(), PndFsmDrcDisc(), PndFsmEffTracker::PndFsmEffTracker(), PndFsmEmcBarrel::PndFsmEmcBarrel(), PndFsmEmcBwCap::PndFsmEmcBwCap(), PndFsmEmcFS::PndFsmEmcFS(), PndFsmEmcFwCap::PndFsmEmcFwCap(), PndFsmEmcPid::PndFsmEmcPid(), PndFsmIdealPid::PndFsmIdealPid(), PndFsmMdcFS::PndFsmMdcFS(), PndFsmMdcTS::PndFsmMdcTS(), PndFsmMdtPid::PndFsmMdtPid(), PndFsmMvd::PndFsmMvd(), PndFsmMvd2::PndFsmMvd2(), PndFsmMvdPid::PndFsmMvdPid(), PndFsmRich::PndFsmRich(), PndFsmSimpleTracker::PndFsmSimpleTracker(), PndFsmSimpleVtx::PndFsmSimpleVtx(), PndFsmStt::PndFsmStt(), PndFsmSttPid::PndFsmSttPid(), and PndFsmTof::PndFsmTof().

120 {
121  // ArgList is a std::list<std::string> of the form ("a=1","b=2","c=3","d=4")
122 
123  // Default values for the parameters
124 
125  CStrTok tokenizer;
126  char csrc[200];
127 
128  if (par.size() != 0) {
129 
130  //cout <<"Parameters for detector <"<<_detName<<">"<<endl;
131  for(ArgList::const_iterator argIt=par.begin(); argIt!=par.end();argIt++) {
132 
133  const char *src=argIt->data();
134  strcpy(csrc,src);
135 
136  char* token = tokenizer.GetFirst(csrc,"=");
137  string name(token);
138  //cout <<"variable: -" << name << "- ";
139  token = tokenizer.GetNext("=");
140 
141  double value = atof(token);
142  string strvalue(token);
143 
144  //cout <<"value: -"<<value<<"- "<<endl;
145 
146  if (value!=0 || strvalue=="0" || strvalue=="0.0" || strvalue=="0.")
147  {
148  if (!setParameter(name,value))
149  cout <<" -W- (PndFsmAbsDet::parseParameterList) Unknown Parameter: <"<<name<< endl;
150  }
151  else
152  {
153  if (!setParameter(name,strvalue))
154  cout <<" -W- (PndFsmAbsDet::parseParameterList) Unknown Parameter: <"<<name<< endl;
155  }
156 
157  }
158  }
159 
160  /*
161  if (par.size() != 0) {
162 
163  //cout <<"Parameters for detector <"<<_detName<<">"<<endl;
164  for(ArgList::const_iterator argIt=par.begin(); argIt!=par.end();argIt++) {
165  typedef boost::tokenizer<boost::char_separator<char> > tokenizer;
166  boost::char_separator<char> sep("=");
167  tokenizer tokens(*argIt, sep);
168  tokenizer::iterator tok_iter = tokens.begin();
169  string name(*tok_iter);
170  ++tok_iter;
171  double value=atof((*tok_iter).c_str());
172 
173  //cout <<"<"<<name<<"> = "<<value<<endl;
174 
175  string name("efficiency");
176  double value=0.99;
177  if (!setParameter(name,value))
178  cout <<" -W- Unknown Parameter: <"<<name<<"> in PndFsmAbsDet::parseParameterList" << endl;
179  }
180  }
181  */
182  //print(std::cout);
183 
184 }
Double_t par[3]
char * GetFirst(char *lpsz, const char *lpcszDelimiters)
Definition: StrTok.cxx:29
TString name
Definition: StrTok.h:11
virtual bool setParameter(std::string &name, double value)
char * GetNext(const char *lpcszDelimiters)
Definition: StrTok.cxx:37
void PndFsmDrcDisc::print ( std::ostream o)
privatevirtual

Reimplemented from PndFsmAbsDet.

Definition at line 246 of file PndFsmDrcDisc.cxx.

References _Bfield, _dDisc, _dp, _dthtc, PndFsmAbsDet::_efficiency, _effNPhotons, _nPhotMin, _nRefrac, _parFileName, _pmin, _radiationLength, _thtMax, _thtMin, _trap, and PndFsmAbsDet::detName().

247 {
248  o <<"Parameters for detector <"<<detName()<<">"<<endl;
249  o <<" _thtMin = "<<_thtMin<<endl;
250  o <<" _thtMax = "<<_thtMax<<endl;
251  o <<" _radiationLength = "<<_radiationLength<<endl;
252  o <<" _pmin = "<<_pmin<<endl;
253  o <<" _dthtc = "<<_dthtc<<endl;
254  o <<" _nPhotMin = "<<_nPhotMin<<endl;
255  o <<" _nRefrac = "<<_nRefrac<<endl;
256  o <<" _Bfield = "<<_Bfield<<endl;
257  o <<" _effNPhotons = "<<_effNPhotons<<endl;
258  o <<" _dDisc = "<<_dDisc<<endl;
259  o <<" _dp = "<<_dp<<endl;
260  o <<" _trap = "<<_trap<<endl;
261  o <<" _efficiency = "<<_efficiency<<endl;
262  o <<" _parFileName = "<<_parFileName<<endl;
263 }
double _efficiency
Definition: PndFsmAbsDet.h:93
const std::string & detName()
Definition: PndFsmAbsDet.h:74
double _effNPhotons
Definition: PndFsmDrcDisc.h:95
std::string _parFileName
Definition: PndFsmDrcDisc.h:99
double _nPhotMin
Definition: PndFsmDrcDisc.h:92
double _radiationLength
Definition: PndFsmDrcDisc.h:89
bool PndFsmDrcDisc::readParameters ( )
private

Definition at line 355 of file PndFsmDrcDisc.cxx.

References _parFileName, _trap, f, i, and trapfrac.

Referenced by PndFsmDrcDisc().

356 {
357  TFile *f=new TFile(_parFileName.c_str());
358 
359  for (int i=0;i<5;i++)
360  {
361  trapfrac[i]=0;
362  }
363 
364  if (f->IsZombie())
365  {
366  cout <<" -W- (PndFsmDrcDisc::readParameters) - file "<<_parFileName.c_str()
367  <<" doesn't exist. Using constant trapping fraction _trap="<<_trap<<endl;
368  }
369  else
370  {
371  trapfrac[0]=(TH2F*)f->Get("hacc0");
372  trapfrac[1]=(TH2F*)f->Get("hacc1");
373  trapfrac[2]=(TH2F*)f->Get("hacc2");
374  trapfrac[3]=(TH2F*)f->Get("hacc3");
375  trapfrac[4]=(TH2F*)f->Get("hacc4");
376 
377  for (int i=0;i<5;i++) trapfrac[i]->SetDirectory(0);
378 
379  f->Close();
380  }
381  delete f;
382 
383  return true;
384 }
Int_t i
Definition: run_full.C:25
TH2F * trapfrac[5]
Definition: PndFsmDrcDisc.h:85
std::string _parFileName
Definition: PndFsmDrcDisc.h:99
TFile * f
Definition: bump_analys.C:12
PndFsmResponse * PndFsmDrcDisc::respond ( PndFsmTrack t)
virtual

Accessors to contained information

Implements PndFsmAbsDet.

Definition at line 101 of file PndFsmDrcDisc.cxx.

References _dDisc, _dp, _dthtc, _effNPhotons, PndFsmAbsDet::_fdbPDG, _nPhotMin, _nRefrac, PndFsmAbsDet::_rand, _trap, alpha, PndFsmTrack::charge(), compThetaC(), cos(), ctht(), detected(), fabs(), gauss(), p, PndFsmTrack::p4(), PndFsmTrack::pdt(), pid(), PndFsmResponse::setDetected(), PndFsmResponse::setDetector(), PndFsmResponse::setDrcDiscThtc(), PndFsmResponse::setLHElectron(), PndFsmResponse::setLHKaon(), PndFsmResponse::setLHMuon(), PndFsmResponse::setLHPion(), PndFsmResponse::setLHProton(), sqrt(), theta, and trapfrac.

102 {
103  PndFsmResponse *result=new PndFsmResponse();
104 
105  result->setDetector(this);
106  bool wasDetected=detected(t);
107  result->setDetected(wasDetected);
108 
109  if (wasDetected && fabs(t->charge())>1e-8)
110  {
111  TParticlePDG* part = _fdbPDG->GetParticle(t->pdt());
112  double mass = (part) ? part->Mass() : t->p4().M();
113  double theta = t->p4().Theta();
114  double p=t->p4().Vect().Mag();
115  double ctht=cos(theta);
116  //double p_t=p*sin(theta);
117 
118  int pid=abs(t->pdt());
119  int npid=-1;
120 
121  if (pid==11) npid=0;
122  else if (pid==13) npid=1;
123  else if (pid==211) npid=2;
124  else if (pid==321) npid=3;
125  else if (pid==2212) npid=4;
126 
127  double thtdeg=theta/M_PI*180.;
128 
129  if ( p==0 || ctht==0 ) {result->setDetected(false);return result;} // floating point check ********************
130 
131  double lambda1 = 280e-9; //range of wavelength, which is seen by the PMT/PD
132  double lambda2 = 330e-9;
133 
134  double alpha=7.2974e-3; //finestructure constant
135 
136  // curvature of track due to magnet field
137  //double r = 3.3356 * p_t / _Bfield;
138 
139  // dip angle in phi direction (due to curvature of track in magnet field)
140  //double psi = acos(_rBarrel/(2*r));
141 
142  // path length in radiator
143  double l = _dDisc/cos(theta);// _dSlab*sqrt( 1/(sin(theta)*sin(theta)) + 1/(tan(psi)*tan(psi)) );
144 
145  // deteremine trapping fraction
146  double trapped = _trap;
147 
148  if (npid>=0 && trapfrac[npid])
149  trapped = npid<0 ? 0.0 : trapfrac[npid]->GetBinContent(trapfrac[npid]->FindBin(p<6.0?p:6.0,thtdeg));
150 
151  // estimate the number of initially produced cherenkov photons
152  double nPhot = 2*M_PI*alpha*l*(1./lambda1 - 1./lambda2)*(1 - (mass*mass+p*p)/(p*p*_nRefrac*_nRefrac));
153 
154  // dice a poisson value
155  nPhot = _rand->Poisson(nPhot);
156 
157  // determine the number of photons hitting the sensor
158  nPhot *= trapped*_effNPhotons;
159 
160  // ************** reset detected and quit due to low numbers of photons
161 
162  if (nPhot<=_nPhotMin) {
163  result->setDetected(false);
164  return result;
165  }
166 
167  if (nPhot>100) nPhot=100;
168 
169  // overall resolution for the tht_c measurement
170  double sig = _dthtc/sqrt(nPhot);
171  double thtC = compThetaC(p,mass);
172 
173  double m_e = _fdbPDG->GetParticle(11)->Mass();
174  double m_mu = _fdbPDG->GetParticle(13)->Mass();
175  double m_pi = _fdbPDG->GetParticle(211)->Mass();
176  double m_K = _fdbPDG->GetParticle(321)->Mass();
177  double m_p = _fdbPDG->GetParticle(2212)->Mass();
178 
179  // compute the expected cherenkov angles for all particle types
180  // we need these to determine the pdf's (gaussian around nominal tht_c with res sig)
181  // this Likelihood function has to be evaluated for the _measured_ momentum, which
182  // is smeared with dp!
183 
184  double measp=_rand->Gaus(p,_dp*p);
185  if (measp<0) measp=0;
186 
187  double thtc_e = compThetaC(measp,m_e);
188  double thtc_mu = compThetaC(measp,m_mu);
189  double thtc_pi = compThetaC(measp,m_pi);
190  double thtc_K = compThetaC(measp,m_K);
191  double thtc_p = compThetaC(measp,m_p);
192 
193  double measThetaC = _rand->Gaus(thtC,sig);
194  if (measThetaC<0) measThetaC=0;
195 
196  result->setDrcDiscThtc(measThetaC,sig);
197 
198  if (thtc_e) result->setLHElectron( gauss(measThetaC,thtc_e,sig) );
199  if (thtc_mu) result->setLHMuon( gauss(measThetaC,thtc_mu,sig) );
200  if (thtc_pi) result->setLHPion( gauss(measThetaC,thtc_pi,sig) );
201  if (thtc_K) result->setLHKaon( gauss(measThetaC,thtc_K,sig) );
202  if (thtc_p) result->setLHProton(gauss(measThetaC,thtc_p,sig) );
203 
204  }
205 
206  return result;
207 }
friend F32vec4 cos(const F32vec4 &a)
Definition: P4_F32vec4.h:112
void setLHElectron(double val)
TDatabasePDG * _fdbPDG
Definition: PndFsmAbsDet.h:95
void setLHProton(double val)
friend F32vec4 sqrt(const F32vec4 &a)
Definition: P4_F32vec4.h:29
void setLHMuon(double val)
TString ctht(TString pts, TString exts="px py pz")
Definition: invexp.C:179
int pid()
double charge()
Definition: PndFsmTrack.h:75
bool detected(PndFsmTrack *t) const
TRandom3 * _rand
Definition: PndFsmAbsDet.h:94
Double_t p
Definition: anasim.C:58
TLorentzVector p4()
Definition: PndFsmTrack.h:72
void setDetector(PndFsmAbsDet *detector)
void setDrcDiscThtc(double val, double err=0)
double _effNPhotons
Definition: PndFsmDrcDisc.h:95
TH2F * trapfrac[5]
Definition: PndFsmDrcDisc.h:85
void setLHKaon(double val)
friend F32vec4 fabs(const F32vec4 &a)
Definition: P4_F32vec4.h:47
double gauss(double x, double x0, double s)
double _nPhotMin
Definition: PndFsmDrcDisc.h:92
void setDetected(bool isdet)
double compThetaC(double p, double m)
double alpha
Definition: f_Init.h:9
void setLHPion(double val)
void PndFsmAbsDet::setName ( std::string &  name)
inlineinherited

Definition at line 75 of file PndFsmAbsDet.h.

References PndFsmAbsDet::_detName, and name.

Referenced by PndFsmDetFactory::create().

75 {_detName = name;};
TString name
std::string _detName
Definition: PndFsmAbsDet.h:92
bool PndFsmDrcDisc::setParameter ( std::string &  name,
double  value 
)
privatevirtual

Reimplemented from PndFsmAbsDet.

Definition at line 303 of file PndFsmDrcDisc.cxx.

References _Bfield, _dDisc, _dp, _dthtc, PndFsmAbsDet::_efficiency, _effNPhotons, _nPhotMin, _nRefrac, _pmin, _radiationLength, _thtMax, _thtMin, and _trap.

304 {
305  // *****************
306  // include here all parameters which should be settable via tcl
307  // *****************
308 
309  bool knownName=true;
310 
311  if (name == "thtMin")
312  _thtMin=value;
313  else
314  if (name == "thtMax")
315  _thtMax=value;
316  else
317  if (name == "radiationLength")
318  _radiationLength=value;
319  else
320  if (name == "pmin")
321  _pmin=value;
322  else
323  if (name == "dthtc")
324  _dthtc=value;
325  else
326  if (name == "nPhotMin")
327  _nPhotMin=value;
328  else
329  if (name == "nRefrac")
330  _nRefrac=value;
331  else
332  if (name == "Bfield")
333  _Bfield=value;
334  else
335  if (name == "effNPhotons")
336  _effNPhotons=value;
337  else
338  if (name == "dDisc")
339  _dDisc=value;
340  else
341  if (name == "dp")
342  _dp=value;
343  else
344  if (name == "trap")
345  _trap=value;
346  else
347  if (name == "efficiency")
348  _efficiency=value;
349  else
350  knownName=false;
351 
352  return knownName;
353 }
double _efficiency
Definition: PndFsmAbsDet.h:93
double _effNPhotons
Definition: PndFsmDrcDisc.h:95
TString name
double _nPhotMin
Definition: PndFsmDrcDisc.h:92
double _radiationLength
Definition: PndFsmDrcDisc.h:89
bool PndFsmDrcDisc::setParameter ( std::string &  name,
std::string &  value 
)
privatevirtual

Reimplemented from PndFsmAbsDet.

Definition at line 286 of file PndFsmDrcDisc.cxx.

References _parFileName.

287 {
288  // *****************
289  // include here all string parameters which should be settable
290  // *****************
291 
292  bool knownName=true;
293 
294  if (name == "parFileName")
295  _parFileName=value;
296  else
297  knownName=false;
298 
299  return knownName;
300 }
std::string _parFileName
Definition: PndFsmDrcDisc.h:99
TString name
void PndFsmAbsDet::setStorePid ( Bool_t  doespid = kTRUE)
inlineinherited

Definition at line 77 of file PndFsmAbsDet.h.

References PndFsmAbsDet::_doesPid.

Referenced by PndFsmDetFactory::create().

77 {_doesPid=doespid;};
Bool_t _doesPid
Definition: PndFsmAbsDet.h:96

Member Data Documentation

double PndFsmDrcDisc::_Bfield
private

Definition at line 94 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), and setParameter().

double PndFsmDrcDisc::_dDisc
private

Definition at line 96 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), respond(), and setParameter().

std::string PndFsmAbsDet::_detName
protectedinherited
Bool_t PndFsmAbsDet::_doesPid
protectedinherited
double PndFsmDrcDisc::_dp
private

Definition at line 97 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), respond(), and setParameter().

double PndFsmDrcDisc::_dthtc
private

Definition at line 91 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), respond(), and setParameter().

double PndFsmAbsDet::_efficiency
protectedinherited

Definition at line 93 of file PndFsmAbsDet.h.

Referenced by PndFsmDetTemplate::detected(), PndFsmSimpleTracker::detected(), PndFsmEmcFwCap::detected(), PndFsmSttPid::detected(), PndFsmMvd::detected(), PndFsmMdcTS::detected(), PndFsmEmcBwCap::detected(), PndFsmEmcFS::detected(), PndFsmMvd2::detected(), PndFsmMdcFS::detected(), PndFsmStt::detected(), PndFsmSimpleVtx::detected(), PndFsmTof::detected(), PndFsmMvdPid::detected(), PndFsmRich::detected(), PndFsmEmcBarrel::detected(), detected(), PndFsmMdtPid::detected(), PndFsmDrcBarrel::detected(), PndFsmEmcPid::detected(), PndFsmEffTracker::detected(), PndFsmSimpleTracker::initParameters(), PndFsmSimpleVtx::initParameters(), PndFsmDetTemplate::initParameters(), PndFsmMvdPid::initParameters(), PndFsmTof::initParameters(), PndFsmMdtPid::initParameters(), PndFsmEmcPid::initParameters(), PndFsmRich::initParameters(), PndFsmMdcFS::initParameters(), PndFsmSttPid::initParameters(), PndFsmMdcTS::initParameters(), PndFsmEmcBwCap::initParameters(), PndFsmEmcFS::initParameters(), PndFsmMvd2::initParameters(), PndFsmEmcFwCap::initParameters(), PndFsmEmcBarrel::initParameters(), initParameters(), PndFsmDrcBarrel::initParameters(), PndFsmStt::initParameters(), PndFsmMvd::initParameters(), PndFsmEffTracker::initParameters(), PndFsmSimpleTracker::print(), PndFsmSimpleVtx::print(), PndFsmDetTemplate::print(), PndFsmMvdPid::print(), PndFsmTof::print(), PndFsmMdtPid::print(), PndFsmEmcPid::print(), PndFsmMdcFS::print(), PndFsmEmcFS::print(), PndFsmMdcTS::print(), PndFsmEmcBwCap::print(), PndFsmMvd2::print(), PndFsmSttPid::print(), PndFsmEmcFwCap::print(), PndFsmRich::print(), print(), PndFsmEmcBarrel::print(), PndFsmDrcBarrel::print(), PndFsmStt::print(), PndFsmMvd::print(), PndFsmEffTracker::print(), PndFsmSimpleTracker::setParameter(), PndFsmMvdPid::setParameter(), PndFsmDetTemplate::setParameter(), PndFsmSimpleVtx::setParameter(), PndFsmMdtPid::setParameter(), PndFsmTof::setParameter(), PndFsmEmcPid::setParameter(), PndFsmMdcTS::setParameter(), PndFsmMvd2::setParameter(), PndFsmEmcFwCap::setParameter(), PndFsmSttPid::setParameter(), PndFsmMdcFS::setParameter(), PndFsmRich::setParameter(), PndFsmEmcBwCap::setParameter(), PndFsmEmcFS::setParameter(), PndFsmEmcBarrel::setParameter(), setParameter(), PndFsmDrcBarrel::setParameter(), PndFsmStt::setParameter(), PndFsmMvd::setParameter(), and PndFsmEffTracker::setParameter().

double PndFsmDrcDisc::_effNPhotons
private

Definition at line 95 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), respond(), and setParameter().

TDatabasePDG* PndFsmAbsDet::_fdbPDG
protectedinherited
double PndFsmDrcDisc::_nPhotMin
private

Definition at line 92 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), respond(), and setParameter().

double PndFsmDrcDisc::_nRefrac
private

Definition at line 93 of file PndFsmDrcDisc.h.

Referenced by compThetaC(), detected(), initParameters(), print(), respond(), and setParameter().

std::string PndFsmDrcDisc::_parFileName
private

Definition at line 99 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), readParameters(), and setParameter().

double PndFsmDrcDisc::_pmin
private

Definition at line 90 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), and setParameter().

double PndFsmDrcDisc::_radiationLength
private

Definition at line 89 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), and setParameter().

TRandom3* PndFsmAbsDet::_rand
protectedinherited
double PndFsmDrcDisc::_thtMax
private

Definition at line 88 of file PndFsmDrcDisc.h.

Referenced by initParameters(), PndFsmDrcDisc(), print(), and setParameter().

double PndFsmDrcDisc::_thtMin
private

Definition at line 87 of file PndFsmDrcDisc.h.

Referenced by detected(), initParameters(), PndFsmDrcDisc(), print(), and setParameter().

double PndFsmDrcDisc::_trap
private

Definition at line 98 of file PndFsmDrcDisc.h.

Referenced by initParameters(), print(), readParameters(), respond(), and setParameter().

TH2F* PndFsmDrcDisc::trapfrac[5]
private

Definition at line 85 of file PndFsmDrcDisc.h.

Referenced by readParameters(), and respond().


The documentation for this class was generated from the following files: