Commit ee4ca1a7 authored by Lennart Huth's avatar Lennart Huth Committed by Lennart Huth
Browse files

Removed an unused EventLoader

parent e96833e2
# Define module and return the generated name as MODULE_NAME
CORRYVRECKAN_DETECTOR_MODULE(MODULE_NAME)
# Add source files to library
CORRYVRECKAN_MODULE_SOURCES(${MODULE_NAME}
EventLoaderMuPix.cpp
# ADD SOURCE FILES HERE...
)
# Provide standard install target
CORRYVRECKAN_MODULE_INSTALL(${MODULE_NAME})
/**
* @file
* @brief Implementation of [EventLoaderMuPix] module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*/
#include "EventLoaderMuPix.h"
using namespace corryvreckan;
EventLoaderMuPix::EventLoaderMuPix(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(std::move(config), std::move(detector)) {}
void EventLoaderMuPix::initialise() {
for(auto& detector : get_detectors()) {
LOG(DEBUG) << "Initialise for detector " + detector->name();
}
// Initialise member variables
m_eventNumber = 0;
}
StatusCode EventLoaderMuPix::run(std::shared_ptr<Clipboard>) {
// Loop over all detectors
for(auto& detector : get_detectors()) {
// Get the detector name
std::string detectorName = detector->name();
LOG(DEBUG) << "Detector with name " << detectorName;
}
// Increment event counter
m_eventNumber++;
// Return value telling analysis to keep running
return StatusCode::Success;
}
void EventLoaderMuPix::finalise() {
LOG(DEBUG) << "Analysed " << m_eventNumber << " events";
}
/**
* @file
* @brief Definition of [EventLoaderMuPix] module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an
* Intergovernmental Organization or submit itself to any jurisdiction.
*
* Contains minimal dummy module to use as a start for the development of your own module
*
* Refer to the User's Manual for more details.
*/
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <iostream>
#include "core/module/Module.hpp"
#include "objects/Cluster.hpp"
#include "objects/Pixel.hpp"
#include "objects/Track.hpp"
namespace corryvreckan {
/** @ingroup Modules
* @brief Module to do function
*
* More detailed explanation of module
*/
class EventLoaderMuPix : public Module {
public:
/**
* @brief Constructor for this unique module
* @param config Configuration object for this module as retrieved from the steering file
* @param detector Pointer to the detector for this module instance
*/
EventLoaderMuPix(Configuration config, std::vector<std::shared_ptr<Detector>> detectors);
/**
* @brief [Initialise this module]
*/
void initialise();
/**
* @brief [Run the function of this module]
*/
StatusCode run(std::shared_ptr<Clipboard> clipboard);
/**
* @brief [Finalise module]
*/
void finalise();
private:
int m_eventNumber;
};
} // namespace corryvreckan
# EventLoaderMuPix
**Maintainer**: Lennart Huth (huth@phsi.uni-heidelberg.de)
**Module Type**: *GLOBAL*
**Status**: Immature
### Description
This is a demonstrator module only, taking data every detector on the clipboard and plots the pixel hit positions.
It serves as template to create new modules.
### Parameters
No parameters are used from the configuration file.
### Plots produced
* Histogram of event numbers
For each detector the following plots are produced:
* 2D histogram of pixel hit positions
### Usage
```toml
[EventLoaderMuPix]
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment