FairRoot/PandaRoot
PndMvdDetector.cxx
Go to the documentation of this file.
1 #include "PndMvdDetector.h"
2 
3 #include "TClonesArray.h"
4 
5 // ----- Default constructor -------------------------------------------
8 }
9 // -------------------------------------------------------------------------
10 
11 // ----- Standard constructor ------------------------------------------
13  : PndSdsDetector(name, active) {
15 }
16 // -------------------------------------------------------------------------
17 
19  fListOfSensitives.push_back("Disk-Sensor");//Root_Test.root
20  fListOfSensitives.push_back("Barrel-Sensor");//Root_Test.root
21  fListOfSensitives.push_back("PixelSensorActive");
22  fListOfSensitives.push_back("StripSensorActive");
23  fListOfSensitives.push_back("StripSensor");//MVD14.root
24  fListOfSensitives.push_back("SensorActiveArea");//MVD14.root
25  fListOfSensitives.push_back("StripActive");//MVD_v1.0.root
26  fListOfSensitives.push_back("PixelActive");//MVD_v1.0.root
27  fListOfSensitives.push_back("TrapAddDisks");
28  fListOfSensitives.push_back("TestHCal");//tracking station
29  fListOfSensitives.push_back("StripSensorActiveSmallTrap");//LambdaDisks
30  fListOfSensitives.push_back("StripSensorActiveLargeTrap");//LambdaDisks
31  fListOfSensitives.push_back("EpiSensorVolume");//MVD TB
32 
33  if (fVerboseLevel>0) {
34  std::cout<<"- I - PndMvdDetector: fListOfSensitives contains:";
35  for(UInt_t k=0;k<fListOfSensitives.size();k++)
36  std::cout<<"\n\t"<<fListOfSensitives[k];
37  std::cout<<std::endl;
38  }
39 }
40 
41 
42 // ----- Destructor ----------------------------------------------------
44 {
45 
46 }
47 
48 // -------------------------------------------------------------------------
49 void PndMvdDetector::SetBranchNames(TString outBranchname, TString folderName)
50 {
51  fOutBranchName = outBranchname;
52  fFolderName = folderName;
53 }
54 
55 // -------------------------------------------------------------------------
57 {
58  fOutBranchName = "MVDPoint";
59  fFolderName = "PndMvd";
60 }
61 
62 // -------------------------------------------------------------------------
63 //overwrite virtual method of FairDetector
65 {
66  // Switched off, default of the MC engine is used
67  return;
68 
69  //for using G4 user limits call gMC->SetUserParameters(true); and set the properties in the Mediafile
70 
71  // TODO: Study the effects of cuts.
72 // FairRun* fRun = FairRun::Instance();
73 //
74 // //check for GEANT3, else abort
75 // if (strcmp(fRun->GetName(),"TGeant3") == 0) {
76 //
77 // //get material ID for customs settings
78 // int matIdVMC = gGeoManager->GetMedium("silicon")->GetId();
79 //
80 // //double cut_el = 1.0E-5; // (GeV)
81 // //double cut_had = 1.0E-3; // (GeV)
82 // double tofmax = 1.E10; // (s)
83 //
84 // // Set new properties, physics cuts etc. for the TPCmixture
85 // gMC->Gstpar(matIdVMC,"PAIR",1); /** pair production*/
86 // gMC->Gstpar(matIdVMC,"COMP",1); /**Compton scattering*/
87 // gMC->Gstpar(matIdVMC,"PHOT",1); /** photo electric effect */
88 // gMC->Gstpar(matIdVMC,"PFIS",0); /**photofission*/
89 // gMC->Gstpar(matIdVMC,"DRAY",1); /**delta-ray*/
90 // gMC->Gstpar(matIdVMC,"ANNI",1); /**annihilation*/
91 // gMC->Gstpar(matIdVMC,"BREM",1); /**bremsstrahlung*/
92 // gMC->Gstpar(matIdVMC,"HADR",1); /**hadronic process*/
93 // gMC->Gstpar(matIdVMC,"MUNU",1); /**muon nuclear interaction*/
94 // gMC->Gstpar(matIdVMC,"DCAY",1); /**decay*/
95 // gMC->Gstpar(matIdVMC,"LOSS",1); /**energy loss*/
96 // gMC->Gstpar(matIdVMC,"MULS",1); /**multiple scattering*/
97 // gMC->Gstpar(matIdVMC,"STRA",0);
98 // gMC->Gstpar(matIdVMC,"RAYL",1);
99 //
100 // gMC->Gstpar(matIdVMC,"CUTGAM",fCut_el); /** gammas (GeV)*/
101 // gMC->Gstpar(matIdVMC,"CUTELE",fCut_el); /** electrons (GeV)*/
102 // gMC->Gstpar(matIdVMC,"CUTNEU",fCut_had); /** neutral hadrons (GeV)*/
103 // gMC->Gstpar(matIdVMC,"CUTHAD",fCut_had); /** charged hadrons (GeV)*/
104 // gMC->Gstpar(matIdVMC,"CUTMUO",fCut_el); /** muons (GeV)*/
105 // gMC->Gstpar(matIdVMC,"BCUTE",fCut_el); /** electron bremsstrahlung (GeV)*/
106 // gMC->Gstpar(matIdVMC,"BCUTM",fCut_el); /** muon and hadron bremsstrahlung(GeV)*/
107 // gMC->Gstpar(matIdVMC,"DCUTE",fCut_el); /** delta-rays by electrons (GeV)*/
108 // gMC->Gstpar(matIdVMC,"DCUTM",fCut_el); /** delta-rays by muons (GeV)*/
109 // gMC->Gstpar(matIdVMC,"PPCUTM",fCut_el); /** direct pair production by muons (GeV)*/
110 //
111 // gMC->SetMaxNStep(1E6);
112 //
113 // Info("SetSpecialPhysicsCuts()","Using special physics cuts in MVD Sensors.");
114 // }
115 }
116 
117 
118 
119 
120 
virtual ~PndMvdDetector()
virtual void SetDefaultSensorNames()
std::vector< std::string > fListOfSensitives
To be set by daughter classes.
virtual void SetSpecialPhysicsCuts()
void SetDetectorID(DetectorId id)
TString name
ClassImp(PndAnaContFact)
TString fOutBranchName
enables the detection of neutral particles
virtual void SetBranchNames()
TString fFolderName
To be set by daughter classes.