Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163259
b: "refs/tags/CMSSW_7_2_THREADED_X_2014-07-08-1400"
c: 0480832
h: "refs/heads/l1t-devel-CMSSW_7_4_0_pre5"
i:
  163257: a5e1512
  163255: 45efab7
v: v3
  • Loading branch information
cmsbuild committed Jul 8, 2014
1 parent 21abb63 commit 2021009
Show file tree
Hide file tree
Showing 47,549 changed files with 12,029,923 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions [refs]
Expand Up @@ -7338,3 +7338,4 @@ refs/heads/tau-updates: 7ff75914ac0650e50e8387e6befaae7003803095
"refs/tags/CMSSW_7_2_THREADED_X_2014-07-07-1400": 3fa836b239e0e091bbb39173e945f43ce2c6a3fe
"refs/tags/CMSSW_7_2_THREADED_X_2014-07-08-0200": 3fa836b239e0e091bbb39173e945f43ce2c6a3fe
"refs/tags/CMSSW_7_2_THREADED_X_2014-07-08-0900": 3fa836b239e0e091bbb39173e945f43ce2c6a3fe
"refs/tags/CMSSW_7_2_THREADED_X_2014-07-08-1400": 0480832c53de455ab0fa672361cd2309c1793f10
2 changes: 2 additions & 0 deletions tags/CMSSW_7_2_THREADED_X_2014-07-08-1400/.gitignore
@@ -0,0 +1,2 @@
__init__.py
*.pyc
@@ -0,0 +1,8 @@
<use name="Alignment/CocoaUtilities"/>
<use name="Alignment/CocoaModel"/>
<use name="CLHEP"/>
<use name="rootcore"/>
<use name="meschach"/>
<export>
<lib name="1"/>
</export>
@@ -0,0 +1,45 @@
// COCOA class header file
//Id: FittedEntriesManager.h
//CAT: Model
//
// Class to manage the sets of fitted entries (one set per each measurement data set)
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesManager_HH
#define _FittedEntriesManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaAnalysis/interface/FittedEntriesSet.h"


class FittedEntriesManager
{

public:
//---------- Constructors / Destructor
FittedEntriesManager(){ };
~FittedEntriesManager(){ };
static FittedEntriesManager* getInstance();
void AddFittedEntriesSet( FittedEntriesSet* fents);
void MakeHistos();

public:
std::vector< FittedEntriesSet* > getFittedEntriesSets() const {
return theFittedEntriesSets; }

private:
ALIstring createFileName( const ALIstring& optoName, const ALIstring& entryName);
void dumpEntriesSubstraction( std::ofstream& fout, FittedEntriesSet& fes, ALIint order1, ALIint order2 );

private:
static FittedEntriesManager* instance;
std::vector< FittedEntriesSet* > theFittedEntriesSets;

void GetDifferentBetweenLasers();

};

#endif

@@ -0,0 +1,67 @@
// COCOA class header file
//Id: FittedEntriesSet.h
//CAT: Model
//
// Class to store set of fitted entries with date
//
// History: v1.0
// Pedro Arce

#ifndef _FittedEntriesSet_HH
#define _FittedEntriesSet_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <ctime>
#include <vector>
#include "Alignment/CocoaAnalysis/interface/FittedEntry.h"
//#ifdef MAT_MESCHACH
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
//typedef MatrixMeschach ALIMatrix;
//#endif

class FittedEntriesSet
{

public:
//---------- Constructors / Destructor
FittedEntriesSet( MatrixMeschach* AtWAMatrix );
FittedEntriesSet( const std::vector<ALIstring>& wl );
//---- Average a list of FittedEntriesSet's
FittedEntriesSet( const std::vector<FittedEntriesSet*>& vSets );
~FittedEntriesSet(){ };
void Fill();
void FillEntries();
void FillCorrelations();
void CreateCorrelationMatrix( const ALIuint nent );
void FillEntriesFromFile( const std::vector<ALIstring>& wl);
void FillEntriesAveragingSets( const std::vector<FittedEntriesSet*>& vSets );

void SetOptOEntries();

public:
std::vector< FittedEntry* >& FittedEntries(){
return theFittedEntries;
}

//GET AND SET METHODS
ALIstring& getDate() {
return theDate;
}
ALIstring& getTime() {
return theTime;
}

public:

std::vector< FittedEntry* > theFittedEntries;
private:
//t struct tm theTime;
ALIstring theDate;
ALIstring theTime;
std::vector< std::vector<ALIdouble> > theCorrelationMatrix;
ALIint theMinEntryQuality;
MatrixMeschach* theEntriesErrorMatrix;
};

#endif

@@ -0,0 +1,77 @@
// COCOA class header file
//Id: FittedEntry.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef FittedEntry_HH
#define FittedEntry_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class FittedEntry
{

public:
//---------- Constructors / Destructor
FittedEntry(){ };
FittedEntry( Entry* entry, ALIint order, ALIdouble sigma);
FittedEntry( ALIstring name, float value, float sigma);
FittedEntry( const std::vector<FittedEntry*>& vFEntry );
~FittedEntry(){ };

void BuildName();

ALIstring getOptOName() const {
return theOptOName;
}
ALIstring getEntryName() const {
return theEntryName;
}
ALIstring getName() const {
return theName;
}
ALIdouble getValue() const {
return theValue;
}
ALIdouble getSigma() const {
return theSigma;
}
ALIdouble getOrigValue() const {
return theOrigValue;
}
ALIdouble getOrigSigma() const {
return theOrigSigma;
}
ALIint getOrder() const {
return theOrder;
}
ALIint getQuality() const {
return theQuality;
}
Entry* getEntry() const {
return theEntry;
}


private:
ALIdouble theValue;
Entry* theEntry;
ALIint theOrder;
ALIstring theName;
ALIstring theOptOName;
ALIstring theEntryName;
ALIdouble theSigma;
ALIdouble theOrigValue;
ALIdouble theOrigSigma;
ALIint theQuality;

};

#endif

@@ -0,0 +1,51 @@
// COCOA class header file
//Id: HistoDef.h
//CAT: Model
//
// Class to store the data of a fitted entry (only those of quality 'unk')
//
// History: v1.0
// Pedro Arce

#ifndef HistoDef_HH
#define HistoDef_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include <vector>
class Entry;

class HistoDef
{

public:
//---------- Constructors / Destructor
HistoDef(){ };
void init( ALIstring name );
~HistoDef(){ };

ALIstring name() const {
return theName;
}
float minimum() const {
return theMin;
}
float maximum() const {
return theMax;
}

void setMinimum( float min ){
theMin = min;
}
void setMaximum( float max ){
theMax = max;
}

private:
ALIstring theName;
float theMin;
float theMax;

};

#endif

@@ -0,0 +1,72 @@
// COCOA class header file
//Id: NtupleManager.h
//CAT: Analysis
//
// History: v1.0
// Luca Scodellaro

#ifndef _NtupleManager_HH
#define _NtupleManager_HH

#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h"
#include "Alignment/CocoaFit/interface/MatrixMeschach.h"
#include "Alignment/CocoaAnalysis/interface/NtupleObjects.h"
#include "CLHEP/Vector/Rotation.h"

class TFile;
class TTree;
class TClonesArray;

class NtupleManager
{

public:
//---------- Constructors / Destructor
NtupleManager(){ };
~NtupleManager(){ };
static NtupleManager* getInstance();
void BookNtuple();
void InitNtuple();
void FillNtupleTree();
void WriteNtuple();
void FillChi2();
void FillFitParameters(MatrixMeschach* AtWAMatrix);
void FillOptObjects(MatrixMeschach* AtWAMatrix);
void FillMeasurements();


private:
static NtupleManager* instance;

void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double *theta);

TFile *theRootFile;

TTree *CocoaTree;
/* TTree *FitParametersTree; */
/* TTree *MeasurementsTree; */

TClonesArray* CloneFitParam; FitParam *FitParamA;
TClonesArray* CloneOptObject; OptObject *OptObjectA;
TClonesArray* CloneSensor2DMeas; Sensor2DMeas *Sensor2DMeasA;
TClonesArray* CloneDistancemeterMeas; DistancemeterMeas *DistancemeterMeasA;
TClonesArray* CloneDistancemeter1DimMeas; Distancemeter1DimMeas *Distancemeter1DimMeasA;
TClonesArray* CloneTiltmeterMeas; TiltmeterMeas *TiltmeterMeasA;
TClonesArray* CloneCopsMeas; CopsMeas *CopsMeasA;

/* bool BookFitParameters; */
/* bool BookMeasurements; */

double Chi2Measurements, Chi2CalibratedParameters;
int NDegreesOfFreedom;
int NFitParameters;
int NOptObjects;
int NSensor2D;
int NDistancemeter;
int NDistancemeter1Dim;
int NTiltmeter;
int NCops;
};

#endif

0 comments on commit 2021009

Please sign in to comment.