CMS 3D CMS Logo

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

#include <CosmicMuonGenerator.h>

Public Member Functions

 CosmicMuonGenerator ()
 
double getRate ()
 
void initialize (CLHEP::HepRandomEngine *rng=0)
 
void nextEvent ()
 
bool nextMultiEvent ()
 
void runCMG ()
 
void setAcptAllMu (bool AllMu)
 
void setClayWidth (double ClayLaeyrWidth)
 
void setElossScaleFactor (double ElossScaleFact)
 
void setMaxEnu (double MaxEn)
 
void setMaxP (double P)
 
void setMaxPhi (double Phi)
 
void setMaxT0 (double T0)
 
void setMaxTheta (double Theta)
 
void setMinEnu (double MinEn)
 
void setMinP (double P)
 
void setMinP_CMS (double P)
 
void setMinPhi (double Phi)
 
void setMinT0 (double T0)
 
void setMinTheta (double Theta)
 
void setMTCCHalf (bool MTCC)
 
void setMultiMuon (bool MultiMu)
 
void setMultiMuonFileFirstEvent (int MultiMuFile1stEvt)
 
void setMultiMuonFileName (std::string MultiMuonFileName)
 
void setMultiMuonNmin (int MultiMuNmin)
 
void setNumberOfEvents (unsigned int N)
 
void setNuProdAlt (double NuPrdAlt)
 
void setPlugVx (double PlugVtx)
 
void setPlugVz (double PlugVtz)
 
void setRadiusOfTarget (double R)
 
void setRandomEngine (CLHEP::HepRandomEngine *v)
 
void setRanSeed (int N)
 
void setRhoAir (double VarRhoAir)
 
void setRhoClay (double VarRhoClay)
 
void setRhoPlug (double VarRhoPlug)
 
void setRhoRock (double VarRhoRock)
 
void setRhoWall (double VarRhoSWall)
 
void setTIFOnly_constant (bool TIF)
 
void setTIFOnly_linear (bool TIF)
 
void setTrackerOnly (bool Tracker)
 
void setZCentrOfTarget (double Z)
 
void setZDistOfTarget (double Z)
 
void terminate ()
 
 ~CosmicMuonGenerator ()
 

Public Attributes

double E_at
 
std::vector< double > E_sf
 
std::vector< double > E_ug
 
double EventWeight
 
int Id_at
 
std::vector< int > Id_sf
 
std::vector< int > Id_ug
 
SingleParticleEvent OneMuoEvt
 
std::vector< double > P_mu
 
double Px_at
 
std::vector< double > Px_mu
 
std::vector< double > Px_sf
 
std::vector< double > Px_ug
 
double Py_at
 
std::vector< double > Py_mu
 
std::vector< double > Py_sf
 
std::vector< double > Py_ug
 
double Pz_at
 
std::vector< double > Pz_mu
 
std::vector< double > Pz_sf
 
std::vector< double > Pz_ug
 
double T0_at
 
std::vector< double > T0_sf
 
std::vector< double > T0_ug
 
double Theta_at
 
std::vector< double > Theta_mu
 
double Trials
 
double Vx_at
 
std::vector< double > Vx_mu
 
std::vector< double > Vx_sf
 
std::vector< double > Vx_ug
 
double Vxz_mu
 
double Vy_at
 
std::vector< double > Vy_mu
 
std::vector< double > Vy_sf
 
std::vector< double > Vy_ug
 
double Vz_at
 
std::vector< double > Vz_mu
 
std::vector< double > Vz_sf
 
std::vector< double > Vz_ug
 

Private Member Functions

void checkIn ()
 
void displayEv ()
 
bool goodOrientation ()
 
void initEvDis ()
 

Private Attributes

bool AcptAllMu
 
double ClayWidth
 
CMSCGENCosmics
 
bool delRanGen
 
double ElossScaleFactor
 
double EventRate
 
double MaxEnu
 
double MaxP
 
double MaxPhi
 
double MaxT0
 
double MaxTheta
 
double MinEnu
 
double MinP
 
double MinP_CMS
 
double MinPhi
 
double MinT0
 
double MinTheta
 
bool MTCCHalf
 
TFile * MultiIn
 
bool MultiMuon
 
int MultiMuonFileFirstEvent
 
std::string MultiMuonFileName
 
int MultiMuonNmin
 
TTree * MultiTree
 
int NcloseMultiMuonEvents
 
double Ndiced
 
double Ngen
 
CMSCGENnormNorm
 
bool NotInitialized
 
double Nsel
 
int NskippedMultiMuonEvents
 
unsigned int NumberOfEvents
 
double NuProdAlt
 
double PlugVx
 
double PlugVz
 
double RadiusOfTarget
 
CLHEP::HepRandomEngine * RanGen
 
int RanSeed
 
double rateErr_stat
 
double rateErr_syst
 
double RhoAir
 
double RhoClay
 
double RhoPlug
 
double RhoRock
 
double RhoWall
 
simSimTree
 
ULong64_t SimTree_jentry
 
ULong64_t SimTreeEntries
 
double SumIntegrals
 
double SurfaceRadius
 
double Target3dRadius
 
bool TIFOnly_constant
 
bool TIFOnly_linear
 
bool TrackerOnly
 
double ZCentrOfTarget
 
double ZDistOfTarget
 

Detailed Description

Definition at line 31 of file CosmicMuonGenerator.h.

Constructor & Destructor Documentation

CosmicMuonGenerator::CosmicMuonGenerator ( )
inline

Definition at line 34 of file CosmicMuonGenerator.h.

CosmicMuonGenerator::~CosmicMuonGenerator ( )
inline

Definition at line 101 of file CosmicMuonGenerator.h.

Member Function Documentation

void CosmicMuonGenerator::checkIn ( )
private

Definition at line 876 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::displayEv ( )
private

Definition at line 987 of file CosmicMuonGenerator.cc.

double CosmicMuonGenerator::getRate ( )

Definition at line 1082 of file CosmicMuonGenerator.cc.

bool CosmicMuonGenerator::goodOrientation ( )
private

Definition at line 908 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::initEvDis ( )
private

Definition at line 944 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::initialize ( CLHEP::HepRandomEngine *  rng = 0)

Definition at line 26 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::nextEvent ( )

Definition at line 110 of file CosmicMuonGenerator.cc.

bool CosmicMuonGenerator::nextMultiEvent ( )

Definition at line 251 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::runCMG ( )

Definition at line 12 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setAcptAllMu ( bool  AllMu)

Definition at line 1084 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setClayWidth ( double  ClayLaeyrWidth)

Definition at line 1076 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setElossScaleFactor ( double  ElossScaleFact)

Definition at line 1049 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMaxEnu ( double  MaxEn)

Definition at line 1079 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMaxP ( double  P)

Definition at line 1035 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMaxPhi ( double  Phi)

Definition at line 1043 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMaxT0 ( double  T0)

Definition at line 1047 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMaxTheta ( double  Theta)

Definition at line 1039 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinEnu ( double  MinEn)

Definition at line 1078 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinP ( double  P)

Definition at line 1031 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinP_CMS ( double  P)

Definition at line 1033 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinPhi ( double  Phi)

Definition at line 1041 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinT0 ( double  T0)

Definition at line 1045 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMinTheta ( double  Theta)

Definition at line 1037 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMTCCHalf ( bool  MTCC)

Definition at line 1067 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMultiMuon ( bool  MultiMu)

Definition at line 1059 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMultiMuonFileFirstEvent ( int  MultiMuFile1stEvt)

Definition at line 1061 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMultiMuonFileName ( std::string  MultiMuonFileName)

Definition at line 1060 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setMultiMuonNmin ( int  MultiMuNmin)

Definition at line 1062 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setNumberOfEvents ( unsigned int  N)

Definition at line 1027 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setNuProdAlt ( double  NuPrdAlt)

Definition at line 1080 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setPlugVx ( double  PlugVtx)

Definition at line 1069 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setPlugVz ( double  PlugVtz)

Definition at line 1070 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRadiusOfTarget ( double  R)

Definition at line 1051 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRandomEngine ( CLHEP::HepRandomEngine *  v)

Definition at line 18 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRanSeed ( int  N)

Definition at line 1029 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRhoAir ( double  VarRhoAir)

Definition at line 1071 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRhoClay ( double  VarRhoClay)

Definition at line 1074 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRhoPlug ( double  VarRhoPlug)

Definition at line 1075 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRhoRock ( double  VarRhoRock)

Definition at line 1073 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setRhoWall ( double  VarRhoSWall)

Definition at line 1072 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setTIFOnly_constant ( bool  TIF)

Definition at line 1064 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setTIFOnly_linear ( bool  TIF)

Definition at line 1066 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setTrackerOnly ( bool  Tracker)

Definition at line 1057 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setZCentrOfTarget ( double  Z)

Definition at line 1055 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::setZDistOfTarget ( double  Z)

Definition at line 1053 of file CosmicMuonGenerator.cc.

void CosmicMuonGenerator::terminate ( void  )

Definition at line 786 of file CosmicMuonGenerator.cc.

Member Data Documentation

bool CosmicMuonGenerator::AcptAllMu
private

Definition at line 214 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::ClayWidth
private

Definition at line 206 of file CosmicMuonGenerator.h.

CMSCGEN* CosmicMuonGenerator::Cosmics
private

Definition at line 161 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::delRanGen
private

Definition at line 219 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::E_at

Definition at line 118 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::E_sf

Definition at line 133 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::E_ug

Definition at line 140 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::ElossScaleFactor
private

Definition at line 174 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::EventRate
private

Definition at line 187 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::EventWeight

Definition at line 113 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::Id_at

Definition at line 116 of file CosmicMuonGenerator.h.

std::vector<int> CosmicMuonGenerator::Id_sf

Definition at line 131 of file CosmicMuonGenerator.h.

std::vector<int> CosmicMuonGenerator::Id_ug

Definition at line 138 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MaxEnu
private

Definition at line 211 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MaxP
private

Definition at line 167 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MaxPhi
private

Definition at line 171 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MaxT0
private

Definition at line 173 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MaxTheta
private

Definition at line 169 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinEnu
private

Definition at line 210 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinP
private

Definition at line 165 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinP_CMS
private

Definition at line 166 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinPhi
private

Definition at line 170 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinT0
private

Definition at line 172 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::MinTheta
private

Definition at line 168 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::MTCCHalf
private

Definition at line 185 of file CosmicMuonGenerator.h.

TFile* CosmicMuonGenerator::MultiIn
private

Definition at line 149 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::MultiMuon
private

Definition at line 179 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::MultiMuonFileFirstEvent
private

Definition at line 181 of file CosmicMuonGenerator.h.

std::string CosmicMuonGenerator::MultiMuonFileName
private

Definition at line 180 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::MultiMuonNmin
private

Definition at line 182 of file CosmicMuonGenerator.h.

TTree* CosmicMuonGenerator::MultiTree
private

Definition at line 150 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::NcloseMultiMuonEvents
private

Definition at line 154 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Ndiced
private

Definition at line 194 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Ngen
private

Definition at line 192 of file CosmicMuonGenerator.h.

CMSCGENnorm* CosmicMuonGenerator::Norm
private

Definition at line 159 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::NotInitialized
private

Definition at line 221 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Nsel
private

Definition at line 193 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::NskippedMultiMuonEvents
private

Definition at line 155 of file CosmicMuonGenerator.h.

unsigned int CosmicMuonGenerator::NumberOfEvents
private

Definition at line 163 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::NuProdAlt
private

Definition at line 212 of file CosmicMuonGenerator.h.

SingleParticleEvent CosmicMuonGenerator::OneMuoEvt

Definition at line 111 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::P_mu

Definition at line 126 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::PlugVx
private

Definition at line 197 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::PlugVz
private

Definition at line 198 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Px_at

Definition at line 117 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Px_mu

Definition at line 125 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Px_sf

Definition at line 132 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Px_ug

Definition at line 139 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Py_at

Definition at line 117 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Py_mu

Definition at line 125 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Py_sf

Definition at line 132 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Py_ug

Definition at line 139 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Pz_at

Definition at line 117 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Pz_mu

Definition at line 125 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Pz_sf

Definition at line 132 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Pz_ug

Definition at line 139 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RadiusOfTarget
private

Definition at line 175 of file CosmicMuonGenerator.h.

CLHEP::HepRandomEngine* CosmicMuonGenerator::RanGen
private

Definition at line 218 of file CosmicMuonGenerator.h.

int CosmicMuonGenerator::RanSeed
private

Definition at line 164 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::rateErr_stat
private

Definition at line 188 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::rateErr_syst
private

Definition at line 189 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RhoAir
private

Definition at line 201 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RhoClay
private

Definition at line 204 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RhoPlug
private

Definition at line 205 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RhoRock
private

Definition at line 203 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::RhoWall
private

Definition at line 202 of file CosmicMuonGenerator.h.

sim* CosmicMuonGenerator::SimTree
private

Definition at line 151 of file CosmicMuonGenerator.h.

ULong64_t CosmicMuonGenerator::SimTree_jentry
private

Definition at line 153 of file CosmicMuonGenerator.h.

ULong64_t CosmicMuonGenerator::SimTreeEntries
private

Definition at line 152 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::SumIntegrals
private

Definition at line 191 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::SurfaceRadius
private

Definition at line 196 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::T0_at

Definition at line 121 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::T0_sf

Definition at line 136 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::T0_ug

Definition at line 143 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Target3dRadius
private

Definition at line 195 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Theta_at

Definition at line 122 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Theta_mu

Definition at line 129 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::TIFOnly_constant
private

Definition at line 183 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::TIFOnly_linear
private

Definition at line 184 of file CosmicMuonGenerator.h.

bool CosmicMuonGenerator::TrackerOnly
private

Definition at line 178 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Trials

Definition at line 114 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Vx_at

Definition at line 120 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vx_mu

Definition at line 127 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vx_sf

Definition at line 135 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vx_ug

Definition at line 142 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Vxz_mu

Definition at line 128 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Vy_at

Definition at line 120 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vy_mu

Definition at line 127 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vy_sf

Definition at line 135 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vy_ug

Definition at line 142 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::Vz_at

Definition at line 120 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vz_mu

Definition at line 127 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vz_sf

Definition at line 135 of file CosmicMuonGenerator.h.

std::vector<double> CosmicMuonGenerator::Vz_ug

Definition at line 142 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::ZCentrOfTarget
private

Definition at line 177 of file CosmicMuonGenerator.h.

double CosmicMuonGenerator::ZDistOfTarget
private

Definition at line 176 of file CosmicMuonGenerator.h.