#include <VP1CaloCells.h>
|
| | VP1CC_LArEMB (const CaloCell *caloCell, const VP1CC_SeparatorMap *separators) |
| virtual | ~VP1CC_LArEMB () |
| virtual void | build3DObjects (VP1CC_SoNode2CCMap *node2cc, bool useEt, const QPair< bool, double > &scale, bool outline, const VP1CC_GlobalCuts &) |
| std::vector< std::string > | ToString (const CaloCell_ID *calo_id, const std::string &extrainfos="") |
| virtual void | remove3DObjects (VP1CC_SoNode2CCMap *node2cc) |
| double | energyToTransverse (const double &) const |
| bool | cutPassed (const VP1CC_GlobalCuts &globalCuts) |
| const CaloCell * | getCaloCell () |
| Identifier | getID () |
| void | updateScene (VP1CC_SoNode2CCMap *node2cc, bool useEt, const QPair< bool, double > &scale, bool outline, const VP1CC_GlobalCuts &globalCuts) |
| double | cellDepth (const QPair< bool, double > &scale, const double &energy) |
| virtual bool | isInsideClipVolume (const VP1CC_GlobalCuts &globalCuts) |
Definition at line 229 of file VP1CaloCells.h.
◆ VP1CC_LArEMB()
Definition at line 137 of file VP1CaloCells.cxx.
138 :
140{
141
142 if(!separators)
143 throw std::runtime_error("VP1CC_LArEMB: 0 pointer to VP1CC Separator Map");
144
148 else
150
151
152 VP1CC_SeparatorMap::const_iterator
it =
separators->find(mySeparatorType);
154 throw std::runtime_error("VP1CC_LArEMB: Missing separator helper in the map");
155
157
159 throw std::runtime_error("VP1CC_LArEMB: 0 pointer to separator helper");
160}
double energy() const
get energy (data member)
VP1ExtraSepLayerHelper * m_helper
VP1CC_LAr(const CaloCell *caloCell)
◆ ~VP1CC_LArEMB()
| VP1CC_LArEMB::~VP1CC_LArEMB |
( |
| ) |
|
|
virtual |
◆ build3DObjects()
Implements VP1CaloCell.
Definition at line 166 of file VP1CaloCells.cxx.
171{
172 bool createNewHit = false;
174 m_hit =
new SoGenericBox();
175 createNewHit = true;
176 }
177
178
179 const CaloDetDescrElement* ddElement =
m_caloCell->caloDDE();
180
181
182 double eta = ddElement->
eta();
183 double deta = ddElement->
deta()*0.5;
184 double phi = ddElement->
phi();
185 double dphi = ddElement->
dphi()*0.5;
186 double radius = ddElement->
r();
188
189 double z = std::fabs(ddElement->
z());
190 double radialDistance = sqrt(radius*radius +
z*
z);
191
194
195
196
198 depth, radius, 0.9, 0.9 );
199 m_hit->drawEdgeLines = outline;
200
201 if(createNewHit) {
203 (*node2cc)[
m_hit] =
this;
204 }
205}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
float dphi() const
cell dphi
float eta() const
cell eta
float phi() const
cell phi
float deta() const
cell deta
const CaloCell * m_caloCell
double energyToTransverse(const double &) const
double cellDepth(const QPair< bool, double > &scale, const double &energy)
std::string depth
tag string for intendation
◆ cellDepth()
| double VP1CaloCell::cellDepth |
( |
const QPair< bool, double > & | scale, |
|
|
const double & | energy ) |
|
inlineinherited |
Definition at line 189 of file VP1CaloCells.h.
190 {
return std::max(1.0*Gaudi::Units::mm,
scale.second*(
scale.first?
log(1+fabs(energy)):fabs(energy))); }
◆ cutPassed()
Definition at line 63 of file VP1CaloCells.cxx.
64{
65
68
69
70 }
71
72
77
79 for(
const VP1Interval& i : globalCuts.
allowedPhi){
84 break;
85 }
86 }
88}
QList< VP1Interval > allowedPhi
virtual bool isInsideClipVolume(const VP1CC_GlobalCuts &globalCuts)
bool contains(const double &x) const
◆ energyToTransverse()
| double VP1CaloCell::energyToTransverse |
( |
const double & | e | ) |
const |
|
inherited |
◆ getCaloCell()
| const CaloCell * VP1CaloCell::getCaloCell |
( |
| ) |
|
|
inherited |
◆ getID()
◆ isInsideClipVolume()
◆ remove3DObjects()
◆ ToString()
| std::vector< std::string > VP1CC_LArEMB::ToString |
( |
const CaloCell_ID * | calo_id, |
|
|
const std::string & | extrainfos = "" ) |
|
virtual |
Implements VP1CaloCell.
Definition at line 207 of file VP1CaloCells.cxx.
208{
209 std::vector<std::string>
result;
210 const CaloDetDescrElement* ddElement =
m_caloCell->caloDDE();
211 std::ostringstream
msg, msg1, msg2, msg3;
212
213 std::string stars("***");
215
216 msg <<
"LAr EMB. ID = " <<
m_caloCell->ID().getString() <<
" " << extrainfos;
217
218 msg1 <<
" Eta = " << ddElement->
eta()
219 <<
" Phi = " << ddElement->
phi();
220
221 msg2 <<
"Energy = " <<
m_caloCell->energy() <<
" (Mev)"
223
226 <<
" Provenance = " <<
m_caloCell->provenance();
227
229 result.push_back(msg1.str());
230 result.push_back(msg2.str());
231 result.push_back(msg3.str());
232
235}
◆ updateScene()
Definition at line 99 of file VP1CaloCells.cxx.
104{
107 else
109}
virtual void remove3DObjects(VP1CC_SoNode2CCMap *node2cc)=0
bool cutPassed(const VP1CC_GlobalCuts &globalCuts)
virtual void build3DObjects(VP1CC_SoNode2CCMap *node2cc, bool useEt, const QPair< bool, double > &scale, bool outline, const VP1CC_GlobalCuts &)=0
◆ m_caloCell
◆ m_helper
◆ m_hit
The documentation for this class was generated from the following files: