|
ATLAS Offline Software
|
#include <CSC_RDOAnalysis.h>
|
| CSC_RDOAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~CSC_RDOAnalysis () |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | execute () override final |
|
virtual StatusCode | finalize () override final |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 24 of file CSC_RDOAnalysis.h.
◆ StoreGateSvc_t
◆ CSC_RDOAnalysis()
CSC_RDOAnalysis::CSC_RDOAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CSC_RDOAnalysis()
CSC_RDOAnalysis::~CSC_RDOAnalysis |
( |
| ) |
|
|
inline |
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode CSC_RDOAnalysis::execute |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 249 of file CSC_RDOAnalysis.cxx.
295 if(p_CSCcont.isValid()) {
299 for ( ; cscCont_itr != cscCont_end; ++cscCont_itr ) {
301 const uint16_t collID((*cscCont_itr)->identify());
302 const uint16_t rodID((*cscCont_itr)->rodId());
303 const uint16_t subID((*cscCont_itr)->subDetectorId());
304 const std::vector<uint16_t>& collRpuID = (*cscCont_itr)->rpuID();
305 const std::vector<uint8_t>&
dataType = (*cscCont_itr)->dataType();
311 for (std::vector<uint16_t>::size_type
i = 0;
i != collRpuID.size(); ++
i) {
315 for (std::vector<uint8_t>::size_type j = 0; j !=
dataType.size(); ++j) {
320 m_smplPhase->push_back((*cscCont_itr)->samplingPhase());
321 m_trigType->push_back((*cscCont_itr)->triggerType());
323 m_eventType->push_back((*cscCont_itr)->eventType());
324 m_calAmp->push_back((*cscCont_itr)->calAmplitude());
325 m_calLayer->push_back((*cscCont_itr)->calLayer());
326 m_scaAdd->push_back((*cscCont_itr)->scaAddress());
327 m_numSmpl->push_back((*cscCont_itr)->numSamples());
328 m_latency->push_back((*cscCont_itr)->latency());
329 m_rate->push_back((*cscCont_itr)->rate());
330 m_sparse->push_back((*cscCont_itr)->sparsified());
331 m_neutron->push_back((*cscCont_itr)->neutron());
332 m_calEn->push_back((*cscCont_itr)->calEnabled());
334 for (
unsigned int k = 0;
k != 10; ++
k) {
335 m_spuCt->push_back((*cscCont_itr)->spuCount(
k));
346 for ( ; csc_itr != csc_end; ++csc_itr ) {
348 const uint16_t cscRpuID((*csc_itr)->rpuID());
349 const uint16_t cscID((*csc_itr)->identify());
350 const uint16_t cscTime((*csc_itr)->time());
351 const uint16_t cscWidth((*csc_itr)->width());
352 const bool cscTimeComp((*csc_itr)->isTimeComputed());
353 const std::vector<uint16_t> cscSmpl_vec((*csc_itr)->samples());
354 const uint32_t cscAdd((*csc_itr)->address());
355 const uint32_t cscHashID((*csc_itr)->hashId());
370 for (std::vector<uint16_t>::size_type
l = 0;
l != cscSmpl_vec.size(); ++
l) {
381 if(simDataMapCSC.isValid()) {
382 CscSimDataCollection::const_iterator sdo_itr(simDataMapCSC->begin());
383 const CscSimDataCollection::const_iterator sdo_end(simDataMapCSC->end());
385 std::vector<int> barcode_vec;
386 std::vector<int> eventIndex_vec;
387 std::vector<float> energy_vec;
388 std::vector<float> ypos_vec;
389 std::vector<float> zpos_vec;
390 std::vector<float> charge_vec;
391 for ( ; sdo_itr != sdo_end; ++sdo_itr ) {
395 const unsigned long long sdoID_int = sdoID.get_compact();
396 const int sdoWord(sdo.word());
402 const std::vector<CscSimData::Deposit>& deposits = sdo.getdeposits();
403 std::vector<CscSimData::Deposit>::const_iterator dep_itr(deposits.begin());
404 const std::vector<CscSimData::Deposit>::const_iterator dep_end(deposits.end());
405 for ( ; dep_itr != dep_end; ++dep_itr ) {
410 const float sdoEnergy(
data.energy());
411 const float sdoYpos(
data.ypos());
412 const float sdoZpos(
data.zpos());
413 const float sdoCharge(
data.charge());
418 m_ypos->push_back(sdoYpos);
419 m_zpos->push_back(sdoZpos);
429 barcode_vec.push_back(
bar);
430 eventIndex_vec.push_back(eventIx);
431 energy_vec.push_back(sdoEnergy);
432 ypos_vec.push_back(sdoYpos);
433 zpos_vec.push_back(sdoZpos);
434 charge_vec.push_back(sdoCharge);
443 eventIndex_vec.clear();
455 return StatusCode::SUCCESS;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode CSC_RDOAnalysis::finalize |
( |
| ) |
|
|
finaloverridevirtual |
◆ initialize()
StatusCode CSC_RDOAnalysis::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 100 of file CSC_RDOAnalysis.cxx.
166 m_h_rodID =
new TH1F(
"h_rodID",
"Collection ROD ID", 100, 0, 150);
170 m_h_subID =
new TH1F(
"h_subID",
"Collection Sub-Detector ID", 100, 0, 110);
182 m_h_spuCt =
new TH1F(
"h_spuCt",
"Collection SPU count", 100, 0, 20);
190 m_h_cscID =
new TH1F(
"h_cscID",
"ID of strip collection", 100, 0, 35);
194 m_h_cscTime =
new TH1F(
"h_cscTime",
"Time of first strip", 100, 0, 10);
198 m_h_cscWidth =
new TH1F(
"h_cscWidth",
"Width of strip cluster", 100, 0, 35);
206 m_h_cscAdd =
new TH1F(
"h_cscAdd",
"ID of first strip", 100, 0, 1.5e5);
210 m_h_cscHashID =
new TH1F(
"h_cscHashID",
"hash ID of strip collection", 100, 0, 65000);
234 m_h_ypos =
new TH1F(
"h_ypos",
"y-position (SDO)", 100, -1e5, 1e5);
238 m_h_zpos =
new TH1F(
"h_zpos",
"z-position (SDO)", 100, -1e5, 1e5);
246 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_barcode
std::vector<int>* CSC_RDOAnalysis::m_barcode |
|
private |
◆ m_barcode_vec
std::vector< std::vector<int> >* CSC_RDOAnalysis::m_barcode_vec |
|
private |
◆ m_calAmp
std::vector<uint8_t>* CSC_RDOAnalysis::m_calAmp |
|
private |
◆ m_calEn
std::vector<bool>* CSC_RDOAnalysis::m_calEn |
|
private |
◆ m_calLayer
std::vector<uint8_t>* CSC_RDOAnalysis::m_calLayer |
|
private |
◆ m_charge
std::vector<float>* CSC_RDOAnalysis::m_charge |
|
private |
◆ m_charge_vec
std::vector< std::vector<float> >* CSC_RDOAnalysis::m_charge_vec |
|
private |
◆ m_collID
std::vector<uint16_t>* CSC_RDOAnalysis::m_collID |
|
private |
◆ m_collRpuID
std::vector<uint16_t>* CSC_RDOAnalysis::m_collRpuID |
|
private |
◆ m_cscAdd
std::vector<uint32_t>* CSC_RDOAnalysis::m_cscAdd |
|
private |
◆ m_cscHashID
std::vector<uint32_t>* CSC_RDOAnalysis::m_cscHashID |
|
private |
◆ m_cscID
std::vector<uint16_t>* CSC_RDOAnalysis::m_cscID |
|
private |
◆ m_cscRpuID
std::vector<uint16_t>* CSC_RDOAnalysis::m_cscRpuID |
|
private |
◆ m_cscSmpl
std::vector< std::vector<uint16_t> >* CSC_RDOAnalysis::m_cscSmpl |
|
private |
◆ m_cscTime
std::vector<uint16_t>* CSC_RDOAnalysis::m_cscTime |
|
private |
◆ m_cscTimeComp
std::vector<bool>* CSC_RDOAnalysis::m_cscTimeComp |
|
private |
◆ m_cscWidth
std::vector<uint16_t>* CSC_RDOAnalysis::m_cscWidth |
|
private |
◆ m_dataType
std::vector<uint8_t>* CSC_RDOAnalysis::m_dataType |
|
private |
◆ m_detStore
◆ m_energy
std::vector<float>* CSC_RDOAnalysis::m_energy |
|
private |
◆ m_energy_vec
std::vector< std::vector<float> >* CSC_RDOAnalysis::m_energy_vec |
|
private |
◆ m_eventIndex
std::vector<int>* CSC_RDOAnalysis::m_eventIndex |
|
private |
◆ m_eventIndex_vec
std::vector< std::vector<int> >* CSC_RDOAnalysis::m_eventIndex_vec |
|
private |
◆ m_eventType
std::vector<uint32_t>* CSC_RDOAnalysis::m_eventType |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_firstBitSum
std::vector<uint8_t>* CSC_RDOAnalysis::m_firstBitSum |
|
private |
◆ m_h_barcode
TH1* CSC_RDOAnalysis::m_h_barcode |
|
private |
◆ m_h_charge
TH1* CSC_RDOAnalysis::m_h_charge |
|
private |
◆ m_h_collID
TH1* CSC_RDOAnalysis::m_h_collID |
|
private |
◆ m_h_collRpuID
TH1* CSC_RDOAnalysis::m_h_collRpuID |
|
private |
◆ m_h_cscAdd
TH1* CSC_RDOAnalysis::m_h_cscAdd |
|
private |
◆ m_h_cscHashID
TH1* CSC_RDOAnalysis::m_h_cscHashID |
|
private |
◆ m_h_cscID
TH1* CSC_RDOAnalysis::m_h_cscID |
|
private |
◆ m_h_cscRpuID
TH1* CSC_RDOAnalysis::m_h_cscRpuID |
|
private |
◆ m_h_cscSmpl
TH1* CSC_RDOAnalysis::m_h_cscSmpl |
|
private |
◆ m_h_cscTime
TH1* CSC_RDOAnalysis::m_h_cscTime |
|
private |
◆ m_h_cscWidth
TH1* CSC_RDOAnalysis::m_h_cscWidth |
|
private |
◆ m_h_dataType
TH1* CSC_RDOAnalysis::m_h_dataType |
|
private |
◆ m_h_energy
TH1* CSC_RDOAnalysis::m_h_energy |
|
private |
◆ m_h_eventIndex
TH1* CSC_RDOAnalysis::m_h_eventIndex |
|
private |
◆ m_h_rodID
TH1* CSC_RDOAnalysis::m_h_rodID |
|
private |
◆ m_h_sdoID
TH1* CSC_RDOAnalysis::m_h_sdoID |
|
private |
◆ m_h_sdoWord
TH1* CSC_RDOAnalysis::m_h_sdoWord |
|
private |
◆ m_h_spuCt
TH1* CSC_RDOAnalysis::m_h_spuCt |
|
private |
◆ m_h_subID
TH1* CSC_RDOAnalysis::m_h_subID |
|
private |
◆ m_h_ypos
TH1* CSC_RDOAnalysis::m_h_ypos |
|
private |
◆ m_h_zpos
TH1* CSC_RDOAnalysis::m_h_zpos |
|
private |
◆ m_inputKey
◆ m_inputTruthKey
◆ m_latency
std::vector<uint16_t>* CSC_RDOAnalysis::m_latency |
|
private |
◆ m_neutron
std::vector<bool>* CSC_RDOAnalysis::m_neutron |
|
private |
◆ m_ntupleDirName
std::string CSC_RDOAnalysis::m_ntupleDirName |
|
private |
◆ m_ntupleFileName
std::string CSC_RDOAnalysis::m_ntupleFileName |
|
private |
◆ m_ntupleTreeName
std::string CSC_RDOAnalysis::m_ntupleTreeName |
|
private |
◆ m_numSmpl
std::vector<uint16_t>* CSC_RDOAnalysis::m_numSmpl |
|
private |
◆ m_path
std::string CSC_RDOAnalysis::m_path |
|
private |
◆ m_rate
std::vector<uint8_t>* CSC_RDOAnalysis::m_rate |
|
private |
◆ m_rodID
std::vector<uint16_t>* CSC_RDOAnalysis::m_rodID |
|
private |
◆ m_scaAdd
std::vector<uint32_t>* CSC_RDOAnalysis::m_scaAdd |
|
private |
◆ m_sdoID
std::vector<unsigned long long>* CSC_RDOAnalysis::m_sdoID |
|
private |
◆ m_sdoWord
std::vector<int>* CSC_RDOAnalysis::m_sdoWord |
|
private |
◆ m_smplPhase
std::vector<bool>* CSC_RDOAnalysis::m_smplPhase |
|
private |
◆ m_sparse
std::vector<bool>* CSC_RDOAnalysis::m_sparse |
|
private |
◆ m_spuCt
std::vector<uint16_t>* CSC_RDOAnalysis::m_spuCt |
|
private |
◆ m_subID
std::vector<uint16_t>* CSC_RDOAnalysis::m_subID |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* CSC_RDOAnalysis::m_tree |
|
private |
◆ m_trigType
std::vector<bool>* CSC_RDOAnalysis::m_trigType |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_ypos
std::vector<float>* CSC_RDOAnalysis::m_ypos |
|
private |
◆ m_ypos_vec
std::vector< std::vector<float> >* CSC_RDOAnalysis::m_ypos_vec |
|
private |
◆ m_zpos
std::vector<float>* CSC_RDOAnalysis::m_zpos |
|
private |
◆ m_zpos_vec
std::vector< std::vector<float> >* CSC_RDOAnalysis::m_zpos_vec |
|
private |
The documentation for this class was generated from the following files:
std::vector< std::vector< float > > * m_charge_vec
char data[hepevt_bytes_allocation_ATLAS]
std::vector< uint32_t > * m_scaAdd
Const iterator class for DataVector/DataList.
std::vector< std::vector< uint16_t > > * m_cscSmpl
std::vector< bool > * m_trigType
std::vector< unsigned long long > * m_sdoID
std::vector< bool > * m_sparse
std::vector< float > * m_zpos
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::vector< uint16_t > * m_collRpuID
std::vector< uint8_t > * m_rate
std::vector< uint16_t > * m_cscRpuID
std::vector< bool > * m_smplPhase
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< uint32_t > * m_eventType
std::vector< std::vector< int > > * m_eventIndex_vec
std::vector< uint32_t > * m_cscHashID
std::vector< bool > * m_cscTimeComp
std::string m_ntupleFileName
SG::ReadHandleKey< CscSimDataCollection > m_inputTruthKey
std::vector< std::vector< int > > * m_barcode_vec
std::vector< std::vector< float > > * m_zpos_vec
std::vector< uint16_t > * m_cscTime
std::vector< int > * m_eventIndex
std::vector< uint16_t > * m_cscWidth
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< uint32_t > * m_cscAdd
std::vector< std::vector< float > > * m_ypos_vec
a link optimized in size for a GenParticle in a McEventCollection
virtual StatusCode sysInitialize() override
Override sysInitialize.
std::vector< uint16_t > * m_numSmpl
std::vector< uint16_t > * m_collID
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
std::vector< int > * m_barcode
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< std::vector< float > > * m_energy_vec
std::vector< uint8_t > * m_calLayer
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Collection of CSC Raw Hits, arranged according to CSC Detector Elements Author: Ketevi A.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< uint16_t > * m_subID
index_type eventIndex() const
Return the event number of the referenced GenEvent.
std::vector< float > * m_energy
std::vector< bool > * m_calEn
std::vector< uint8_t > * m_calAmp
std::vector< uint16_t > * m_spuCt
std::string m_ntupleDirName
std::vector< uint8_t > * m_dataType
ServiceHandle< ITHistSvc > m_thistSvc
std::vector< float > * m_charge
std::vector< uint16_t > * m_rodID
std::vector< float > * m_ypos
DataObjIDColl m_extendedExtraObjects
std::string m_ntupleTreeName
#define ATH_MSG_WARNING(x)
std::vector< uint16_t > * m_cscID
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< uint8_t > * m_firstBitSum
AthAlgorithm()
Default constructor:
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
std::vector< int > * m_sdoWord
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< uint16_t > * m_latency
SG::ReadHandleKey< CscRawDataContainer > m_inputKey
std::vector< bool > * m_neutron